Skip to main content
Glama

AgentX402: Pay-per-Call AI, Web Render, Search & DeFi Tools

extract_web_to_json

Read-onlyIdempotent

Extract clean structured JSON from any public URL or raw HTML ($0.02 USDC or free trial).

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": "extract_web_to_json"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoPublic HTTP(S) URL to scrape and extract
htmlNoRaw HTML string (optional if url provided)
schema_hintNoDesired JSON fields or extraction prompt

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld, and non-destructive, so the safety profile is covered. The description adds genuinely useful behavior not in the annotations: a per-call price ($0.02 USDC or free trial) and the restriction to 'public' URLs. It still omits JS-rendering requirements, failure modes, and any size/rate limits.

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?

A single front-loaded sentence: action and output first, input options second, cost last. No filler or repetition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, and the definition gives only 'clean structured JSON' without describing the response envelope or how schema_hint shapes the returned fields. It does helpfully signal that url or html is needed despite zero required parameters, but a paid extraction tool should say more about what comes back.

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 schema already explains url, html, and schema_hint. The description only reinforces that url and html are alternative input paths; it adds no syntax, format, or example detail for schema_hint, which is the least self-explanatory parameter.

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?

States a specific verb ('Extract') and concrete output ('clean structured JSON') plus the two accepted input forms ('any public URL or raw HTML'). This separates it from siblings like web_to_markdown (markdown output) or extract_pdf_to_json (PDF input), though it never names those alternatives explicitly.

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: use this when you have a public URL or raw HTML and want JSON back. There is no explicit when-to-use/when-not guidance, no routing to web_to_markdown, extract_pdf_to_json, or batch_extract_urls, and no note on when the batch variant is preferable.

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