Skip to main content
Glama

Check a text

check_text
Read-onlyIdempotent

Decide whether one text should be allowed: profanity, slurs, insults, threats and sexual language, disguised spellings included (sh1t, f.u.c.k, leetspeak, homoglyphs). Returns the action (allow, review, block), the matches with their categories and the tricks used, a one-sentence reason and a censored version. Read-only; counts one check against the plan. If the action is wrong, report it with report_result and the result's id.

Input Schema

NameRequiredDescriptionDefault
maskNoHow "censored" hides a matched word: asterisk (****), first_letter (f***), grawlix (#$@!) or remove. Omit for the project's default, asterisk unless the project set one.
modeNoHow much to ask the model: fast never asks the model; balanced, the default, asks it about every text but a word or two the rules block outright; thorough asks it about every text. Omit for the project's default.
textYesThe text to check, exactly as the person typed it: up to 10,000 characters, 64 for a username or display name.
policyNoHow strict to be. A preset: kids (under 13, blocks everything), teen, standard (adults; the default), strict (brand-safe surfaces), casual (swearing welcome, swearing at someone still blocked). Or a saved policy id (pol_...), or an object giving an action per category. Omit for the project's default.
contextNoWhere the text is shown, which changes how it is read: username (a public handle; reserved names match), display_name (a name beside content), comment, chat, gaming (taunts about play are not abuse), review, educational (quoted words are discussed, not used), creative (dialogue in fiction), custom_text (engraving or printing), general (anything else). Omit for the project's default, general unless the project set one.
countryNoWhere the readers are, as a two-letter country code (MX, ES, BR): a word rude in some countries and innocent in others is read as theirs reads it. Omit to count a word rude anywhere.
languageNoThe language the text is in, when you know it: a short text that shows no other language is read in it. Defaults to auto.

Output Schema

NameRequiredDescriptionDefault
idYes
scoreYes
actionYes
engineYes
reasonYes
allowedYes
evasionYes
matchesYes
censoredYes
languageYes
severityYes
timing_msYes
categoriesYes
decided_byYes
obfuscatedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / decided_by
      Added value: +{
      +  "items": {
      +    "properties": {
      +      "action": {
      +        "enum": [
      +          "review",
      +          "block"
      +        ],
      +        "type": "string"
      +      },
      +      "category": {
      +        "enum": [
      +          "mild_profanity",
      +          "profanity",
      +          "sexual",
      +          "insult",
      +          "slur",
      +          "threat",
      +          "rude",
      +          "sexual_minors",
      +          "self_harm",
      +          "reserved"
      +        ],
      +        "type": "string"
      +      },
      +      "from": {
      +        "enum": [
      +          "words",
      +          "context"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "category",
      +      "action",
      +      "from"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "id",
      -  "allowed",
      -  "action",
      -  "score",
      -  "severity",
      -  "categories",
      -  "obfuscated",
      -  "evasion",
      -  "matches",
      -  "censored",
      -  "reason",
      -  "language",
      -  "engine",
      -  "timing_ms"
      -]New value: +[
      +  "id",
      +  "allowed",
      +  "action",
      +  "score",
      +  "severity",
      +  "categories",
      +  "obfuscated",
      +  "evasion",
      +  "matches",
      +  "censored",
      +  "reason",
      +  "decided_by",
      +  "language",
      +  "engine",
      +  "timing_ms"
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / mode / description
      Previous value: -"How much to ask the model: fast never asks the model; balanced, the default, asks it about every text the rules do not block outright; thorough asks it about every text. Omit for the project's default."New value: +"How much to ask the model: fast never asks the model; balanced, the default, asks it about every text but a word or two the rules block outright; thorough asks it about every text. Omit for the project's default."
  3. Changed3 schema fields changed
    • addedInput schema / properties / country
      Added value: +{
      +  "description": "Where the readers are, as a two-letter country code (MX, ES, BR): a word rude in some countries and innocent in others is read as theirs reads it. Omit to count a word rude anywhere.",
      +  "pattern": "^[A-Za-z]{2}$",
      +  "type": "string"
      +}
    • changedInput schema / properties / policy / anyOf
      Previous value: -[
      -  {
      -    "enum": [
      -      "kids",
      -      "teen",
      -      "standard",
      -      "strict"
      -    ],
      -    "type": "string"
      -  },
      -  {
      -    "pattern": "^pol_[A-Za-z0-9]{8,32}$",
      -    "type": "string"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "insult": {
      -        "enum": [
      -          "allow",
      -          "review",
      -          "block"
      -        ],
      -        "type": "string"
      -      },
      -      "mild_profanity": {
      -        "enum": [
      -          "allow",
      -          "review",
      -          "block"
      -        ],
      -        "type": "string"
      -      },
      -      "profanity": {
      -        "enum": [
      -          "allow",
      -          "review",
      -          "block"
      -        ],
      -        "type": "string"
      -      },
      -      "reserved": {
      -        "enum": [
      -          "allow",
      -          "review",
      -          "block"
      -        ],
      -        "type": "string"
      -      },
      -      "rude": {
      -        "enum": [
      -          "allow",
      -          "review",
      -          "block"
      -        ],
      -        "type": "string"
      -      },
      -      "self_harm": {
      -        "enum": [
      -          "allow",
      -          "review",
      -          "block"
      -        ],
      -        "type": "string"
      -      },
      -      "sexual": {
      -        "enum": [
      -          "allow",
      -          "review",
      -          "block"
      -        ],
      -        "type": "string"
      -      },
      -      "sexual_minors": {
      -        "enum": [
      -          "allow",
      -          "review",
      -          "block"
      -        ],
      -        "type": "string"
      -      },
      -      "slur": {
      -        "enum": [
      -          "allow",
      -          "review",
      -          "block"
      -        ],
      -        "type": "string"
      -      },
      -      "threat": {
      -        "enum": [
      -          "allow",
      -          "review",
      -          "block"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "enum": [
      +      "kids",
      +      "teen",
      +      "standard",
      +      "strict",
      +      "casual"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "pattern": "^pol_[A-Za-z0-9]{8,32}$",
      +    "type": "string"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "insult": {
      +        "enum": [
      +          "allow",
      +          "review",
      +          "block"
      +        ],
      +        "type": "string"
      +      },
      +      "mild_profanity": {
      +        "enum": [
      +          "allow",
      +          "review",
      +          "block"
      +        ],
      +        "type": "string"
      +      },
      +      "profanity": {
      +        "enum": [
      +          "allow",
      +          "review",
      +          "block"
      +        ],
      +        "type": "string"
      +      },
      +      "reserved": {
      +        "enum": [
      +          "allow",
      +          "review",
      +          "block"
      +        ],
      +        "type": "string"
      +      },
      +      "rude": {
      +        "enum": [
      +          "allow",
      +          "review",
      +          "block"
      +        ],
      +        "type": "string"
      +      },
      +      "self_harm": {
      +        "enum": [
      +          "allow",
      +          "review",
      +          "block"
      +        ],
      +        "type": "string"
      +      },
      +      "sexual": {
      +        "enum": [
      +          "allow",
      +          "review",
      +          "block"
      +        ],
      +        "type": "string"
      +      },
      +      "sexual_minors": {
      +        "enum": [
      +          "allow",
      +          "review",
      +          "block"
      +        ],
      +        "type": "string"
      +      },
      +      "slur": {
      +        "enum": [
      +          "allow",
      +          "review",
      +          "block"
      +        ],
      +        "type": "string"
      +      },
      +      "threat": {
      +        "enum": [
      +          "allow",
      +          "review",
      +          "block"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  }
      +]
    • changedInput schema / properties / policy / description
      Previous value: -"How strict to be. A preset: kids (under 13, blocks everything), teen, standard (adults; the default), strict (brand-safe surfaces). Or a saved policy id (pol_...), or an object giving an action per category. Omit for the project's default."New value: +"How strict to be. A preset: kids (under 13, blocks everything), teen, standard (adults; the default), strict (brand-safe surfaces), casual (swearing welcome, swearing at someone still blocked). Or a saved policy id (pol_...), or an object giving an action per category. Omit for the project's default."
  4. Changed11 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / context / description
      Added value: +"Where the text is shown, which changes how it is read: username (a public handle; reserved names match), display_name (a name beside content), comment, chat, gaming (taunts about play are not abuse), review, educational (quoted words are discussed, not used), creative (dialogue in fiction), custom_text (engraving or printing), general (anything else). Omit for the project's default, general unless the project set one."
    • addedInput schema / properties / mask / description
      Added value: +"How \"censored\" hides a matched word: asterisk (****), first_letter (f***), grawlix (#$@!) or remove. Omit for the project's default, asterisk unless the project set one."
    • addedInput schema / properties / mode / description
      Added value: +"How much to ask the model: fast never asks the model; balanced, the default, asks it about every text the rules do not block outright; thorough asks it about every text. Omit for the project's default."
    • addedInput schema / properties / policy / anyOf
      Added value: +[
      +  {
      +    "enum": [
      +      "kids",
      +      "teen",
      +      "standard",
      +      "strict"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "pattern": "^pol_[A-Za-z0-9]{8,32}$",
      +    "type": "string"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "insult": {
      +        "enum": [
      +          "allow",
      +          "review",
      +          "block"
      +        ],
      +        "type": "string"
      +      },
      +      "mild_profanity": {
      +        "enum": [
      +          "allow",
      +          "review",
      +          "block"
      +        ],
      +        "type": "string"
      +      },
      +      "profanity": {
      +        "enum": [
      +          "allow",
      +          "review",
      +          "block"
      +        ],
      +        "type": "string"
      +      },
      +      "reserved": {
      +        "enum": [
      +          "allow",
      +          "review",
      +          "block"
      +        ],
      +        "type": "string"
      +      },
      +      "rude": {
      +        "enum": [
      +          "allow",
      +          "review",
      +          "block"
      +        ],
      +        "type": "string"
      +      },
      +      "self_harm": {
      +        "enum": [
      +          "allow",
      +          "review",
      +          "block"
      +        ],
      +        "type": "string"
      +      },
      +      "sexual": {
      +        "enum": [
      +          "allow",
      +          "review",
      +          "block"
      +        ],
      +        "type": "string"
      +      },
      +      "sexual_minors": {
      +        "enum": [
      +          "allow",
      +          "review",
      +          "block"
      +        ],
      +        "type": "string"
      +      },
      +      "slur": {
      +        "enum": [
      +          "allow",
      +          "review",
      +          "block"
      +        ],
      +        "type": "string"
      +      },
      +      "threat": {
      +        "enum": [
      +          "allow",
      +          "review",
      +          "block"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  }
      +]
    • addedInput schema / properties / policy / description
      Added value: +"How strict to be. A preset: kids (under 13, blocks everything), teen, standard (adults; the default), strict (brand-safe surfaces). Or a saved policy id (pol_...), or an object giving an action per category. Omit for the project's default."
    • removedInput schema / properties / policy / enum
      Removed value: -[
      -  "kids",
      -  "teen",
      -  "standard",
      -  "strict"
      -]
    • removedInput schema / properties / policy / type
      Removed value: -"string"
    • addedInput schema / properties / text / description
      Added value: +"The text to check, exactly as the person typed it: up to 10,000 characters, 64 for a username or display name."
    • addedInput schema / properties / text / minLength
      Added value: +1
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "action": {
      +      "enum": [
      +        "allow",
      +        "review",
      +        "block"
      +      ],
      +      "type": "string"
      +    },
      +    "allowed": {
      +      "type": "boolean"
      +    },
      +    "categories": {
      +      "properties": {
      +        "insult": {
      +          "maximum": 1,
      +          "minimum": 0,
      +          "type": "number"
      +        },
      +        "mild_profanity": {
      +          "maximum": 1,
      +          "minimum": 0,
      +          "type": "number"
      +        },
      +        "profanity": {
      +          "maximum": 1,
      +          "minimum": 0,
      +          "type": "number"
      +        },
      +        "reserved": {
      +          "maximum": 1,
      +          "minimum": 0,
      +          "type": "number"
      +        },
      +        "rude": {
      +          "maximum": 1,
      +          "minimum": 0,
      +          "type": "number"
      +        },
      +        "self_harm": {
      +          "maximum": 1,
      +          "minimum": 0,
      +          "type": "number"
      +        },
      +        "sexual": {
      +          "maximum": 1,
      +          "minimum": 0,
      +          "type": "number"
      +        },
      +        "sexual_minors": {
      +          "maximum": 1,
      +          "minimum": 0,
      +          "type": "number"
      +        },
      +        "slur": {
      +          "maximum": 1,
      +          "minimum": 0,
      +          "type": "number"
      +        },
      +        "threat": {
      +          "maximum": 1,
      +          "minimum": 0,
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "mild_profanity",
      +        "profanity",
      +        "sexual",
      +        "insult",
      +        "slur",
      +        "threat",
      +        "rude",
      +        "sexual_minors",
      +        "self_harm",
      +        "reserved"
      +      ],
      +      "type": "object"
      +    },
      +    "censored": {
      +      "type": "string"
      +    },
      +    "engine": {
      +      "properties": {
      +        "degraded": {
      +          "type": "boolean"
      +        },
      +        "route": {
      +          "enum": [
      +            "rules",
      +            "model",
      +            "cache"
      +          ],
      +          "type": "string"
      +        },
      +        "version": {
      +          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "version",
      +        "route",
      +        "degraded"
      +      ],
      +      "type": "object"
      +    },
      +    "evasion": {
      +      "items": {
      +        "enum": [
      +          "homoglyph",
      +          "zero_width",
      +          "separator",
      +          "leetspeak",
      +          "repeated_chars",
      +          "diacritics",
      +          "mixed_script",
      +          "fullwidth",
      +          "combining_marks",
      +          "phonetic",
      +          "reversed",
      +          "concatenation",
      +          "case_mixing",
      +          "self_censored",
      +          "misspelled",
      +          "spoonerism",
      +          "pun"
      +        ],
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "id": {
      +      "pattern": "^chk_[A-Za-z0-9]{16,32}$",
      +      "type": "string"
      +    },
      +    "language": {
      +      "properties": {
      +        "confidence": {
      +          "maximum": 1,
      +          "minimum": 0,
      +          "type": "number"
      +        },
      +        "detected": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "detected",
      +        "confidence"
      +      ],
      +      "type": "object"
      +    },
      +    "matches": {
      +      "items": {
      +        "properties": {
      +          "category": {
      +            "enum": [
      +              "profanity",
      +              "sexual",
      +              "insult",
      +              "slur",
      +              "threat",
      +              "reserved"
      +            ],
      +            "type": "string"
      +          },
      +          "end": {
      +            "maximum": 9007199254740991,
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "evasion": {
      +            "items": {
      +              "enum": [
      +                "homoglyph",
      +                "zero_width",
      +                "separator",
      +                "leetspeak",
      +                "repeated_chars",
      +                "diacritics",
      +                "mixed_script",
      +                "fullwidth",
      +                "combining_marks",
      +                "phonetic",
      +                "reversed",
      +                "concatenation",
      +                "case_mixing",
      +                "self_censored",
      +                "misspelled",
      +                "spoonerism",
      +                "pun"
      +              ],
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "normalized": {
      +            "type": "string"
      +          },
      +          "severity": {
      +            "enum": [
      +              "none",
      +              "mild",
      +              "moderate",
      +              "strong",
      +              "extreme"
      +            ],
      +            "type": "string"
      +          },
      +          "start": {
      +            "maximum": 9007199254740991,
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "term_id": {
      +            "type": "string"
      +          },
      +          "text": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "start",
      +          "end",
      +          "text",
      +          "normalized",
      +          "term_id",
      +          "category",
      +          "severity",
      +          "evasion"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "obfuscated": {
      +      "type": "boolean"
      +    },
      +    "reason": {
      +      "type": "string"
      +    },
      +    "score": {
      +      "maximum": 1,
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "severity": {
      +      "enum": [
      +        "none",
      +        "mild",
      +        "moderate",
      +        "strong",
      +        "extreme"
      +      ],
      +      "type": "string"
      +    },
      +    "timing_ms": {
      +      "minimum": 0,
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "allowed",
      +    "action",
      +    "score",
      +    "severity",
      +    "categories",
      +    "obfuscated",
      +    "evasion",
      +    "matches",
      +    "censored",
      +    "reason",
      +    "language",
      +    "engine",
      +    "timing_ms"
      +  ],
      +  "type": "object"
      +}
  5. Changed1 schema field changed
    • addedInput schema / properties / language
      Added value: +{
      +  "description": "The language the text is in, when you know it: a short text that shows no other language is read in it. Defaults to auto.",
      +  "enum": [
      +    "auto",
      +    "en",
      +    "es",
      +    "pt",
      +    "fr",
      +    "de",
      +    "it",
      +    "nl",
      +    "pl",
      +    "tr",
      +    "ru",
      +    "ar",
      +    "he",
      +    "hi",
      +    "id",
      +    "ja",
      +    "zh",
      +    "ko"
      +  ],
      +  "type": "string"
      +}
  6. First observed

TDQS

A4.1/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so 'Read-only' adds nothing. The genuinely new disclosure is the quota cost ('counts one check against the plan') and the feedback loop via report_result, which are useful but thin for a tool with a model-in-the-loop mode parameter.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with the decision and the scope of detection, then return shape, then the feedback escape hatch. No sentence restates structured data unnecessarily.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter classifier with full enum documentation and an output schema, the description covers purpose, obfuscation scope, cost, and the correction workflow. Nothing an agent needs before calling it is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and the enum descriptions (mask, mode, policy, context, country) are already richer than anything in the tool description. The description adds no parameter-level guidance of its own, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb+resource ('Decide whether one text should be allowed') and enumerates the exact content classes it judges, including obfuscation handling. The singular 'one text' scopes it against the sibling check_batch without needing either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a clear operating condition and a corrective path: 'If the action is wrong, report it with report_result and the result's id.' It does not explicitly route multi-text callers to check_batch, so the when-not case is left implicit.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources