Skip to main content
Glama
Fakturia API MCP

Fakturia API MCP

by edjufy

get_invoice_correction_document

Retrieve the PDF document for a specific Fakturia invoice correction by its correction number, returned as base64-encoded data for decoding and saving.

Instructions

Retrieve the PDF document for a specific invoice correction from Fakturia. Returns the correction PDF as base64 encoded data, which can be decoded and saved as a PDF file.

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": {
      "invoiceCorrectionNumber": "<invoiceCorrectionNumber>"
    },
    "name": "get_invoice_correction_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
invoiceCorrectionNumberYesThe unique invoice correction number identifying the correction whose PDF document should be retrieved.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.4

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It usefully discloses the return format (base64-encoded PDF that can be decoded and saved), but omits error behavior when the correction number is unknown, permission requirements, and whether retrieval has side effects.

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?

Two short sentences, front-loaded with the action and resource, followed by the practically useful return-format note. No filler or redundant phrasing.

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 correctly takes on the job of explaining the return value as base64 PDF data, which is the key thing an agent needs. It is slightly incomplete on failure modes and how the correction number is obtained.

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 single parameter has 100% schema description coverage, so the schema already explains invoiceCorrectionNumber. The description adds no format, sourcing, or lookup guidance beyond what the schema states, which is the expected baseline.

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?

States a specific verb and resource: retrieve the PDF document for a specific invoice correction, and names the source system (Fakturia). It distinguishes itself in kind from metadata fetches, but never explicitly contrasts with siblings such as get_invoice_correction or get_invoice_document.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use or when-not-to-use guidance, and no alternatives are named despite closely related siblings. An agent must infer that this fetches the binary artifact while get_invoice_correction returns metadata.

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

Deploy Server

Other Tools