Skip to main content
Glama

More AI - ChatGPT & Claude MCP (Fortnox)

Prepare a supplier invoice

propose_create_supplier_invoice
Idempotent

Prepares registering a new supplier invoice. Use when the person asks to register an invoice received from a supplier. Rows carry the net amount in Total, not Debit/Credit (Fortnox saves those as 0): send the invoice Total and VAT and only the cost rows; Fortnox adds the VAT and payable rows itself on the company's own accounts. 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: {"SupplierInvoice": {…}}; required: SupplierNumber. Fortnox API POST /3/supplierinvoices (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"
  }
}

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.2/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing that nothing is sent to Fortnox until the person approves, and by explaining Fortnox's accounting behavior: saved Debit/Credit values are 0, the caller must send invoice Total and VAT plus cost rows only, and Fortnox generates the VAT and payable rows on the company's own accounts. That is exactly the kind of non-obvious behavior an agent could not derive from readOnlyHint/idempotentHint.

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-loaded with purpose and usage, then the accounting caveats, then the body shape and API reference. Dense but each sentence carries information; the API URL and version are marginally useful padding.

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?

An output schema exists, so return values need not be described, and the annotations cover the safety profile. The description supplies the missing workflow and body-format context. It could still say more about what happens on rejection or duplicate detection, given the sibling find_duplicate_supplier_invoices.

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 3. The description adds real meaning beyond the schema by fixing the envelope shape as {"SupplierInvoice": {…}}, naming SupplierNumber as required inside the body, and explaining how Total relates to Debit/Credit — details the schema does not supply.

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 registering a new supplier invoice') and clarifies the two-phase propose-then-approve nature. It does not explicitly differentiate itself from closely named siblings such as propose_bookkeep_supplier_invoice or propose_create_supplier_invoice_payment, so an agent must infer the boundary.

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 register an invoice received from a supplier.' It also explains the proposal lifecycle, which frames when the call is appropriate. It stops short of stating when NOT to use it or naming the sibling that handles bookkeeping-only or payment flows.

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