Skip to main content
Glama

extract

Schema-driven structured extraction: fetch a URL and map its content into typed entities that conform to a JSON Schema you provide. Pass the schema as a JSON string; returns schema-conforming JSON (e.g. pricing, company facts, product specs, events). Requires DEEPSEEK_API_KEY.

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>",
      "schema": "<schema>"
    },
    "name": "extract"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYes
schemaYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does meaningful work: it discloses the required DEEPSEEK_API_KEY credential, the read-only fetch-and-map behavior, and that output conforms to the caller's schema. It omits operational traits such as timeouts, JS rendering, schema size limits, or how non-conforming pages are handled, which keeps it short of full disclosure.

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, front-loaded with the core mechanism, then the parameter form, then the return shape and prerequisite. No filler and no restatement of the tool name.

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?

There is no output schema, but the description compensates by naming the return shape (schema-conforming JSON) and giving entity examples. The auth prerequisite is stated. Only edge-case behavior for unscrapable or non-conforming pages is missing, which is a minor gap for a 2-parameter tool.

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 description coverage is 0% and both parameters are bare 'string' fields, so the description must compensate. It does: it explains that 'schema' must be passed as a JSON string (a non-obvious serialization decision given the schema types it as a plain string) and that 'url' is the page being fetched and mapped.

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 and resource chain: fetch a URL and map its content into typed entities conforming to a JSON Schema, then return schema-conforming JSON. This clearly distinguishes it from the sibling 'fetch' tool, which presumably returns raw content rather than schema-conforming entities.

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 by the schema-driven framing and the concrete entity examples (pricing, company facts, product specs, events), which tell the agent the kind of task this fits. However, it never explicitly says when to prefer this over 'fetch' or 'search', nor when not to use it, so the agent must infer the boundary from sibling names alone.

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.