Skip to main content
Glama

Scrape JSON

scrapeJson

Extract structured JSON from a page using a natural-language prompt. Append Json Schema: and a JSON schema to shape the output.

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

Input Schema

NameRequiredDescriptionDefault
urlYesAbsolute HTTP or HTTPS URL of the page to process.
htmlNoWhether to include the page HTML in the response.
proxyNoCustom proxy URL used to load the page.
superNoWhether to route the request through real devices.
promptNoInstructions describing the data to extract. Append Json Schema: and a JSON schema to shape the output.Extract all data as complete as possible.
geoCodeNoTwo-letter country code to load the page from, sent in lowercase.us
timeoutNoPage load timeout in seconds, from 1 to 300. The HTTP request allows 30 additional seconds.
waitUntilNoNavigation completion event to wait for: domcontentloaded, load, networkidle0, or networkidle2.domcontentloaded
maxRetriesNoMaximum number of retries, as a nonnegative integer. Omit this parameter for no limit.
saveResultNoWhether to save the result to the dashboard Result tab.
screenshotNoWhether to include a base64 screenshot in the response.
proxyCountryNoTwo-letter country code of the proxy server, sent in lowercase.us
browserRenderingNoWhether to render the page in a browser before returning the result.

Output Schema

NameRequiredDescriptionDefault
dataYesParsed response JSON or text.
errorNo
headersYesResponse headers with credentials removed.
status_codeYesUpstream HTTP status, or null for a network failure.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior2/5

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

Annotations declare openWorldHint=true and destructiveHint=false, and the description adds nothing about what the tool actually does at runtime. It never mentions that proxy/super/browserRendering change which infrastructure loads the page, that timeouts and retries apply, or that page loads can be slow or fail — all material for a 13-parameter scraper.

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 short sentences, purpose front-loaded, no filler. It is efficient, though the second sentence spends its budget restating schema text rather than covering the highest-value gaps.

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

Completeness2/5

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

For a 13-parameter scraping tool with proxy, device routing, geo targeting, and retry controls, the description is far too thin even accounting for the output schema and full schema coverage. An agent gets no sense of cost, latency, failure modes, or when this path is preferable to the other scrape tools.

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 every parameter including prompt already has a description, making 3 the baseline. The description's schema tip duplicates the prompt parameter's own schema text verbatim rather than adding new meaning, so it earns no credit above baseline.

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 and resource ('Extract structured JSON from a page') plus the mechanism (natural-language prompt), which distinguishes it from scrapeHtml and scrapeMarkdown by output shape. It does not explicitly name those siblings, so the differentiation is inferential.

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

Usage Guidelines2/5

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

No when-to-use guidance at all: nothing tells the agent to prefer this over scrapeHtml/scrapeMarkdown/webSearch, nor when structured JSON extraction is warranted. The second sentence is a how-to for the prompt payload rather than a usage condition.

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.