Skip to main content
Glama

Nullroute x402 Agent Toolkit

Web Page to Clean Markdown & Prompt-Injection Scanner ($0.005 USDC)

page_to_markdown_safe
Read-onlyIdempotent

Fetches up to 3 web URLs, converts HTML into clean LLM-ready Markdown with metadata, and scans raw DOM + text for hidden prompt-injection attacks. Failed fetches are not charged. [x402 Paid Tool: $0.005 USDC on Base (eip155:8453). Plain HTTP endpoint: POST https://nullroute-x402.nr-edge-8492.workers.dev/tools/page-to-markdown-safe — 4xx/5xx upstream misses are never charged.]

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": {
      "urls": "<urls>"
    },
    "name": "page_to_markdown_safe"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlsYes1 to 3 web page URLs to convert to clean Markdown and scan for prompt injection.
maxCharsNoMax Markdown characters per page.
_x402PaymentSignatureNoOptional Base64 x402 PAYMENT-SIGNATURE payload (if not sent via HTTP PAYMENT-SIGNATURE header or plain HTTP x402 call to https://nullroute-x402.nr-edge-8492.workers.dev/tools/page-to-markdown-safe).

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?

Annotations already declare readOnly, idempotent, non-destructive, and open-world, and the description stays consistent with that while adding genuinely new behavior: a hard 3-URL cap, per-page char budget, billing at $0.005 USDC on Base (eip155:8453), and the refund rule that 4xx/5xx upstream misses are never charged. It does not describe latency, rate limits, or what the injection-scan verdict looks like, which keeps it short of a 5.

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?

The core capability is front-loaded in the first sentence and the billing/refund caveats follow as a compact bracketed block, with no filler. The bracket does repeat the endpoint URL that already appears in the _x402PaymentSignature schema description, which is mild redundancy rather than a real cost.

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 paid, open-world fetch tool with no output schema, the definition covers the essential risk surface: cost, refund policy, input limits, and the dual Markdown-plus-scan output. The remaining gap is that it never states the shape of the returned scan findings or metadata, which an agent must discover empirically.

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 urls, maxChars, and _x402PaymentSignature, making 3 the baseline. The description adds the 'up to 3 URLs' cap and the payment network, but never mentions maxChars truncation behavior or the payment-signature fallback in prose, so it adds little meaning beyond the structured fields.

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?

The description names a specific verb and resource chain: fetch up to 3 URLs, convert HTML to LLM-ready Markdown, and scan DOM/text for prompt injection. This is a compound but coherent purpose that no sibling in the catalog duplicates (youtube_transcript_scraper targets video transcripts, on_page_seo_audit targets SEO), so an agent can select it on name plus description alone.

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?

Usage is implied by the stated capability (you fetch pages when you need clean Markdown or an injection check), and the 'failed fetches are not charged' note gives a decision-relevant cost signal. However, there is no explicit when-to-use/when-not statement and no named alternative for the cases where this tool is a poor fit, so guidance stops at implication.

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