Skip to main content
Glama

Agent Toolkit (all-in-one)

Safe Read: read a web page with prompt-injection protection (hidden traps for AI agents detected and removed)

safe_read_url

[Web Reader Pro] Reads a page like /read but first scans it for prompt injection aimed at AI agents: hidden text (display:none, zero-size or off-screen elements, HTML comments, attributes), invisible Unicode (tag-character smuggling, zero-width), base64-encoded orders, fake system/chat markers, and visible text that tells AI agents to ignore instructions, leak secrets, run commands or redirect payments. Returns cleaned content plus a risk score (0-100), risk level and every finding with its location. mode=strip (default) removes dangerous lines; mode=flag keeps them and only reports. deep=true adds an AI review. Not charged if the page cannot be read. Price 0.003 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": {
      "url": "<url>"
    },
    "name": "safe_read_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesPublic http(s) URL to read safely
deepNoAlso run an AI review for subtle injections (slower)
modeNostrip (default) removes risky text; flag only reports it
formatNoOutput format (default markdown)
renderNoForce browser (JavaScript) rendering
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.1/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 disclosure burden and does well: it explains the return payload (cleaned content, 0-100 risk score, risk level, findings with locations), mode side effects, and the billing model including 'Not charged if the page cannot be read' and a free daily tier. It stops short of stating what happens on a high risk score, whether output is truncated, and any URL/size limits.

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?

Front-loaded with the purpose, then the threat list, then mode/deep behavior, then pricing — a logical order with no filler sentences. The long mid-sentence enumeration of injection types is dense but each item adds discriminating information; it could be trimmed slightly without loss.

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 6-parameter tool with no annotations and no output schema, the description covers purpose, modes, cost, and return shape adequately. Remaining gaps are edge-case behavior: failure modes on unreadable or blocked pages, content size limits, and whether findings affect the returned content beyond stripping.

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 coverage is 100%, so the schema already documents all six parameters. The description explains mode and deep in the same terms the schema does, but leaves format, render, and the x402 payment mechanism almost entirely to the schema, adding no new semantics — baseline 3 is appropriate.

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 ('Reads a page') and immediately differentiates itself from the plain reader by the added pre-scan: 'like /read but first scans it for prompt injection'. The enumerated threat classes (hidden text, invisible Unicode, base64 orders, fake system markers) make the scope concrete enough to distinguish it from sibling scanner tools.

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 clear operational guidance: mode=strip is the default, mode=flag only reports, deep=true adds an AI review and is slower. It implies the plain read_url alternative by saying 'like /read but', but never explicitly states when to skip the safety scan for a cheaper/plain read, so no hard exclusion is given.

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.