Skip to main content
Glama

More AI - ChatGPT & Claude MCP (Fortnox)

Prepare a voucher

propose_create_voucher
Idempotent

Prepares a new voucher (bookkeeping entry) with its rows. Use when the person asks to book a transaction, such as a manual entry or a correction. A booked voucher cannot be edited; a mistake is corrected with a new correcting voucher. This tool only prepares the change and sends nothing to Fortnox; the change is sent after the person approves it, as the answer describes. Body: {"Voucher": {…}}; required: Description, TransactionDate, VoucherRows[].Account, VoucherSeries. Fortnox API POST /3/vouchers (https://api.fortnox.se/apidocs).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "propose_create_voucher"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoThe request body, as Fortnox expects it: an object
financialyearNoFinancial year id, used to determine which financial year the voucher is created in

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / body / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": {},
      -    "propertyNames": {
      -      "type": "string"
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "items": {},
      -    "type": "array"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {},
      +    "propertyNames": {
      +      "type": "string"
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "items": {},
      +    "type": "array"
      +  },
      +  {
      +    "maxLength": 200000,
      +    "type": "string"
      +  }
      +]
    • changedInput schema / properties / body / description
      Previous value: -"The request body, as Fortnox expects it"New value: +"The request body, as Fortnox expects it: an object"
  2. Changed1 schema field changed
    • addedInput schema / properties / body / anyOf
      Added value: +[
      +  {
      +    "additionalProperties": {},
      +    "propertyNames": {
      +      "type": "string"
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "items": {},
      +    "type": "array"
      +  }
      +]
  3. Added

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations (which already state non-read-only, non-destructive, idempotent, closed-world), the description discloses the two-phase prepare/approve flow, that nothing is sent to Fortnox until approval, and the important lifecycle fact that a booked voucher is immutable and must be corrected with a new correcting voucher. That is exactly the behavioral context an agent needs before invoking a mutation.

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?

The action and triggering condition are front-loaded, followed by the approval-flow and body-shape details in a compact block. The API endpoint plus documentation URL at the end is slightly extraneous but cheap and useful for verification.

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

Completeness5/5

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

For a write tool with an output schema, this covers everything that matters: what is prepared, that nothing is transmitted yet, the approval handoff, immutability after booking, and the required body fields. Return values need not be explained since an output schema exists.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description goes further by revealing the body envelope shape ('{"Voucher": {...}}') and the required fields inside the otherwise opaque body (Description, TransactionDate, VoucherRows[].Account, VoucherSeries). The financialyear parameter is only covered by the schema, and row-level debit/credit semantics are left unstated.

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 opening sentence gives a specific verb and resource ('Prepares a new voucher (bookkeeping entry) with its rows') and glosses the accounting term for non-experts. It stops short of naming which sibling to prefer for related bookkeeping tasks such as propose_bookkeep_invoice, so sibling differentiation is implied rather than explicit.

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?

'Use when the person asks to book a transaction, such as a manual entry or a correction' gives a clear triggering condition. There is no explicit when-not or named alternative, which matters here because several siblings also post bookkeeping entries.

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