Skip to main content
Glama

Agent Toolkit (all-in-one)

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

safe_check_text

[Web Reader Pro] 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

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it enumerates what is detected (hidden HTML, invisible Unicode, encoded payloads, fake system messages, exfiltration/payment-redirect orders) and what is returned, including a cleaned artifact for downstream LLM use. It also discloses cost and the free daily quota, which is genuinely useful behavior. It omits whether submitted text is logged or retained, a material question for a security-scanning service handling possibly sensitive content.

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?

A single dense paragraph that is front-loaded with the action and input formats, then detection coverage, then optional depth and pricing. Every sentence carries information. The bracketed vendor prefix adds slight noise but does not harm selection.

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?

For a four-parameter scanning tool with no output schema and no annotations, the description covers inputs, detection scope, return contents, the deep option and payment cost — enough to invoke correctly. The residual gap is disambiguation from the sibling scan_text_for_injection and any statement about data handling.

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 four parameters are already documented, and the description largely restates deep and mode semantics already present in the schema. It does add a small amount of meaning by tying the pricing/free-quota statement to the payment parameter's necessity. Baseline 3 applies since the schema does the heavy lifting.

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?

Specific verb and resource: scan text, Markdown, email body or raw HTML for prompt injection, returning a risk score, flagged instructions and cleaned text. The accepted input formats are made explicit. It does not, however, distinguish itself from the near-identically named sibling scan_text_for_injection, so an agent cannot tell from this text alone which of the two to pick.

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?

The title and first sentence establish the triggering condition clearly: content you already have, checked before your AI agent reads it. 'You already have' implicitly routes URL-fetching cases to the read_url/ask_url family. There are no explicit exclusions or named alternatives, so it stops short of a 5.

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.