Skip to main content
Glama

Set invoice payment status

set_invoice_payment_status
DestructiveIdempotent

Marks an issued document as paid and/or sent on a date, or removes the mark with null. Only the given marks change. This only records the status in EnKonto; nothing is sent to the customer.

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": {
      "company_id": "<company_id>",
      "invoice_id": "<invoice_id>"
    },
    "name": "set_invoice_payment_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
paid_atNoThe day the document was paid, YYYY-MM-DD, not after today; null: not paid.
sent_atNoThe day the document was sent to the customer, YYYY-MM-DD, not after today; null: not sent.
company_idYesThe id of the company, from list_companies.
invoice_idYesThe id of the issued document, from list_invoices.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations declare destructiveHint=true and idempotentHint=true, and the description usefully reframes that: clearing a mark with null is the 'destructive' action, and 'Only the given marks change' tells the agent this is a partial update that leaves other fields intact. It does not mention permission requirements or what the call returns, so it stops short of full behavioral disclosure.

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, front-loaded with the primary action, followed by the partial-update guarantee and the scope disclaimer. Every sentence carries distinct information with no repetition.

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?

With no output schema, annotations covering the safety profile, and 100% schema coverage, the description supplies what is missing: partial-update semantics and the fact that no external message is emitted. Minor gaps remain around required permissions or side effects on totals/documents, but nothing essential to calling it correctly is absent.

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 four parameters (including the YYYY-MM-DD and null semantics) are already documented. The description echoes the null-removes-mark meaning but adds no format, constraint, or interaction detail beyond what the schema states, making the baseline 3 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?

States a specific verb and object ('Marks an issued document as paid and/or sent on a date') plus the inverse operation ('removes the mark with null'). It also pre-empts the most likely sibling confusion by asserting 'nothing is sent to the customer', separating it from email_invoice and send_invoice_to_ksef, though it never names those siblings explicitly.

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?

Use is implied by the wording: record or clear payment/sent marks on an already-issued document. There is no explicit when-to-use vs when-not guidance (e.g., for drafts, or versus issue_invoice/cancel_invoice), so an agent must infer the boundary from the phrase 'issued document'.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources