Utilities
Data source: In-memory word list
MCP Protocol
Endpoint
https://context.gnist.ai/mcp/profanity-filter/
claude_desktop_config.json
{
"mcpServers": {
"gnist-profanity-filter": {
"url": "https://context.gnist.ai/mcp/profanity-filter/",
"headers": {
"Gnist-API-Key": "YOUR_API_KEY"
}
}
}
}
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"}}}'
REST API
API Root
https://context.gnist.ai/rest/profanity-filter/
4 endpoints available:
GET /rest/profanity-filter/check_textGET /rest/profanity-filter/censor_textGET /rest/profanity-filter/get_word_countGET /rest/profanity-filter/report_feedback
Shell
curl "https://context.gnist.ai/rest/profanity-filter/check_text?text=example" \ -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx
resp = httpx.get(
"https://context.gnist.ai/rest/profanity-filter/check_text",
headers={"Gnist-API-Key": "YOUR_API_KEY"},
params={
"text": "example"
},
)
print(resp.json())
Command Line
Command
gc profanity-filter
CLI documentation will be available when the GnistAI SDK is published.
Install
pip install gnistai
Available Tools (4)
check_textCheck text for profanity.
| Parameter | Type | Required | Description |
|---|---|---|---|
text | string | required | Text to check for profanity. |
censor_textCensor profanity in text by replacing flagged words with a replacement string.
| Parameter | Type | Required | Description |
|---|---|---|---|
text | string | required | Text to censor. |
replacement | string | optional | Replacement string for profane words. (default: "***") |
get_word_countGet the number of words in the profanity dictionary.
report_feedbackReport a bug, feature request, or general feedback for this data source.
| Parameter | Type | Required | Description |
|---|---|---|---|
feedback | string | required | |
feedback_type | string | optional | (default: "general") |