Skip to main content
Glama

Get Extraction Result

get_extraction
Read-only

Get the result of a previous extraction by ID. Returns extracted data, a signed URL for downloading the original image (valid for 1 hour), and error_message if the extraction failed (e.g. inappropriate_content, prohibited_content, low_confidence).

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": {
      "extraction_id": "<extraction_id>"
    },
    "name": "get_extraction"
  }
}

Input Schema

NameRequiredDescriptionDefault
extraction_idYesUUID of the extraction to retrieve

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered; the description goes further by disclosing the return composition (extracted data, signed download URL, error_message) and the URL's 1-hour expiry, plus enumerated failure categories (inappropriate_content, prohibited_content, low_confidence). This is genuine added context an agent cannot get from the structured fields. It does not say what happens when the extraction is still in progress, leaving one behavioral gap.

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?

Two sentences, zero filler: purpose first, then the return contract with the failure reasons parenthesized efficiently. The expiry detail is placed inline where it matters rather than in a separate clause, keeping it front-loaded and scannable.

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 only one parameter, the description correctly spends its budget explaining return values, including the signed-URL semantics and error taxonomy. The notable omission is status behavior for an extraction that has not finished, which matters for a job-result endpoint and would prevent a naive agent from misreading an empty result.

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 100% and the single extraction_id parameter is already documented in the schema as a UUID, so the description contributes no additional parameter meaning such as format examples or whether an ID from list_extractions is acceptable. Baseline 3 applies when the schema does the work.

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?

The description opens with a specific verb and resource ('Get the result of a previous extraction by ID'), which is unambiguous and tells the agent this is a retrieval operation keyed by an existing extraction. It stops short of explicitly naming a contrasting sibling such as list_extractions or extract_data, so differentiation relies on the reader inferring 'by ID' means single-record lookup.

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?

The phrase 'previous extraction' implies this is the follow-up call after an extraction was started, which is useful context, but there is no explicit when-to-use/when-not-to-use statement or named alternative. An agent must infer that list_extractions is for enumeration and extract_data for creating the job.

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