Skip to main content
Glama

More AI - ChatGPT & Claude MCP (Fortnox)

Prepare attaching a file to a supplier invoice

propose_create_supplier_invoice_file_connection
Idempotent

Prepares attaching a file to a supplier invoice. Use when the person asks to attach a scanned invoice or document to a supplier invoice. Only files in the inbox folder for supplier invoices (inbox_s) can be attached to 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: {"SupplierInvoiceFileConnection": {…}}. Fortnox API POST /3/supplierinvoicefileconnections (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_supplier_invoice_file_connection"
  }
}

Input Schema

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

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/5.0
Behavior4/5

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

Adds real behavior beyond the annotations: the change is only staged and nothing reaches Fortnox until the person approves it, with the outcome described in the answer. That approval-gating is the key trait an agent needs and it is not derivable from the hints. The eligible-source folder restriction is also disclosed; error handling and duplicate-attachment behavior are not.

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?

Front-loads the purpose, then the trigger, then the folder constraint, then the approval semantics, then the API reference. Every sentence carries information; the trailing endpoint URL and docs link are slightly ornamental but appropriate for developers.

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 an output schema present, the description correctly declines to enumerate return values and instead points at "the answer." Combined with annotations covering safety and idempotency, the agent has enough to call this correctly; only the inner body structure and failure modes are left to the API docs.

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% and there is only one parameter, so the baseline is already high. The description still adds the envelope key name ("SupplierInvoiceFileConnection") that the schema only calls "an object," which is genuinely useful for constructing the call, though the inner fields remain unexplained.

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 and resource ("Prepares attaching a file to a supplier invoice") and scopes it precisely: it stages the change rather than performing it. That staging language distinguishes it in spirit from send-style siblings like upload_to_fortnox, but no sibling is named explicitly, so an agent must infer the contrast.

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 clear trigger ("Use when the person asks to attach a scanned invoice or document to a supplier invoice") plus a hard precondition that only files in the inbox_s folder are eligible. It lacks an explicit when-not clause or a named alternative for other cases, which keeps it short of a 5.

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