Skip to main content
Glama
Fakturia API MCP

Fakturia API MCP

by edjufy

get_credit_note_document

Retrieves the PDF document for a specified credit note as base64-encoded data, so you can decode, save, view, or print it.

Instructions

Retrieve the PDF document for a specific credit note. Returns the credit note document as base64-encoded PDF data, which can be decoded and saved as a PDF file for viewing or printing.

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": {
      "creditNoteNumber": "<creditNoteNumber>"
    },
    "name": "get_credit_note_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
creditNoteNumberYesThe unique credit note number identifying the credit note whose PDF document should be retrieved.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.4

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden and delivers the key fact: the response is base64-encoded PDF data that must be decoded and saved. That return-format disclosure is exactly what an agent needs to handle the payload, though it omits error behavior (missing/unknown credit note number) and any size or permission caveats.

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 sentences, front-loaded with the action and resource, followed immediately by the return contract. No redundant or filler wording.

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 one-parameter read tool with no output schema, this covers the essentials: what it fetches, how the result is encoded, and what to do with it. Only failure modes and the source of valid credit note numbers are 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 single parameter already carries a full description in the schema. The description adds no syntax, format, or sourcing information about creditNoteNumber beyond what the schema states, so the baseline 3 applies.

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 credit note," which is distinguishable from get_credit_note (metadata) and get_invoice_document (different resource). It stops short of explicitly naming the sibling to use instead when the agent needs credit note fields rather than the document, so it is clear but not fully differentiated.

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?

"For viewing or printing" implies the use case, but there is no explicit when-to-use/when-not guidance or contrast with get_credit_note / get_credit_note_correction_document. The agent must infer that this is the file-export path rather than the data path.

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