Skip to main content
Glama

register_invoice_payment

Applies an incoming customer payment to a Fortnox invoice using a SEK or foreign-currency amount, with optional bookkeeping when requested.

Instructions

Register an incoming customer payment on an invoice (amount in SEK; amount_currency for foreign-currency invoices). bookkeep=true books the payment as well.

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": {
      "document_number": "<document_number>",
      "amount": "<amount>"
    },
    "name": "register_invoice_payment"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountYes
dry_runNo
bookkeepNo
payment_dateNo
amount_currencyNo
document_numberYes
mode_of_paymentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden, and it does disclose two useful behaviors: the SEK-denominated amount with amount_currency for foreign invoices, and that bookkeep=true additionally books the payment. However, it says nothing about the dry_run flag's effect, irreversibility of registering a payment, required permissions, or what a successful registration returns.

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?

Two short sentences with the core action and the key currency/booking caveats front-loaded; no filler. It is terse to the point of omitting needed parameter detail, but the wording itself is efficient.

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

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a mutating financial operation with no annotations, no output schema, and 7 undocumented parameters, yet the description covers only three of them and omits dry_run, payment_date, and mode_of_payment entirely. Far more disclosure is needed for an agent to invoke it safely and correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 7 parameters, so the description must compensate, and it only clarifies amount (SEK), amount_currency (foreign-currency invoices), and bookkeep. Four parameters — document_number, payment_date, mode_of_payment, and dry_run — receive no semantic explanation anywhere.

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 names a specific verb and resource ('Register an incoming customer payment on an invoice'), which is clearly distinguishable from reading siblings like get_invoice_payment_evidence or get_invoice. It does not explicitly name a contrasting sibling, so it falls short of a 5.

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: an agent can infer this applies to recording a customer payment against an existing invoice, but there is no statement of when to use this versus bookkeep_invoice or get_invoice_payment_evidence, and no prerequisites are given. No exclusions or alternatives are mentioned.

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