Skip to main content
Glama

XRechnung Pro

Check a purchase

get_purchase_status
Read-onlyIdempotent

Check whether a purchase started with start_purchase has been paid. When paid, returns the API key (shown for 24 hours). Store it and send it as "Authorization: Bearer " on this MCP connection or on the HTTP API. Poll every few seconds while the user is paying.

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": {
      "order_token": "<order_token>"
    },
    "name": "get_purchase_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
order_tokenYesorder_token from start_purchase

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent annotations: it explains the conditional return (API key only when paid), the 24-hour visibility window, and the exact way to use the returned key (Authorization: Bearer on this MCP connection or the HTTP API). That is the kind of post-call behavior an agent cannot infer from structured fields.

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?

Three sentences, each carrying distinct information: purpose, return-value rule, and consumption/polling instructions. Front-loaded with the core action and no filler.

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, and the description compensates by describing what is returned and its time limit, plus how to use it for authentication. Nothing an agent needs to call this correctly or handle the result 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 coverage is 100% and the schema already documents order_token as coming from start_purchase, so the description repeats rather than extends that meaning. Baseline 3 is appropriate for a single fully documented parameter.

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 ('Check whether a purchase ... has been paid') and ties it to the sibling that creates the purchase ('started with start_purchase'). An agent can immediately distinguish this from get_account_status or create_e_invoice.

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 places the tool in the workflow (call after start_purchase) and gives concrete polling guidance ('Poll every few seconds while the user is paying'). It doesn't spell out a when-not-to-use case, but the usage context is clear enough to act on.

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