Skip to main content
Glama

Üleslaadimise seis

get_upload_status
Read-onlyIdempotent

Tagasta üles laaditud arve töötlemise seis: PENDING/PROCESSING (OCR käib), PARSED (loetud, ootab kasutaja ülevaatust Uunos — põhjused reasons-is), CONFIRMED (arve on loodud — invoice), FAILED (viga), SPLIT (failis oli mitu arvet — parts). uploadId tuleb upload_purchase_invoice vastusest.

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": {
      "uploadId": "<uploadId>"
    },
    "name": "get_upload_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
uploadIdYesupload_purchase_invoice tagastatud uploadId

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare this a safe, idempotent read, so the description's added value is the state machine semantics: which statuses are transient (OCR), which await user review, and which side fields (reasons, invoice, parts) appear in each state. That is genuinely useful behavior beyond the annotations, though it does not address polling cadence, timing, or error recovery for FAILED beyond naming it.

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?

One dense paragraph that is front-loaded with purpose and then unfurls status meanings; no filler sentences. The nested parenthetical structure is slightly heavy to parse but every clause carries information.

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, the description carries the burden of explaining return values and largely does so by mapping each status to its accompanying field. It lacks only guidance on polling behavior and on what to do after FAILED or CONFIRMED, which keeps it short of complete.

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% for the single uploadId parameter, so the baseline is 3. The description adds provenance by stating the value must come from the upload_purchase_invoice response, which prevents an agent from inventing an id, but adds no format details.

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 ('Tagasta üles laaditud arve töötlemise seis') and then enumerates the exact status values it returns, so an agent immediately knows what question this tool answers. It is clearly distinct from the sibling upload_purchase_invoice, which it names as the source of the identifier.

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?

The final sentence ties usage to upload_purchase_invoice ('uploadId tuleb upload_purchase_invoice vastusest'), making the call sequence clear. The status list also implies when to keep polling versus when the invoice is finalized, but it does not explicitly say to stop after CONFIRMED or point to get_invoice_details for the finished invoice.

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