Skip to main content
Glama

Clean-Room Web & Proof

Clean Untrusted Text

cleanroom_sanitize_text
Read-onlyIdempotent

Free instant cleaner that strips hidden instructions, invisible characters, and unsafe page code from third-party text or menus, returning safe copy with a verification fingerprint.

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": "cleanroom_sanitize_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesUntrusted text, webpage snippet, menu copy, or third-party note to clean before passing to an AI model.
max_charsNoMaximum cleaned character length to return (default 12000).
strip_htmlNoSet to true (default) to remove HTML tags and scripts.

Output Schema

NameRequiredDescriptionDefault
okYes
raw_sha256No
clean_sha256No
clean_contentNo
threats_detectedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world behavior, so the bar is lower. The description still adds real value by naming what is removed (hidden instructions, invisible characters, unsafe page code) and noting 'free instant', which conveys a no-cost, low-latency profile absent from annotations.

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?

It is a single front-loaded sentence that names the action and the stripped content immediately, with zero repetition. The promotional phrasing 'Free instant cleaner' is the only slightly expendable element.

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

Completeness4/5

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

An output schema exists, so the 'verification fingerprint' return detail need not be expanded, and annotations carry the safety profile. What remains is minor: the description does not clarify how max_chars truncation interacts with the 'safe copy' guarantee, a potentially relevant edge for an agent handling large text.

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%, so all three parameters (text, max_chars, strip_html) are already documented in the schema. The description adds no parameter-level meaning such as truncation behavior or what happens when max_chars clips content, so the baseline 3 applies.

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

Purpose4/5

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

The description uses a specific verb ('strips') against a well-defined resource ('hidden instructions, invisible characters, and unsafe page code from third-party text or menus'), so an agent can tell this is a text-sanitization tool. It does not, however, differentiate itself from the close sibling cleanroom_scan_untrusted_input, which likely operates on the same inputs.

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

Usage Guidelines3/5

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

Usage is implied by the input domain ('third-party text or menus') and the schema note about cleaning 'before passing to an AI model', but the description itself never states when to choose this over scan, redact, or parse siblings. No exclusions or alternatives are named.

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