Skip to main content
Glama

qm_scrub

Scans text for prompt-injection patterns and returns a redacted copy plus findings. Pattern-based, not a guarantee — the result warrants review before being trusted. Free, anonymous, nothing stored; read-only with no side effects. Text is capped at 20000 chars; longer inputs are split into chunks, one call per chunk. Typical use is screening untrusted content (pasted text, web pages, tool output). Scope is text content; symptom-based agent health reads are outside this tool's scope. Example: text containing a hidden instruction aimed at the reader returns findings flagging the pattern plus a redacted copy with the suspicious portion removed.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "text": "<text>"
    },
    "name": "qm_scrub"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesText to scan (max 20000 chars).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden and does so: read-only, no side effects, free, anonymous, nothing stored, and an explicit reliability caveat that pattern matching is not a guarantee and results warrant review. It also discloses the 20000-char cap and the chunking behavior for longer inputs.

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

Conciseness4/5

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

Purpose is front-loaded and every sentence carries information, including a concrete example of input and output. The 20000-char cap is stated twice (description and schema), a minor redundancy, and the paragraph is dense but readable.

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?

There is no output schema, yet the description explains what comes back (findings plus a redacted copy) and illustrates it with a worked example. Combined with the chunking rule and the reliability caveat, an agent has everything needed to call and interpret this tool.

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

Parameters4/5

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

Schema coverage is 100% and there is a single parameter, so the baseline is a 3. The description adds real meaning beyond the schema's maxLength by explaining the operational consequence: longer inputs are split into chunks with one call per chunk, which tells the agent how to handle oversized text.

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?

States a specific verb and resource ('Scans text for prompt-injection patterns') plus the deliverables ('redacted copy plus findings'). The scope sentence and the explicit exclusion of agent health reads separate it cleanly from the clinic/health siblings.

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 concrete when-to-use examples (pasted text, web pages, tool output) and a when-not boundary ('symptom-based agent health reads are outside this tool's scope'). It stops short of naming the alternative tool to use for that out-of-scope case, so it is strong but not fully routing.

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.