Skip to main content
Glama

More AI - ChatGPT & Claude MCP (Fortnox)

Prepare booking a customer payment

propose_bookkeep_invoice_payment
Idempotent

Prepares bookkeeping a customer payment that is already registered in Fortnox. Number is the payment's own number, not the invoice number. Use when the person asks to book a registered payment. It does not create or register a payment, and it does not move any money. Payments imported from a bank file are booked in Fortnox itself. 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: {"InvoicePayment": {…}}. Fortnox API PUT /3/invoicepayments/{Number}/bookkeep (https://api.fortnox.se/apidocs).

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": {
      "Number": "<Number>"
    },
    "name": "propose_bookkeep_invoice_payment"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoThe request body, as Fortnox expects it: an object
NumberYesidentifies the invoice payment

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.7/5.0
Behavior5/5

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

Beyond the annotations (which only declare non-read-only, non-destructive, idempotent), the description discloses the critical two-phase behavior: nothing is sent to Fortnox until the person approves, and no money moves. That approval-gating contract is exactly the behavioral context annotations cannot convey, and it materially changes how an agent should present the result.

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?

Front-loaded with the action and its scope, then caveats, then the approval contract, then parameter clarifications and the API reference. Every sentence carries information an agent would otherwise have to guess, with no filler.

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?

With annotations, a 100%-covered schema and an output schema present, the description covers the remaining burdens: the side-effect boundary, the approval workflow, the identifier ambiguity, and the body envelope. Nothing an agent needs in order to call this correctly and describe the outcome is missing.

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 adds real meaning by clarifying 'Number is the payment's own number, not the invoice number' and by showing the body envelope shape ({'InvoicePayment': {…}}) that the generic object schema does not specify. The only gap is that the body's required inner fields are left to the Fortnox API reference.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/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 ('prepares bookkeeping a customer payment that is already registered in Fortnox') and immediately bounds it by negation ('It does not create or register a payment'), which separates it from the propose_create_invoice_payment style siblings. An agent can tell what this does and what it is not without opening the schema.

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?

It gives a clear triggering condition ('Use when the person asks to book a registered payment') and adds a useful exclusion-adjacent note that bank-file-imported payments are booked in Fortnox itself. It stops short of naming the sibling to use when the payment is not yet registered, so an agent must infer that path.

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