Skip to main content
Glama

get_extraction_result

Read a completed extraction job's results page by page to retrieve paginated rows and continue with next offsets until all results are fetched.

Instructions

Read a finished job's results one page at a time. Free and read-only; reading results again costs nothing. Returns ready, status, result_count, billed_credits, notices, next_cursor, result and pagination: each list has offset, returned, total and next_offset, so call again with offset=next_offset until it is null. A job that has not finished returns ready=false; wait with wait_for_extraction first.

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": {
      "job_id": "<job_id>"
    },
    "name": "get_extraction_result"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoRows per result list on this page, 1-100. Default 50; compact pages can return fewer and set stopped_at_char_budget.
job_idYesJob id: job.id from create_extraction, job_id from extract_now, or an id listed by list_extractions, get_batch, get_schedule or get_plan.
offsetNoRow to start from in each result list. Default 0. Use the previous page's pagination next_offset.
compactNoDefault true: empty fields left out, media links and long text shortened, page capped at about 40,000 characters (follow pagination.next_offset). false returns full rows.
text_limitNoCharacters of each long text field to return, 1-50,000. Default 20,000.
text_offsetNoCharacter to start from in long text fields such as transcripts. Default 0. Use that field's pagination next_offset to read on.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.1.1
    • addedInput schema / properties / compact
      Added value: +{
      +  "default": true,
      +  "description": "Default true: empty fields left out, media links and long text shortened, page capped at about 40,000 characters (follow pagination.next_offset). false returns full rows.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / job_id / description
      Added value: +"Job id: job.id from create_extraction, job_id from extract_now, or an id listed by list_extractions, get_batch, get_schedule or get_plan."
    • addedInput schema / properties / limit / description
      Added value: +"Rows per result list on this page, 1-100. Default 50; compact pages can return fewer and set stopped_at_char_budget."
    • addedInput schema / properties / offset / description
      Added value: +"Row to start from in each result list. Default 0. Use the previous page's pagination next_offset."
    • addedInput schema / properties / text_limit / description
      Added value: +"Characters of each long text field to return, 1-50,000. Default 20,000."
    • addedInput schema / properties / text_offset / description
      Added value: +"Character to start from in long text fields such as transcripts. Default 0. Use that field's pagination next_offset to read on."
  2. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it declares the tool free and read-only, describes the non-ready state, and explains how pagination terminates via next_offset being null. It also discloses that compact mode truncates text and caps page size near 40,000 characters, which is behavior an agent could not infer from the schema.

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?

Three sentences, all substantive, with the core purpose and the pagination rule front-loaded. The middle sentence enumerates many return fields in a dense run, which is efficient but reads as a list rather than structured guidance.

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 6-parameter read with no annotations and no output schema, it covers the gating condition, the pagination loop, and the return surface, which is most of what an agent needs. It stops short of explaining what fields like notices or billed_credits contain, leaving some return-value semantics unstated in the absence of an output schema.

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 already 100%, so the baseline is 3, and the description adds real meaning by tying offset to the previous page's pagination.next_offset and describing the loop until it is null. The compact/text_offset semantics are largely restated from the schema, so it falls short of a 5.

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?

"Read a finished job's results one page at a time" pairs a specific verb with a specific resource and scope (one page). It also implicitly separates this read from the wait/creation siblings, so an agent knows this returns data rather than blocking or mutating.

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?

It states the precondition (job must be finished), the failure mode (ready=false), and the exact alternative to use instead (wait_for_extraction first). It also notes re-reading is free, which tells the agent it need not cache defensively.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.