Skip to main content
Glama

More AI - ChatGPT & Claude MCP (Fortnox)

Prepare an invoice update

propose_update_invoice
Idempotent

Prepares a change to an existing customer invoice, by document number. Use when the person asks to change an invoice's rows, dates or other details. 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: {"Invoice": {…}}. Fortnox API PUT /3/invoices/{DocumentNumber} (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": {
      "DocumentNumber": "<DocumentNumber>"
    },
    "name": "propose_update_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoThe request body, as Fortnox expects it: an object
DocumentNumberYesidentifies 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.4/5.0
Behavior4/5

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

Goes well beyond the annotations: it discloses that nothing is sent to Fortnox, that the tool only stages a change, and that the actual send happens after the person approves. That two-step approval model is the key behavioral fact and the annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=true) do not convey it. It stops short of saying what happens on repeated or conflicting proposals.

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?

Purpose and usage lead, then the no-side-effects caveat, then body shape and API reference. Every sentence carries information; the endpoint line is the only low-value item and it is short and clearly reference-only.

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?

For a staged-mutation tool with an output schema, this covers what the agent needs: trigger, keying by document number, body envelope, and the approval gate. The one soft spot is the phrase 'as the answer describes', which defers to the return value rather than summarizing it, but an output schema exists so that is acceptable.

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 already 100%, so the baseline is 3; the description adds real meaning by stating the document-number lookup key and sketching the body shape as {"Invoice": {…}}, which the schema leaves as a generic anyOf object/array/string. That narrows an otherwise ambiguous body parameter.

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?

States a specific verb and resource with scope: 'Prepares a change to an existing customer invoice, by document number.' The 'prepares' framing plus 'existing' cleanly separates it from the propose_create_invoice siblings and get_invoice, so an agent can pick it 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?

Gives a concrete trigger: 'Use when the person asks to change an invoice's rows, dates or other details.' It also states the precondition for the next step (approval before anything is sent). It does not name a specific alternative for creating versus updating, but the guidance is clear enough to select correctly.

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