Skip to main content
Glama

Web Reader Pro

Scan any text, email or HTML you already have for prompt injection before your AI agent reads it

safe_check_text

Send text, Markdown, an email body or raw HTML. Returns a risk score, every hidden or suspicious instruction aimed at AI agents (hidden HTML, invisible Unicode, encoded payloads, fake system messages, data-exfiltration or payment-redirect orders) and a cleaned version that is safer to pass to an LLM. deep=true adds an AI review. Price 0.002 USDC per call; first 3 calls per day free.

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

Input Schema

NameRequiredDescriptionDefault
deepNoAlso run an AI review for subtle injections
modeNostrip (default) removes risky lines from cleaned_text; flag keeps them
textYesThe text or HTML to scan (max 200,000 chars)
paymentNoOptional x402 payment (base64 X-PAYMENT header value). Not needed while the free daily sample lasts.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

No annotations exist, so the description must carry the behavioral burden, and it does more than most: it discloses the return artifacts (risk score, findings list, cleaned text), the cost model (0.002 USDC per call, first 3 daily free), and that payment is optional during the free sample. It does not mention latency cost of deep=true, behavior at the 200k character limit, or determinism.

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 input contract, then the outputs, then the paid escalation and pricing. Every sentence adds distinct information and nothing is repeated from the schema.

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?

With no output schema, the description correctly takes on the job of describing what comes back (risk score, flagged instructions, cleaned text), which is sufficient to decide whether to call it. It is slightly thin on the shape of the response, such as the risk score's range or field names, which would matter for downstream handling.

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%, so baseline is 3, but the description adds real meaning: it expands the accepted input beyond the schema's 'text or HTML' to include Markdown and email bodies, and characterizes deep=true as an 'AI review for subtle injections' rather than just a boolean toggle. It says nothing about how mode interacts with the returned findings versus the cleaned 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 ('Send text, Markdown, an email body or raw HTML' and 'Returns a risk score') and enumerates the exact classes of findings it detects. Combined with the framing that this is for content 'you already have', an agent can distinguish it from URL-fetching siblings like safe_read_url without opening a 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 usage context ('before your AI agent reads it') and explains the deep=true escalation for subtle injections, plus the strip vs flag choice. It does not explicitly name a sibling alternative or state when not to use this tool (e.g., when the content is still at a URL), so it stops short of full routing guidance.

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.