Skip to main content
Glama

Scrape To JSON

scrape.to_json
Read-only

Extract clean JSON from messy HTML

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
htmlYesRaw HTML string to clean, if you already fetched the page yourself.
paymentProofNoUSDC tx hash from any supported chain (base, ethereum, arbitrum, polygon, optimism, solana). Omit to receive a 402 price quote.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
sealNoCryptographic seal proving authenticity of this result.
resultNoStructured service payload produced by the paid operation.
price_usdNoUSD amount settled for this call.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. However, the description adds no behavioral detail beyond its purpose; notably, the pay-to-use behavior expressed through paymentProof and the 402 price quote is only present in the schema, not the description.

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?

The description is a single, front-loaded sentence with no wasted words. It conveys the essential purpose clearly and efficiently.

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 simple two-parameter tool with full schema descriptions, a specified output schema, and read-only annotations, the description is largely sufficient. The main contextual gap is the payment/402 behavior, but that is already encoded in the paymentProof parameter description, so an agent can call the tool correctly.

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 description coverage is 100%, so the parameters are already well documented. The description adds no additional meaning about the html or paymentProof fields, which is acceptable at baseline but does not elevate it.

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 uses a specific verb ('Extract') and resource ('clean JSON from messy HTML'), making the tool's function immediately clear. It also differentiates itself from siblings like scrape.bypass_captcha and analysis.summarize_clean by focusing on HTML-to-JSON conversion.

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 description implies usage ('when you have messy HTML and want JSON') but does not explicitly state when to use this tool versus alternatives, nor does it provide exclusions. The schema hint 'if you already fetched the page yourself' is a partial workflow cue, but no sibling comparison or conditional routing 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.

Resources