Skip to main content
Glama

Extract pages

extract
Read-onlyIdempotent

Read up to 20 URLs (HTML or PDF) as clean Markdown. With query + highlights, return only the passages most relevant to the query; with summary, a short summary; with output_schema, structured JSON. 1 credit per URL read (+4 summary, +4 output_schema); failed URLs and failed AI steps are free.

Input Schema

NameRequiredDescriptionDefault
urlsYes
queryNoWhat to rank passages against (with highlights)
promptNoGuides output_schema extraction (what to pick, how to normalise)
countryNoFetch through an exit in this country, e.g. de
summaryNoAdd a 3-6 sentence summary of each page (+4 credits per page)
timeoutNoSeconds to wait for the pages; slower ones are reported as failed (not charged)
highlightsNoPassages per page ranked against query (0 = full page)
max_tokensNoCap per page
output_schemaNoA JSON Schema: return each page's data as JSON matching it (+4 credits per page)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / output_schema
      Added value: +{
      +  "description": "A JSON Schema: return each page's data as JSON matching it (+4 credits per page)",
      +  "type": "object"
      +}
    • addedInput schema / properties / prompt
      Added value: +{
      +  "description": "Guides output_schema extraction (what to pick, how to normalise)",
      +  "type": "string"
      +}
    • addedInput schema / properties / summary
      Added value: +{
      +  "description": "Add a 3-6 sentence summary of each page (+4 credits per page)",
      +  "type": "boolean"
      +}
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent/openWorld annotations with a concrete cost model (1 credit per URL, +4 for summary, +4 for output_schema), a refund policy for failed URLs and failed AI steps, and a timeout consequence ('slower ones are reported as failed'). This is exactly the operational context annotations cannot express.

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?

Three sentences, no filler, with the core capability front-loaded and pricing last. Every clause carries information an agent needs for budgeting or parameter selection.

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?

Covers capability, modes, limits, and cost for a 9-parameter tool with a nested JSON Schema parameter and no output schema. Minor gaps (per-page failure reporting shape, interaction of max_tokens with highlights) are handled acceptably by the schema descriptions.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 89%, so the baseline is 3; the description earns an extra point by explaining the coupling between query and highlights (ranked passages vs full page) and the role of output_schema, which is the non-obvious interaction an agent must get right. Prompt, country, timeout, and max_tokens are left to the schema and are adequately documented there.

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?

States a specific verb (read) and resource (URLs, HTML or PDF) plus the output format (clean Markdown) and a hard limit of 20. This is immediately distinguishable from retrieval siblings like search, crawl, or webpage, which fetch or index rather than convert URLs to Markdown.

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

Usage Guidelines4/5

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

Explicitly maps three mode combinations to outcomes: query + highlights yields ranked passages, summary yields a short summary, output_schema yields structured JSON. It does not state when to prefer this over the webpage or crawl siblings, so routing guidance is good but not exhaustive.

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.