Skip to main content
Glama
Fakturia API MCP

Fakturia API MCP

by edjufy

get_credit_note_correction_document

Retrieve a credit note correction's PDF document as base64-encoded data using its correction number, so you can decode and save the file for viewing or printing.

Instructions

Retrieve the PDF document for a specific credit note correction. Returns the correction 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": {
      "creditNoteCorrectionNumber": "<creditNoteCorrectionNumber>"
    },
    "name": "get_credit_note_correction_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
creditNoteCorrectionNumberYesThe unique credit note 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

A3.6/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden and does disclose the key behavioral trait: the return is base64-encoded PDF data that must be decoded and saved. It says nothing about failure modes (e.g., when no document exists for the correction), authentication needs, or payload size, which matter for a document-fetch call.

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 retrieval action and immediately followed by the encoding format and intended use. 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 single-parameter getter with no output schema, the description covers what is returned (base64 PDF) and what to do with it, which is the critical missing piece an agent would otherwise lack. It is nearly complete, with only error/edge-case behavior left unspecified.

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?

Only one parameter exists and schema coverage is 100%, with the schema already explaining that it is the unique correction number. The description merely restates 'a specific credit note correction' without adding format, source, or lookup guidance, so 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 ('Retrieve') and resource ('the PDF document for a specific credit note correction'), which clearly separates it from the metadata-oriented siblings such as get_credit_note_correction or get_credit_note. It stops short of explicitly naming an alternative, so it is clear but not fully differentiated from every sibling.

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 by the phrase 'for viewing or printing', which hints at when you'd want the document rather than the correction record itself. There is no explicit when-to-use/when-not guidance relative to get_credit_note_correction or get_credit_note_correction_document-style siblings.

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