Skip to main content
Glama

Web Reader Pro

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

safe_read_url

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.5/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it discloses the return payload (cleaned content, risk score 0-100, risk level, findings with locations), the destructive effect of strip mode versus flag mode, the cost model (0.003 USDC, first 3 calls per day free), and the failure policy (not charged if the page cannot be read). These are exactly the behavioral facts an agent needs before spending money on a call.

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?

Front-loaded with the differentiator, then supporting detail on detected injection classes, then output and pricing. The long enumeration of detection types is dense but each item is functionally relevant to a caller deciding whether to pay for the scan.

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?

For a six-parameter, paid, unannotated tool with no output schema, the description supplies return shape, mode behavior, cost, free quota, and failure billing. Nothing essential for a correct, cost-aware invocation is missing.

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 all six parameters are already documented in the schema; the description only restates mode and deep semantics in slightly more operational terms ('removes dangerous lines'). It adds no information about url constraints, format, render, or how the payment header interacts with the free tier beyond what the schema says.

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 sibling read tool ('like /read but first scans it for prompt injection'), enumerating exactly what it detects. An agent can tell this apart from read_url or safe_check_text without opening either 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 clear operational guidance: mode=strip is the default behavior, mode=flag is for report-only, and deep=true adds a slower AI review, which implicitly frames the speed/thoroughness tradeoff. It does not explicitly say when to prefer safe_read_url over read_url or safe_check_text, so the routing decision is left partly to inference.

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.