Skip to main content
Glama

safe_web_read

Read a web page as clean markdown and screen for prompt injection before adding to agent context. Returns markdown plus prompt injection verdict (safe, suspicious or malicious), a 0-100 score and matched spans. Respects robots.txt. Price $0.005 USDC per call via x402. Example output: {"url":"https://example.com/","status":200,"title":"Example Domain","characters":156,"injection":{"verdict":"safe","score":0,"categories":{},"matches":[]},"markdown":"This domain is for use in documentation examples..."}

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_web_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesPublic page URL

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description must carry the full load, and it does disclose real behavioral facts: robots.txt compliance, a per-call price of $0.005 USDC via x402, and the verdict taxonomy. Gaps remain around failure modes (non-200 responses, blocked pages), truncation limits, and latency, which matter for a paid network call.

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?

Purpose, return shape, constraints, and pricing are front-loaded in three compact sentences. The trailing example output is long but earns its place as a substitute for the missing output schema, so the density is justified rather than padding.

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 single-parameter tool with no annotations and no output schema, the description supplies the essential pieces: what comes back, the verdict scale, the payment model, and a sample payload. The remaining omissions, error behavior and content-size limits, are moderate rather than disqualifying.

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?

There is a single parameter with 100% schema coverage ('Public page URL'), so the schema already does the work. The description adds only the implicit constraint that pages must be public and robots-permitted; it adds no syntax, format, or normalization detail beyond that.

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?

The description pairs a specific verb and resource (read a web page) with a distinct value-add (clean markdown plus prompt-injection screening), which implicitly separates it from pure converters like web_to_markdown. However, no sibling tool is named or contrasted, so the agent must infer the boundary between this and web_read_full or prompt_injection_check.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase 'before adding to agent context' implies when the tool is appropriate, which is useful framing. But there are no explicit when-not conditions, no named alternatives, and no guidance on when plain markdown or a standalone injection check would suffice.

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