Skip to main content
Glama
cmendezs

mcp-ksef-pl

Get Ksef Invoice Status

get_ksef_invoice_status

Check the processing status of a submitted KSeF invoice by providing its reference number. Pass a session reference to get the overall session status instead.

Instructions

Retrieve the processing status of a submitted KSeF invoice (API v2).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
reference_numberYes ("{sessionRef}:{invoiceRef}"). Pass just the sessionRef to retrieve the overall session status instead.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.1

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are provided, so the description carries the behavioral disclosure burden. 'Retrieve' and 'processing status' strongly imply a read-only operation, but the description does not mention potential error cases, polling semantics, or confirmation that no state changes occur. The read-only implication compensates partly for the missing annotations.

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?

The description is a single, front-loaded sentence with no filler or redundant wording. It states the operation, the target resource, and the relevant API version efficiently.

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 tool with one required parameter and an output schema, the description is mostly sufficient for an agent to invoke it correctly. The only notable gap is the lack of explicit guidance about when to use this versus the search-related sibling or how to handle unresolved statuses, but the output schema likely covers response details.

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?

The schema description coverage is 100%, and the parameter schema already explains the '{sessionRef}:{invoiceRef}' format and the option to pass only the sessionRef for session status. The tool description adds no additional parameter-level meaning beyond that, so the baseline score of 3 is appropriate.

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 clearly identifies the operation as retrieving the processing status of a KSeF invoice, with an explicit version qualifier ('API v2'). It is specific about verb and resource, though it does not explicitly distinguish itself from siblings like search_ksef_invoices.

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 word 'submitted' implies the tool should be used after invoice submission, and the sibling submit_invoice_to_ksef provides contextual contrast. However, there is no explicit statement about when to use this tool instead of alternatives like search_ksef_invoices or when it is not appropriate.

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