Skip to main content
Glama

extract

Read-only

Scrape a public URL and return JSON that conforms to a caller-supplied bounded schema. Use web_scrape when you need the page content itself rather than structured fields.

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

Input Schema

NameRequiredDescriptionDefault
urlNoRequired public source-page URL to scrape before structured extraction.
renderNoDocumented values: auto, http, browser.
schemaNoRequired bounded JSON Schema with object root: at most 24000 bytes, depth 8, and 80 properties in total. $ref, anyOf, oneOf, allOf, not, and patternProperties are unsupported.
instructionsNoOptional extraction task. When omitted, the service extracts the fields in the supplied schema from the source page.

Output Schema

NameRequiredDescriptionDefault
dataYesThe tool result payload (shape varies per tool; see each tool's docs resource).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / instructions / description
      Added value: +"Optional extraction task. When omitted, the service extracts the fields in the supplied schema from the source page."
    • addedInput schema / properties / schema / description
      Added value: +"Required bounded JSON Schema with object root: at most 24000 bytes, depth 8, and 80 properties in total. $ref, anyOf, oneOf, allOf, not, and patternProperties are unsupported."
    • addedInput schema / properties / url / description
      Added value: +"Required public source-page URL to scrape before structured extraction."
  2. Changed1 schema field changed
    • addedInput schema / properties / render / description
      Added value: +"Documented values: auto, http, browser."
  3. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint and idempotentHint=false, so safety is covered. The description adds real context beyond them: only public pages are in scope, and output shape is bounded by the caller's schema. It stops short of noting the practical consequence of idempotentHint=false (repeated extractions of the same page may differ) or failure behavior on inaccessible pages.

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?

Two sentences, zero waste. The capability comes first and the sibling routing second, which is the correct front-loading order for a tool-selection decision.

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 four-parameter extraction tool with an output schema and full annotation coverage, the description supplies the selection rule and the input contract, which is enough to call it correctly. Minor gaps remain around render-mode behavior and what happens when the page cannot be scraped or the schema is rejected.

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 url, render, schema and instructions are all documented at the field level, and the bounded-schema constraints are already in the schema. The description echoes the caller-supplied-schema idea but adds no syntax, format or interaction detail, which is the baseline 3 when the schema does the work.

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?

Names a specific verb (scrape) and resource (a public URL), plus the exact output contract: JSON conforming to a caller-supplied bounded schema. It also explicitly contrasts itself with the web_scrape sibling, so an agent can pick between them without opening either schema.

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

Usage Guidelines5/5

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

States the selecting condition directly: use this for structured fields, use web_scrape when you need the page content itself. That is an explicit alternative plus the criterion that chooses it, with nothing left to inference.

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.