Skip to main content
Glama
Fakturia API MCP

Fakturia API MCP

by edjufy

get_invoice_document

Retrieve an invoice PDF by invoice number from Fakturia as base64 data, ready to decode and save as a PDF file.

Instructions

Retrieve the PDF document for a specific invoice from Fakturia. Returns the invoice 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": {
      "invoiceNumber": "<invoiceNumber>"
    },
    "name": "get_invoice_document"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.4

TDQS

A3.5/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 disclosure burden. It usefully reveals the return encoding (base64 PDF) and the intended decode-and-save workflow, and 'Retrieve' implies a read-only operation, but it says nothing about failure behavior when no document exists, size limits, or authorization requirements.

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?

Two sentences, front-loaded with the action and resource, followed by the return format. The decoding note earns its place by telling the agent how to use the output, though it could be trimmed slightly.

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?

There is no output schema, so the description appropriately compensates by explaining that the result is base64 PDF data. For a single-required-param read tool this is nearly sufficient; only error/absence behavior and any size constraints are unaddressed.

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?

With one parameter and 100% schema description coverage, the schema already explains invoiceNumber fully. The description adds only that the number scopes the PDF retrieval, which is marginal but consistent; baseline 3 applies since the schema does the work.

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') plus the source system, which distinguishes it by output type from siblings like get_invoice. It stops short of naming get_invoice or get_invoice_correction_document explicitly, so the differentiation is inferred from the word 'document' rather than declared.

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?

Usage is only implied: an agent can infer this is the tool for when the PDF file itself is needed rather than invoice fields. There is no explicit statement of when to prefer this over get_invoice, nor any prerequisite (invoice must exist, must have a generated document) or exclusion.

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