{
  "serverInfo": {
    "name": "profanity-api",
    "title": "CussCheck",
    "version": "0.3.2"
  },
  "transport": {
    "type": "streamable-http",
    "url": "https://profanity-api.mike-tusa.workers.dev/mcp"
  },
  "authentication": {
    "required": false
  },
  "tools": [
    {
      "name": "check_profanity",
      "title": "Find and censor English swear words",
      "description": "Detect English profanity in text (word list with leetspeak, look-alike letters, repeated letters, dotted/spaced letters and hidden characters handled) and return the matched terms, their positions (UTF-16 start/end in your text) and, unless censor is false, a censored copy of the same length. Common innocent words (Scunthorpe, cockpit, Shiite, cumin) are whitelisted; it does not understand context and is English only. Text up to 10240 UTF-8 bytes; it is not stored or logged. matches is capped at 50 here (match_count is the full total). Read-only. Same engine, keys and limits as POST /v1/check.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "description": "The text to check, at most 10240 UTF-8 bytes.",
            "maxLength": 10240
          },
          "censor": {
            "type": "boolean",
            "description": "Return a censored copy (default true)."
          },
          "allow": {
            "type": "array",
            "description": "Words never to flag, e.g. [\"hell\", \"damn\"]. Allow wins over deny.",
            "maxItems": 50,
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 40
            }
          },
          "deny": {
            "type": "array",
            "description": "Extra words to flag on word boundaries, e.g. [\"jerk\"].",
            "maxItems": 50,
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 40
            }
          }
        },
        "required": [
          "text"
        ],
        "additionalProperties": false
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "has_profanity": {
            "type": "boolean"
          },
          "match_count": {
            "type": "integer",
            "description": "Total number of matches in the text (not capped)."
          },
          "terms": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "matches": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "term": {
                  "type": "string"
                },
                "match": {
                  "type": "string"
                },
                "start": {
                  "type": "integer"
                },
                "end": {
                  "type": "integer"
                },
                "source": {
                  "type": "string"
                },
                "obfuscated": {
                  "type": "boolean"
                }
              },
              "required": [
                "term",
                "start",
                "end"
              ]
            },
            "maxItems": 50,
            "description": "Matches in text order, at most 50 here (see match_count for the total). start/end are UTF-16 indices into your text."
          },
          "matches_returned": {
            "type": "integer"
          },
          "truncated": {
            "type": "boolean",
            "description": "True when matches lists fewer than match_count (over 50 here, or the API's own cap)."
          },
          "censored": {
            "type": "string",
            "description": "Your text with each match replaced by asterisks (same length). Omitted when censor is false."
          },
          "text_bytes": {
            "type": "integer"
          },
          "engine": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "required": [
          "has_profanity",
          "match_count",
          "terms",
          "matches"
        ]
      },
      "annotations": {
        "title": "Check profanity",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      }
    }
  ],
  "resources": [],
  "prompts": []
}