Skip to main content
Glama
fakturka-api-mcp

fakturka-api-mcp

by softvoyagers

preview_invoice

Validate invoice JSON and preview the resulting data without generating a PDF, returning either validated invoice data or validation errors.

Instructions

Preview and validate invoice data without generating a PDF. Pass the full invoice JSON as a string. Returns validated invoice data or validation errors.

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": "preview_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYesInvoice JSON string to validate (same schema as generate_invoice)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.0

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 must carry the behavioral load. It usefully discloses the key trait — no PDF is produced, so it appears non-destructive — and states the return outcome (validated data or validation errors). It says nothing about persistence, permissions, or whether any state is touched on failure, which leaves real gaps for a no-annotation tool.

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 sentences, front-loaded with the action and the key constraint (no PDF), then the input instruction, then the return behavior. Slight redundancy between "validate" in sentence one and "Return validated invoice data or validation errors" in sentence three, but nothing wasteful.

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 tool with no output schema, the description covers what is needed: what it does, what to pass, and what comes back (validated data or errors). Only the shape of the validation errors is left undefined, which is a minor omission.

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 is documented as "Invoice JSON string to validate (same schema as generate_invoice)". The description reinforces that the complete JSON must be passed, a small addition over the schema, but adds no format or example detail — baseline 3 is appropriate.

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?

"Preview and validate invoice data without generating a PDF" gives a specific verb pair (preview/validate) and a clear resource (invoice data), and the "without generating a PDF" clause implicitly separates it from generate_invoice. It stops short of naming the sibling explicitly, so the differentiation relies on the agent inferring what generate_invoice does.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description establishes the use case clearly: check invoice input before committing to PDF generation, a dry-run style call. It does not state exclusions or prerequisites (e.g., whether it should always be called before generate_invoice), but the context for choosing it is unambiguous.

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