Skip to main content
Glama

get_contract_import

Read-only

Progress and result of an import_contract_from_folder run (Ticket 8138bb37). Required: operation_id (from import_contract_from_folder). Returns state: 'running' with per-file progress (phase per file: wartet/hochgeladen/ocr/gelesen/fertig); 'complete' with the created/updated contract_id and art ('neu' or 'aktualisiert') plus the full extraction result; or 'failed' with the overall reason (fehler) and the per-file phase/reason. Poll every few seconds until state is no longer 'running'.

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": {
      "operation_id": "<operation_id>"
    },
    "name": "get_contract_import"
  }
}

Input Schema

NameRequiredDescriptionDefault
operation_idYesID of the operation

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / operation_id / description
      Added value: +"ID of the operation"
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=true and openWorldHint=false; the description goes well beyond them by enumerating the three terminal states, the per-file phase vocabulary (wartet/hochgeladen/ocr/gelesen/fertig), the payload of the 'complete' state (contract_id, art neu/aktualisiert, full extraction result), and the failure payload (fehler plus per-file reason). Polling cadence is also disclosed.

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?

Front-loaded with purpose and the required input, then the return states in a logical running/complete/failed order. Nearly every clause carries information the agent needs; the ticket reference '(Ticket 8138bb37)' is the one piece of noise that does not earn its place.

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 carry the return contract, and it does so comprehensively for all three states including field names and German enum values. For a single-parameter polling tool, nothing an agent needs in order to call or interpret it is missing.

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 100% and the schema only says 'ID of the operation'; the description adds provenance (it comes from import_contract_from_folder) and marks it required, which is meaning the schema does not carry. With a single fully-documented parameter this is a modest but real addition, so 4 rather than a bare baseline 3.

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: returns progress and result of an import_contract_from_folder run, and names that sibling as the producer of the operation. Distinguishes it from the initiating tool and from get_contract without opening any 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?

Explicitly tells the agent to poll every few seconds until state is no longer 'running', and states that operation_id must come from import_contract_from_folder, which pins the tool to a specific call sequence. It stops short of naming a hard exclusion case (e.g. use list_import_runs for historical runs), so it is clear context rather than full when/when-not guidance.

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.