Skip to main content
Glama

More AI - ChatGPT & Claude MCP (Fortnox)

Bokför inkorgen

prepare_inbox_supplier_invoices
Read-onlyIdempotent

Reads the supplier invoices in the Fortnox inbox, matches them to suppliers, assigns accounts and returns one batch proposal for the person to review. Use when the person asks to book or register the supplier invoices in the inbox. Invoices with a different bank giro, possible duplicates, unknown suppliers or unread amounts are set aside with the reason. It registers nothing: the batch is sent only after the person approves it. Example question: "Bokför leverantörsfakturorna som ligger i inkorgen." Read-only; computed on the server from live Fortnox data over all pages (Fortnox API, 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": "prepare_inbox_supplier_invoices"
  }
}

Input Schema

NameRequiredDescriptionDefault
maxNohögst så många filer per gång, standard 10, högst 20 Number.
stegNoregistrera (standard), attestera eller bokfor — hur långt fakturorna ska gå One of: registrera, attestera, bokfor.
filerNofilernas id, kommaseparerade — standard alla i mappen Leverantörsfakturor Comma-separated.
konteringNohistorik (standard: som leverantören konterats tidigare), leverantor (leverantörens förvalda konto i Fortnox) eller ett kontonummer för alla

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / filer / description
      Previous value: -"filernas id, kommaseparerade — standard alla i mappen Leverantörsfakturor"New value: +"filernas id, kommaseparerade — standard alla i mappen Leverantörsfakturor Comma-separated."
    • changedInput schema / properties / max / description
      Previous value: -"högst så många filer per gång, standard 10, högst 20"New value: +"högst så många filer per gång, standard 10, högst 20 Number."
    • changedInput schema / properties / max / type
      Previous value: -[
      -  "string",
      -  "number"
      -]New value: +[
      +  "number",
      +  "string"
      +]
    • changedInput schema / properties / steg / description
      Previous value: -"registrera (standard), attestera eller bokfor — hur långt fakturorna ska gå"New value: +"registrera (standard), attestera eller bokfor — hur långt fakturorna ska gå One of: registrera, attestera, bokfor."
  2. Added

TDQS

A4/5.0
Behavior4/5

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

Beyond readOnlyHint=true and destructiveHint=false, it discloses the exclusion policy (different bank giro, possible duplicates, unknown suppliers, unread amounts are set aside with the reason), the two-step human-approval flow, and that the computation runs server-side over all pages. The added context is meaningful, though the note that it 'registers nothing' largely restates the annotation rather than extending it.

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 core action is front-loaded in the first sentence, followed by trigger, exception handling, and safety note in a logical order, with zero filler sentences. The trailing API-doc URL and example question add length without much decision value.

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?

An output schema exists, so return format need not be explained, and the description still covers trigger, exclusions, approval flow, and data source. For a read-only, zero-required-parameter preparation tool, an agent has everything needed to select and invoke it correctly.

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?

Schema description coverage is 100%, so the four parameters (max, steg, filer, kontering) are already documented in the schema, and the description adds no parameter-level guidance. It is not clear from the description alone how 'steg' (registrera/attestera/bokfor) interacts with the stated no-write guarantee, which is a semantics gap the description could have closed.

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 description names a concrete verb chain and resource — read supplier invoices from the Fortnox inbox, match to suppliers, assign accounts, return one batch proposal — which is clearly distinct from list/find siblings. It never explicitly contrasts itself with close siblings such as prepare_inbox_receipts or propose_bookkeep_supplier_invoice, so the differentiation is implied by the resource rather than stated.

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 an explicit trigger: 'Use when the person asks to book or register the supplier invoices in the inbox,' reinforced by a concrete example utterance. There is no when-not-to-use clause or named alternative for adjacent needs (e.g. looking up a single invoice), so an agent must infer the boundaries.

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