Skip to main content
Glama
erp-mafia

Fortnox MCP Server

by erp-mafia

Update Fortnox Invoice

fortnox_update_invoice
Idempotent

Update existing unbooked Fortnox invoices by document number. Modify rows, dates, fees, and references to correct or adjust invoice details.

Instructions

Update an existing invoice in Fortnox. Only unbooked invoices can be updated.

Args:

  • document_number (string): Invoice document number to update (required)

  • rows (array): Updated line items (replaces all existing rows)

  • Other fields: Same as create_invoice

Returns: The updated invoice details.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rowsNoUpdated invoice rows (replaces all existing rows)
freightNoFreight/shipping cost
remarksNoRemarks printed on the invoice
commentsNoComments on the invoice
due_dateNoDue date (YYYY-MM-DD)
invoice_dateNoInvoice date (YYYY-MM-DD)
our_referenceNoOur reference person
your_referenceNoCustomer's reference person
document_numberYesInvoice document number to update (required)
response_formatNoOutput format: 'markdown' or 'json'markdown
administration_feeNoAdministration fee
Behavior4/5

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

Annotations already provide readOnlyHint=false, idempotentHint=true, and destructiveHint=false. The description adds meaningful behavioral context beyond these: the unbooked precondition and that the rows parameter replaces all existing rows. This is important side-effect information not captured by the annotations.

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?

The description is compact and well-structured: a one-sentence purpose, a succinct Args list, and a Returns line. Every sentence earns its place, and the 'Other fields: Same as create_invoice' shorthand avoids lengthy repetition.

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?

Given the 11-parameter schema, 100% schema coverage, and presence of annotations, the description covers the essential context: it mentions the unbooked restriction, the row-replacement behavior, and the return value. It relies on the sibling create_invoice for field semantics, which is acceptable but not fully self-contained.

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

Parameters3/5

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

The schema description coverage is 100%, so all 11 parameters are already documented with meaning and constraints. The description restates document_number as required and says rows replaces all existing rows, but both are already present in the schema. 'Other fields: Same as create_invoice' is a minor cross-reference but does not add per-parameter semantics.

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 clearly states the action ('Update an existing invoice in Fortnox') and identifies the specific resource (existing invoice). It also includes a key scope constraint ('Only unbooked invoices can be updated') that distinguishes it from create_invoice and other invoice operations.

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?

The description provides clear context: this tool is for updating existing unbooked invoices, and explicitly warns that booked invoices cannot be updated. However, it does not explicitly name alternatives (e.g., 'use create_invoice for new invoices'), so the usage guidance is clear but not fully explicit about when not to use it.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/erp-mafia/fortnox-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server