Data source: In-memory word list
https://context.gnist.ai/mcp/profanity-filter/
AuthenticationAll requests require a Gnist-API-Key header (or api_key query parameter).
Free tier: 100 calls/day. Get your API key.
Tools (4)
check_textCheck 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
text | string | required | Text to check for profanity. |
{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "check_text",
"arguments": {
"text": "example"
}
}
}censor_textCensor profanity in text by replacing flagged words with a replacement string.
Returns the censored text, original length, and the number of words censored.
| Parameter | Type | Required | Description |
|---|---|---|---|
text | string | required | Text to censor. |
replacement | string | optional | Replacement string for profane words. (default: "***") |
{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "censor_text",
"arguments": {
"text": "example"
}
}
}get_word_countGet the number of words in the profanity dictionary.
Returns the size of the built-in profanity word list used for filtering.
{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "get_word_count",
"arguments": {}
}
}report_feedbackReport 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'.
| Parameter | Type | Required | Description |
|---|---|---|---|
feedback | string | required | |
feedback_type | string | optional | (default: "general") |
{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "report_feedback",
"arguments": {
"feedback": "example"
}
}
}Quick Start
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"}}}'
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())