Skip to main content
Glama

More AI - ChatGPT & Claude MCP (Fortnox)

Prepare a customer payment

propose_create_invoice_payment
Idempotent

Prepares registering a payment received on a customer invoice. Use when the person says that a customer has paid an invoice and the payment should be registered. It records a payment that has already been made; it does not move any money. 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: {"InvoicePayment": {…}}; required: InvoiceNumber. Fortnox API POST /3/invoicepayments (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_invoice_payment"
  }
}

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?

Beyond the annotations, the description discloses the crucial propose-then-approve behavior: nothing is sent to Fortnox until the person approves, and no funds move. This is exactly the context annotations cannot convey and it is consistent with destructiveHint=false and idempotentHint=true. It omits what happens on rejection or whether a prepared proposal can be revised.

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 trigger condition is front-loaded and the sentence order (what it does → when to use → what it does not do → what happens next) is logical and largely waste-free. The phrase 'as the answer describes' is vague filler that does not earn its place.

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 available, the description need not cover return values, and it covers purpose, trigger, side-effect scope, approval flow, and body shape. For a single-parameter proposal tool this is near-complete; the only gap is the absence of explicit routing to sibling tools for related cases.

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 already 100%, so the baseline is 3, but the description adds genuine value by naming the top-level wrapper ({"InvoicePayment": {…}}) and identifying InvoiceNumber as required inside the body — something the flat schema does not express. Note this 'required' claim sits in tension with the schema declaring no required parameters, which costs it the top score.

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 states a specific verb and resource — preparing/registering a payment received on a *customer* invoice — which implicitly separates it from the supplier-invoice-payment siblings. It is clear what is created and at what stage, but it never names a sibling tool outright to sharpen 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?

'Use when the person says that a customer has paid an invoice and the payment should be registered' gives a concrete trigger condition. It also clarifies the payment has already occurred and that no money is moved, which rules out using it to initiate a transfer. It stops short of excluding specific alternatives such as the bookkeeping counterparts among the siblings.

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