Skip to main content
Glama

get_extraction

Checks one extraction job's status, progress, result count, billed credits, notices, and errors without returning result rows; use it for a quick, free, read-only status check.

Instructions

Get one job's status (queued, running, completed, failed or cancelled), progress, result_count, billed_credits, notices and error, without result rows. Free and read-only. Use it for a quick check; use wait_for_extraction to wait for the end and get_extraction_result to read the data.

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

Input Schema

NameRequiredDescriptionDefault
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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.1
    • 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."
  2. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations supplied, the description carries the burden and does so well: 'Free and read-only' discloses both cost and safety profile, and 'without result rows' sets expectations about payload shape and the fact that no data retrieval side effects occur. It stops short of covering things like rate limits, whether a returned status is terminal, or how long completed jobs remain queryable.

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, both front-loaded: the first defines output, the second defines routing and cost/safety. No filler, and the most decision-relevant constraint (free, read-only, no rows) appears before the alternative-tool guidance.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description must describe the return payload itself — and it does, naming every field an agent would need to branch on. Combined with the routing guidance and cost disclosure, nothing essential for correct invocation is missing.

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% and the job_id property already documents all accepted sources (job.id from create_extraction, job_id from extract_now, ids from list_extractions, get_batch, get_schedule, get_plan). The description adds no further meaning about the parameter, so the baseline 3 applies.

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?

The description opens with a specific verb and resource ('Get one job's status') and then enumerates exactly what is returned: status values (queued, running, completed, failed, cancelled), progress, result_count, billed_credits, notices and error, plus the explicit exclusion of result rows. This makes it immediately distinguishable from get_extraction_result and wait_for_extraction.

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 gives an explicit selection rule: use this for a quick check, use wait_for_extraction to block until completion, and use get_extraction_result to read the data. Both alternatives are named with the condition that selects them, leaving nothing to inference.

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