Skip to main content
Glama

Moneda

get_subscription_invoice

Read-only

Generate (idempotently) the ZUGFeRD plan invoice PDF for a single subscription charge and return a 1-hour presigned download URL. First call allocates the invoice number (YYYY-NNNNNN), renders the PDF/A-3 with embedded EN 16931 XML, and uploads to S3; subsequent calls return a fresh presigned URL for the existing row. The user must own the underlying charge. Returns { invoiceNumber, downloadUrl }.

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": {
      "chargeTransactionId": "<chargeTransactionId>"
    },
    "name": "get_subscription_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
chargeTransactionIdYesThe SUBSCRIPTION_CHARGE Transaction id (from list_subscription_charges output).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior2/5

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

The description is unusually rich: it discloses first-call side effects (invoice number allocation in YYYY-NNNNNN format, PDF/A-3 rendering with embedded EN 16931 XML, S3 upload), idempotency, and the 1-hour URL expiry. However, those allocations/uploads write persistent state, which directly conflicts with readOnlyHint=true. The description's disclosure is valuable but it contradicts the structured annotation an agent would otherwise trust.

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 verb, resource, and return value in the first sentence; the following sentences cover idempotency, format, and the return shape without filler. It is dense but every clause carries decision-relevant information (format details matter for verifying the artifact), though it could be split for readability.

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?

For a one-parameter tool with no output schema, the description covers everything an agent needs: prerequisite (ownership), idempotency semantics, artifact format, URL lifetime, and the explicit return shape `{ invoiceNumber, downloadUrl }`.

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%, so the single parameter is already documented, giving a baseline of 3. The description adds real meaning beyond the schema by specifying the ownership requirement on the referenced charge and reinforcing that the ID comes from list_subscription_charges output.

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?

Names a specific verb and resource ('Generate (idempotently) the ZUGFeRD plan invoice PDF for a single subscription charge') and states the output (a presigned download URL). An agent can immediately distinguish it from list_subscription_charges, which only enumerates charges.

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?

Gives a clear precondition ('The user must own the underlying charge') and routes the agent to the source of the input ID ('from list_subscription_charges output'). It also explains repeat-call behavior (idempotent, fresh URL for the existing row). It stops short of naming when *not* to use it or alternative invoice/statement tools.

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