Skip to main content
Glama
fakturka-api-mcp

fakturka-api-mcp

by softvoyagers

generate_proforma

Create a Polish proforma invoice PDF from a full invoice JSON string, returning the invoice number and base64-encoded PDF.

Instructions

Generate a Polish proforma 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_proforma"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYesProforma invoice 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.2/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 burden. It does useful work by disclosing the return contract (invoice number plus base64 PDF), which matters since there is no output schema, but it says nothing about side effects, whether a file is written server-side, validation failure behavior, or whether required seller/buyer fields are enforced.

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?

Three short, front-loaded sentences with no filler: purpose first, then input format, then return value. The trailing 'etc.' is the only slack, leaving the field set loosely bounded.

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?

Adequate for a one-parameter generation tool with no output schema, since the return value is described. However, with no annotations the definition should cover whether the call is purely computational, what happens on malformed JSON, and what separates it from the sibling invoice generators.

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% on the single 'data' parameter, so the schema already documents that it is a JSON string with sprzedawca, nabywca, and pozycje. The description restates the same field list and stresses passing the 'full' JSON, adding a little emphasis but no new syntax or format detail beyond the schema.

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, resource, and locale: 'Generate a Polish proforma invoice PDF'. The word 'proforma' distinguishes it from generate_invoice, though the description never explicitly contrasts the two siblings or explains when proforma is the right choice.

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 when-to-use guidance and no mention of the obvious alternatives (generate_invoice, preview_invoice). An agent facing several invoice-related siblings must guess which one produces a proforma document; the only instruction is how to pass the payload, not when to call this tool.

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