Skip to main content
Glama

safe_read

Read-only

Safe browse for agents / prompt injection scan: read a web page (url) or raw html as clean Markdown with hidden text, HTML comments, invisible Unicode and prompt injections removed, plus verdict clean/suspicious/malicious and what was removed. Use before putting untrusted web content into an agent's context. Costs $0.005 USDC on Base via x402; only charged on success.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "safe_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoPublic http(s) page to read safely
htmlNoRaw HTML to clean instead of a url

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well past the readOnlyHint/openWorldHint annotations by disclosing the cost model ($0.005 USDC on Base via x402, charged only on success), the sanitization performed, and the verdict taxonomy returned. Payment and failure-charging behavior are exactly the kind of details an agent cannot infer from structured fields.

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?

Two tight sentences, front-loaded with purpose and the sanitization list, with the usage trigger and pricing appended where they belong. Slight redundancy between "Safe browse for agents" and the later "agent's context" clause, but nothing is wasted.

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?

With no output schema, the description still covers the return shape (cleaned Markdown, clean/suspicious/malicious verdict, removed-element report), the two input modes, and the billing behavior. For a two-parameter, fully documented read tool, nothing an agent needs to call it correctly 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% and the schema already documents both parameters, including that html replaces url. The description restates the two input modes without adding format, size, or precedence rules beyond the schema — for example, what happens if both are supplied is left unstated.

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 — read a web page (url) or raw html and return it as clean Markdown — and enumerates exactly what is stripped (hidden text, HTML comments, invisible Unicode, prompt injections) plus the verdict returned. An agent knows precisely what this tool does and what it produces, even without the sibling being named.

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?

"Use before putting untrusted web content into an agent's context" gives an explicit trigger condition, which is the core when-to-use guidance. It stops short of naming the sibling url_safety_check or stating when to prefer it, so there is no explicit alternative routing.

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