Skip to main content
Glama
fakturka-api-mcp

fakturka-api-mcp

by softvoyagers

generate_invoice

Generate a Polish VAT invoice PDF from a complete invoice JSON string, including seller, buyer, and line items; returns the invoice number and base64-encoded PDF.

Instructions

Generate a Polish VAT invoice PDF. Pass the full invoice JSON (with sprzedawca, nabywca, pozycje, etc.) as a string. Returns invoice number and base64-encoded PDF.

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": {
      "data": "<data>"
    },
    "name": "generate_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYesInvoice JSON string with sprzedawca (seller), nabywca (buyer), pozycje (line items), and other invoice fields

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.0

TDQS

B3.3/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, and it does deliver two important facts: the output is an invoice number plus a base64-encoded PDF. It leaves out whether the invoice is persisted or registered with any authority, whether numbering is consumed on failure, and what errors look like, which matters for a document-generating tool with potential legal numbering.

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?

Three short sentences with the purpose first and the return contract second; nothing is repeated and nothing is padding. The 'etc.' is the only vague token, and it is minor.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/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 what goes in and broadly what comes back, which is close to sufficient. It is missing failure behavior and any indication of required invoice fields, so an agent cannot fully anticipate error paths.

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 there is only one parameter, so the baseline is 3. The description adds a small amount beyond the schema by naming the invoice sections (sprzedawca, nabywca, pozycje) inline and emphasizing the value must be a serialized string, but it does not clarify which fields are mandatory or what the 'etc.' fields are.

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?

The description states a specific verb and resource plus a locale qualifier: 'Generate a Polish VAT invoice PDF.' That is far more specific than the tool name alone. It does not, however, distinguish this from the sibling 'generate_proforma' or explain how it relates to 'preview_invoice', so an agent must guess which generator to pick.

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?

The only usage instruction is 'Pass the full invoice JSON ... as a string', which describes how to call it rather than when. With siblings generate_proforma and preview_invoice in the catalog, the description never says when to choose this tool over them, nor what prerequisites exist (valid NIP, currency, response handling).

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