Skip to main content
Glama
Fakturia API MCP

Fakturia API MCP

by edjufy

pay_invoice

Marks an invoice as paid in Fakturia, using the current date and full outstanding amount by default; optionally set the payment date and amount.

Instructions

Mark an invoice as paid in Fakturia. Optionally specify the payment date and amount. If no pay date is provided, the current date is used. If no amount is provided, the full outstanding amount is assumed.

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": {
      "invoiceNumber": "<invoiceNumber>"
    },
    "name": "pay_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
payDateNoThe date when payment was received in YYYY-MM-DD format. Defaults to the current date if not specified.
payAmountNoThe amount paid. If not specified, the full outstanding invoice amount is used.
invoiceNumberYesThe unique invoice number identifying the invoice to mark as paid.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.4

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does add useful behavioral detail: defaults for payDate (current date) and payAmount (full outstanding). However, it omits what an agent most needs for a mutation — whether partial payments are allowed and how they affect status, permission requirements, whether the operation is idempotent, and what happens if the invoice is already paid or cancelled.

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?

Four short sentences, front-loaded with the core action and followed by the optional-parameter defaults. Slightly redundant with the schema descriptions of payDate and payAmount, but nothing is wasted or buried.

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 simple three-parameter mutation with no annotations and no output schema, the definition covers the happy path and defaults but leaves out failure modes (already paid, cancelled, overpayment), required permissions, and any note about the response. Adequate but not complete for a state-changing operation.

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 description coverage is 100%, so all three parameters are already documented in the schema, including the same defaulting behavior the description restates. The description adds no meaning beyond the schema (no format edge cases, rounding rules for payAmount, or currency semantics), 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?

The description opens with a specific verb and resource ("Mark an invoice as paid in Fakturia"), which is clearly distinct from state-changing siblings such as cancel_invoice or reopen_invoice. It never explicitly names those alternatives, so differentiation is achieved through the verb rather than explicit routing.

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 implied by the action name — use it to record payment — but there is no explicit statement of when to use this versus cancel_invoice, reopen_invoice, or rebill_invoice, and no preconditions (e.g. invoice must be open/unpaid) are given. An agent must infer the appropriate context.

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