Skip to main content
Glama

bookkeep_invoice

Book an invoice in the Fortnox ledger to finalize it for crediting. A booked invoice can no longer be edited.

Instructions

Book an invoice in the ledger (Fortnox only credits booked invoices). A booked invoice can no longer be edited.

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>"
    },
    "name": "bookkeep_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNo
document_numberYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden. It does disclose the single most important trait for a mutation tool — the operation is irreversible ('a booked invoice can no longer be edited') — but it says nothing about required permissions, error/failure modes, or what a successful call 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 irreversible side effect front-loaded, which is the right ordering for a risky write. Minor waste from the grammatical slip 'can no longer edited', but nothing structurally superfluous.

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 an irreversible booking action with no annotations and no output schema, the description covers the key risk but omits the dry_run escape hatch and any notion of what happens on success or conflict. It is adequate to avoid the worst mistake but incomplete for confident invocation.

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%, so the description must compensate for both parameters, and it does not. 'document_number' format and 'dry_run' semantics (does it validate without booking?) are never explained anywhere the agent can see, leaving the most decision-relevant parameter undocumented.

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 states a specific verb and resource ('Book an invoice in the ledger') and immediately names the downstream consequence, which distinguishes it from sibling operations like create_invoice or credit_invoice. It stops short of explicitly naming an alternative tool, so the differentiation is inferential rather than stated.

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?

The parenthetical 'Fortnox only credits booked invoices' implies the precondition for booking (you must book before crediting), which is useful implied guidance. However, there is no explicit when-to-use/when-not-to-use statement and no named alternative such as credit_invoice or cancel_invoice to route the agent.

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