GnistAI GnistAI
Log in

Profanity Filter

Text content moderation — check text for profanity, censor it, and return clean versions using an in-memory word list.

Overview   |   MCP   |   REST API   |   OpenAPI   |   CLI   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 4 tools tools 4 4 type: validation enrichment type type validation enrichment validation enrichment lifecycle: maintained lifecycle lifecycle maintained maintained Utilities

Data source: In-memory word list

MCP Endpoint (Streamable HTTP) https://context.gnist.ai/mcp/profanity-filter/
Authentication

All requests require a Gnist-API-Key header (or api_key query parameter).

Free tier: 100 calls/day. Get your API key.

Tools (4)

check_text

Check text for profanity.

Returns whether the text contains profanity, a list of flagged words,
the total word count, and the number of distinct flagged words.

ParameterTypeRequiredDescription
textstringrequiredText to check for profanity.
JSON-RPC Request
{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "check_text",
    "arguments": {
      "text": "example"
    }
  }
}
censor_text

Censor profanity in text by replacing flagged words with a replacement string.

Returns the censored text, original length, and the number of words censored.

ParameterTypeRequiredDescription
textstringrequiredText to censor.
replacementstringoptionalReplacement string for profane words. (default: "***")
JSON-RPC Request
{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "censor_text",
    "arguments": {
      "text": "example"
    }
  }
}
get_word_count

Get the number of words in the profanity dictionary.

Returns the size of the built-in profanity word list used for filtering.

JSON-RPC Request
{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "get_word_count",
    "arguments": {}
  }
}
report_feedback

Report a bug, feature request, or general feedback for this data source.

Use this when something doesn't work as expected, when you'd like
a new feature, or when you have suggestions for improvement.

Args:
feedback: Describe the issue or suggestion.
feedback_type: One of 'bug', 'feature_request', or 'general'.

ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")
JSON-RPC Request
{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "report_feedback",
    "arguments": {
      "feedback": "example"
    }
  }
}

Quick Start

Shell
curl -X POST "https://context.gnist.ai/mcp/profanity-filter/" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "check_text", "arguments": {"text": "example"}}}'
Python
import httpx

resp = httpx.post(
    "https://context.gnist.ai/mcp/profanity-filter/",
    headers={"Gnist-API-Key": "YOUR_API_KEY", "Content-Type": "application/json"},
    json={
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "check_text",
    "arguments": {
      "text": "example"
    }
  }
},
)
print(resp.json())

Related Toolkits (Utilities)

Resources