Skip to main content
Glama

More AI - ChatGPT & Claude MCP (Fortnox)

Prepare attaching a file to a voucher

propose_create_voucher_file_connection
Idempotent

Prepares attaching a file in Fortnox to a voucher, given the file id, voucher series and voucher number. Use when the person asks to attach a receipt or document to a voucher. 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: {"VoucherFileConnection": {…}}; required: FileId, VoucherNumber, VoucherSeries. Fortnox API POST /3/voucherfileconnections (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": "propose_create_voucher_file_connection"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoThe request body, as Fortnox expects it: an object
financialyearNoFortnox financial-year id required when connecting a file to a voucher.

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

A3.9/5.0
Behavior4/5

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

The description adds real value beyond annotations by disclosing the two-phase propose/approve flow: nothing is sent to Fortnox until the person approves, which no annotation field conveys. It also names the underlying endpoint POST /3/voucherfileconnections. What it omits is failure behavior or what the returned proposal looks like, though the output schema covers the latter.

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?

Purpose and the key 'nothing is sent yet' caveat are front-loaded, and the trailing body/required/endpoint metadata is compact. The phrase 'as the answer describes' is vague filler and the final sentence is dense, but there is no real waste.

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?

With annotations covering safety and idempotency and an output schema covering return values, the description fills the remaining gaps: what the tool does, when to use it, and the deferred-approval semantics. The only meaningful hole is the unexplained financialyear requirement, which the description should have addressed for a two-parameter tool.

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 coverage is 100% and the output schema is present, so baseline is 3. The description does restate the body shape and required fields (FileId, VoucherNumber, VoucherSeries), but it does not mention the financialyear parameter that the schema flags as required when connecting a file to a voucher, leaving a small inconsistency an agent could trip over.

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 first sentence gives a specific verb, resource, and scope: 'Prepares attaching a file in Fortnox to a voucher, given the file id, voucher series and voucher number.' That is enough to separate it from propose_create_voucher or upload_to_fortnox, but it never explicitly distinguishes it from the very similarly named sibling propose_create_supplier_invoice_file_connection, so the agent must infer the voucher-vs-supplier-invoice split from names.

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?

'Use when the person asks to attach a receipt or document to a voucher' gives a concrete triggering condition rather than leaving usage implicit. It stops short of stating when NOT to use it — notably the supplier-invoice file-connection variant — so the routing guidance is clear but not exhaustive.

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