Skip to main content
Glama

More AI - ChatGPT & Claude MCP (Fortnox)

Prepare booking a supplier invoice

propose_bookkeep_supplier_invoice
Idempotent

Prepares bookkeeping a registered supplier invoice, by GivenNumber (Fortnox's own serial number for it), which creates its voucher in Fortnox. Use when the person asks to book a supplier invoice. 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: {"SupplierInvoice": {…}}. Fortnox API PUT /3/supplierinvoices/{GivenNumber}/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": {
      "GivenNumber": "<GivenNumber>"
    },
    "name": "propose_bookkeep_supplier_invoice"
  }
}

Input Schema

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

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?

Adds substantive behavior beyond the annotations: the tool only prepares the change, sends nothing to Fortnox, and the change is transmitted only after the person approves, as described in the answer. This staging/approval contract is exactly the kind of context annotations (readOnlyHint=false, idempotentHint=true) cannot convey.

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, then trigger, then the approval-flow caveat, then payload shape, then API reference. The endpoint and doc link are compact and last, and no sentence is redundant.

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?

Output schema exists so return values need no explanation, and the description covers trigger, key parameter meaning, body shape and approval semantics. Minor gap: it doesn't say what happens if the invoice is not in a bookable state or what precondition errors to expect.

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 baseline is 3, but the description goes further by explaining GivenNumber as 'Fortnox's own serial number for it' and showing the body shape as {"SupplierInvoice": {…}}. That clarifies nested payload structure that the schema's generic 'as Fortnox expects it: an object' leaves implicit.

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+resource ('Prepares bookkeeping a registered supplier invoice') keyed by GivenNumber, and names the resulting effect (creates its voucher). The 'supplier' qualifier distinguishes it from the customer-invoice sibling propose_bookkeep_invoice, though the phrasing is grammatically awkward enough to slow parsing.

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?

Gives an explicit trigger: 'Use when the person asks to book a supplier invoice,' and explains the approval gate that follows. It does not name the alternatives (e.g. approve-for-bookkeeping vs bookkeep) so boundary cases still require inference.

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