Skip to main content
Glama

Extract fields

extract

Return fields from one public page. Call extractors.list for hosts, paths, and the sample schema. You can ask for title, heading, or both. If the page has no extractor, the error points to extractors.list. Call keys.create once. Pass caller_key on every later tools/call.

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

Input Schema

NameRequiredDescriptionDefault
urlYes
max_age_sNo
caller_keyNopf_ key from keys.create. Pass this on tools/call when Authorization and X-Caller-Key are not set. A header key wins if both are set.
json_schemaYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / json_schema / properties
      Added value: +{}
    • removedInput schema / properties / json_schema / propertyNames
      Removed value: -{
      -  "type": "string"
      -}
  2. Changed1 schema field changed
    • addedInput schema / properties / caller_key
      Added value: +{
      +  "description": "pf_ key from keys.create. Pass this on tools/call when Authorization and X-Caller-Key are not set. A header key wins if both are set.",
      +  "type": "string"
      +}
  3. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations declare readOnlyHint=false and destructiveHint=false, which the description never reconciles with the apparently read-like 'Return fields' framing. It does add real behavioral context beyond annotations by disclosing the no-extractor error path and the one-time key bootstrap requirement. The max_age_s caching behavior and any upstream-fetch side effects implied by readOnlyHint=false go unmentioned.

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?

Four short sentences, front-loaded with purpose, then prerequisites, then the failure mode. The keys.create/caller_key sentences read as an appended auth note rather than part of a coherent flow, but there is no filler.

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?

With no output schema and a nested json_schema parameter, the description should explain the contract more. It covers the setup and error paths well enough for an agent to sequence calls correctly, but leaves the meaning of max_age_s and the required shape of json_schema to the (sparse) schema.

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 only 25%, so the description carries extra burden. It clarifies caller_key usage (consistently across calls) and hints at requested fields with 'title, heading, or both', which loosely maps to json_schema. It says nothing about max_age_s (a cache TTL up to 86400s) or what the required json_schema must contain, leaving two of four parameters under-explained.

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 ('Return fields from one public page') and scopes it to a single page, which implicitly contrasts with the batch sibling. It never names the extraction mechanism (a caller-supplied json_schema) in the purpose sentence, so the agent must infer it from the schema.

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?

Gives concrete prerequisites and ordering: check extractors.list for hosts/paths/sample schema, call keys.create once, then pass caller_key on every later tools/call. It also defines the fallback when no extractor exists. It stops short of stating when to prefer extract_batch or explain_extractor instead.

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