Skip to main content
Glama

More AI - ChatGPT & Claude MCP (Fortnox)

Förbered en ändring — ingenting skickas än

propose_fortnox_write
Read-onlyIdempotent

Prepares several Fortnox changes together (batch, up to 25), such as the batch returned by a prepare_… report or a year-end package, and returns the exact request for each change without sending anything. Use when the person asks for several changes at once or wants to go ahead with a prepared batch. It accepts only the write operations this connection offers as propose_… tools; other operations are refused. The person approves the table, and the answer says how the approved changes are sent. Fortnox API (https://api.fortnox.se/apidocs).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "company_key": "<company_key>"
    },
    "name": "propose_fortnox_write"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNo
batchNo
itemsNo
confirmNo
company_keyYes
path_paramsNo
operation_idNo
query_paramsNo
idempotency_keyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / batch / anyOf
      Previous value: -[
      -  {
      -    "items": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "body": {
      -          "anyOf": [
      -            {
      -              "additionalProperties": {},
      -              "propertyNames": {
      -                "type": "string"
      -              },
      -              "type": "object"
      -            },
      -            {
      -              "items": {},
      -              "type": "array"
      -            },
      -            {
      -              "maxLength": 200000,
      -              "type": "string"
      -            }
      -          ]
      -        },
      -        "confirm": {
      -          "type": "boolean"
      -        },
      -        "idempotency_key": {
      -          "pattern": "^[A-Za-z0-9._:-]{8,128}$",
      -          "type": "string"
      -        },
      -        "operation_id": {
      -          "maxLength": 150,
      -          "type": "string"
      -        },
      -        "path_params": {
      -          "additionalProperties": {
      -            "anyOf": [
      -              {
      -                "maxLength": 200,
      -                "type": "string"
      -              },
      -              {
      -                "type": "number"
      -              }
      -            ]
      -          },
      -          "default": {},
      -          "propertyNames": {
      -            "type": "string"
      -          },
      -          "type": "object"
      -        },
      -        "query_params": {
      -          "additionalProperties": {
      -            "anyOf": [
      -              {
      -                "maxLength": 500,
      -                "type": "string"
      -              },
      -              {
      -                "type": "number"
      -              },
      -              {
      -                "type": "boolean"
      -              }
      -            ]
      -          },
      -          "default": {},
      -          "propertyNames": {
      -            "type": "string"
      -          },
      -          "type": "object"
      -        }
      -      },
      -      "required": [
      -        "operation_id",
      -        "idempotency_key"
      -      ],
      -      "type": "object"
      -    },
      -    "maxItems": 25,
      -    "minItems": 1,
      -    "type": "array"
      -  },
      -  {
      -    "items": {},
      -    "maxItems": 25,
      -    "type": "array"
      -  },
      -  {
      -    "maxLength": 200000,
      -    "type": "string"
      -  }
      -]New value: +[
      +  {
      +    "items": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "body": {
      +          "anyOf": [
      +            {
      +              "additionalProperties": {},
      +              "propertyNames": {
      +                "type": "string"
      +              },
      +              "type": "object"
      +            },
      +            {
      +              "items": {},
      +              "type": "array"
      +            },
      +            {
      +              "maxLength": 200000,
      +              "type": "string"
      +            }
      +          ]
      +        },
      +        "confirm": {
      +          "type": "boolean"
      +        },
      +        "idempotency_key": {
      +          "pattern": "^[A-Za-z0-9._:-]{8,128}$",
      +          "type": "string"
      +        },
      +        "operation_id": {
      +          "maxLength": 150,
      +          "type": "string"
      +        },
      +        "path_params": {
      +          "additionalProperties": {
      +            "anyOf": [
      +              {
      +                "maxLength": 200,
      +                "type": "string"
      +              },
      +              {
      +                "type": "number"
      +              }
      +            ]
      +          },
      +          "default": {},
      +          "propertyNames": {
      +            "type": "string"
      +          },
      +          "type": "object"
      +        },
      +        "query_params": {
      +          "additionalProperties": {
      +            "anyOf": [
      +              {
      +                "maxLength": 4000,
      +                "type": "string"
      +              },
      +              {
      +                "type": "number"
      +              },
      +              {
      +                "type": "boolean"
      +              },
      +              {
      +                "items": {
      +                  "anyOf": [
      +                    {
      +                      "maxLength": 200,
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "number"
      +                    }
      +                  ]
      +                },
      +                "maxItems": 200,
      +                "type": "array"
      +              }
      +            ]
      +          },
      +          "default": {},
      +          "propertyNames": {
      +            "type": "string"
      +          },
      +          "type": "object"
      +        }
      +      },
      +      "required": [
      +        "operation_id",
      +        "idempotency_key"
      +      ],
      +      "type": "object"
      +    },
      +    "maxItems": 25,
      +    "minItems": 1,
      +    "type": "array"
      +  },
      +  {
      +    "items": {},
      +    "maxItems": 25,
      +    "type": "array"
      +  },
      +  {
      +    "maxLength": 200000,
      +    "type": "string"
      +  }
      +]
    • changedInput schema / properties / query_params / additionalProperties / anyOf
      Previous value: -[
      -  {
      -    "maxLength": 500,
      -    "type": "string"
      -  },
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "boolean"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 4000,
      +    "type": "string"
      +  },
      +  {
      +    "type": "number"
      +  },
      +  {
      +    "type": "boolean"
      +  },
      +  {
      +    "items": {
      +      "anyOf": [
      +        {
      +          "maxLength": 200,
      +          "type": "string"
      +        },
      +        {
      +          "type": "number"
      +        }
      +      ]
      +    },
      +    "maxItems": 200,
      +    "type": "array"
      +  }
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / batch / anyOf
      Previous value: -[
      -  {
      -    "items": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "body": {
      -          "anyOf": [
      -            {
      -              "additionalProperties": {},
      -              "propertyNames": {
      -                "type": "string"
      -              },
      -              "type": "object"
      -            },
      -            {
      -              "items": {},
      -              "type": "array"
      -            },
      -            {
      -              "maxLength": 200000,
      -              "type": "string"
      -            }
      -          ]
      -        },
      -        "confirm": {
      -          "type": "boolean"
      -        },
      -        "idempotency_key": {
      -          "pattern": "^[A-Za-z0-9._:-]{8,128}$",
      -          "type": "string"
      -        },
      -        "operation_id": {
      -          "maxLength": 150,
      -          "type": "string"
      -        },
      -        "path_params": {
      -          "additionalProperties": {
      -            "anyOf": [
      -              {
      -                "maxLength": 200,
      -                "type": "string"
      -              },
      -              {
      -                "type": "number"
      -              }
      -            ]
      -          },
      -          "default": {},
      -          "propertyNames": {
      -            "type": "string"
      -          },
      -          "type": "object"
      -        },
      -        "query_params": {
      -          "additionalProperties": {
      -            "anyOf": [
      -              {
      -                "maxLength": 500,
      -                "type": "string"
      -              },
      -              {
      -                "type": "number"
      -              },
      -              {
      -                "type": "boolean"
      -              }
      -            ]
      -          },
      -          "default": {},
      -          "propertyNames": {
      -            "type": "string"
      -          },
      -          "type": "object"
      -        }
      -      },
      -      "required": [
      -        "operation_id",
      -        "idempotency_key"
      -      ],
      -      "type": "object"
      -    },
      -    "maxItems": 25,
      -    "minItems": 1,
      -    "type": "array"
      -  },
      -  {
      -    "maxLength": 200000,
      -    "type": "string"
      -  }
      -]New value: +[
      +  {
      +    "items": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "body": {
      +          "anyOf": [
      +            {
      +              "additionalProperties": {},
      +              "propertyNames": {
      +                "type": "string"
      +              },
      +              "type": "object"
      +            },
      +            {
      +              "items": {},
      +              "type": "array"
      +            },
      +            {
      +              "maxLength": 200000,
      +              "type": "string"
      +            }
      +          ]
      +        },
      +        "confirm": {
      +          "type": "boolean"
      +        },
      +        "idempotency_key": {
      +          "pattern": "^[A-Za-z0-9._:-]{8,128}$",
      +          "type": "string"
      +        },
      +        "operation_id": {
      +          "maxLength": 150,
      +          "type": "string"
      +        },
      +        "path_params": {
      +          "additionalProperties": {
      +            "anyOf": [
      +              {
      +                "maxLength": 200,
      +                "type": "string"
      +              },
      +              {
      +                "type": "number"
      +              }
      +            ]
      +          },
      +          "default": {},
      +          "propertyNames": {
      +            "type": "string"
      +          },
      +          "type": "object"
      +        },
      +        "query_params": {
      +          "additionalProperties": {
      +            "anyOf": [
      +              {
      +                "maxLength": 500,
      +                "type": "string"
      +              },
      +              {
      +                "type": "number"
      +              },
      +              {
      +                "type": "boolean"
      +              }
      +            ]
      +          },
      +          "default": {},
      +          "propertyNames": {
      +            "type": "string"
      +          },
      +          "type": "object"
      +        }
      +      },
      +      "required": [
      +        "operation_id",
      +        "idempotency_key"
      +      ],
      +      "type": "object"
      +    },
      +    "maxItems": 25,
      +    "minItems": 1,
      +    "type": "array"
      +  },
      +  {
      +    "items": {},
      +    "maxItems": 25,
      +    "type": "array"
      +  },
      +  {
      +    "maxLength": 200000,
      +    "type": "string"
      +  }
      +]
  3. Changed2 schema fields changed
    • changedInput schema / properties / batch / anyOf
      Previous value: -[
      -  {
      -    "items": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "body": {
      -          "anyOf": [
      -            {
      -              "additionalProperties": {},
      -              "propertyNames": {
      -                "type": "string"
      -              },
      -              "type": "object"
      -            },
      -            {
      -              "items": {},
      -              "type": "array"
      -            }
      -          ]
      -        },
      -        "confirm": {
      -          "type": "boolean"
      -        },
      -        "idempotency_key": {
      -          "pattern": "^[A-Za-z0-9._:-]{8,128}$",
      -          "type": "string"
      -        },
      -        "operation_id": {
      -          "maxLength": 150,
      -          "type": "string"
      -        },
      -        "path_params": {
      -          "additionalProperties": {
      -            "anyOf": [
      -              {
      -                "maxLength": 200,
      -                "type": "string"
      -              },
      -              {
      -                "type": "number"
      -              }
      -            ]
      -          },
      -          "default": {},
      -          "propertyNames": {
      -            "type": "string"
      -          },
      -          "type": "object"
      -        },
      -        "query_params": {
      -          "additionalProperties": {
      -            "anyOf": [
      -              {
      -                "maxLength": 500,
      -                "type": "string"
      -              },
      -              {
      -                "type": "number"
      -              },
      -              {
      -                "type": "boolean"
      -              }
      -            ]
      -          },
      -          "default": {},
      -          "propertyNames": {
      -            "type": "string"
      -          },
      -          "type": "object"
      -        }
      -      },
      -      "required": [
      -        "operation_id",
      -        "idempotency_key"
      -      ],
      -      "type": "object"
      -    },
      -    "maxItems": 25,
      -    "minItems": 1,
      -    "type": "array"
      -  },
      -  {
      -    "maxLength": 200000,
      -    "type": "string"
      -  }
      -]New value: +[
      +  {
      +    "items": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "body": {
      +          "anyOf": [
      +            {
      +              "additionalProperties": {},
      +              "propertyNames": {
      +                "type": "string"
      +              },
      +              "type": "object"
      +            },
      +            {
      +              "items": {},
      +              "type": "array"
      +            },
      +            {
      +              "maxLength": 200000,
      +              "type": "string"
      +            }
      +          ]
      +        },
      +        "confirm": {
      +          "type": "boolean"
      +        },
      +        "idempotency_key": {
      +          "pattern": "^[A-Za-z0-9._:-]{8,128}$",
      +          "type": "string"
      +        },
      +        "operation_id": {
      +          "maxLength": 150,
      +          "type": "string"
      +        },
      +        "path_params": {
      +          "additionalProperties": {
      +            "anyOf": [
      +              {
      +                "maxLength": 200,
      +                "type": "string"
      +              },
      +              {
      +                "type": "number"
      +              }
      +            ]
      +          },
      +          "default": {},
      +          "propertyNames": {
      +            "type": "string"
      +          },
      +          "type": "object"
      +        },
      +        "query_params": {
      +          "additionalProperties": {
      +            "anyOf": [
      +              {
      +                "maxLength": 500,
      +                "type": "string"
      +              },
      +              {
      +                "type": "number"
      +              },
      +              {
      +                "type": "boolean"
      +              }
      +            ]
      +          },
      +          "default": {},
      +          "propertyNames": {
      +            "type": "string"
      +          },
      +          "type": "object"
      +        }
      +      },
      +      "required": [
      +        "operation_id",
      +        "idempotency_key"
      +      ],
      +      "type": "object"
      +    },
      +    "maxItems": 25,
      +    "minItems": 1,
      +    "type": "array"
      +  },
      +  {
      +    "maxLength": 200000,
      +    "type": "string"
      +  }
      +]
    • 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"
      +  }
      +]
  4. Changed6 schema fields changed
    • addedInput schema / properties / batch / anyOf
      Added value: +[
      +  {
      +    "items": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "body": {
      +          "anyOf": [
      +            {
      +              "additionalProperties": {},
      +              "propertyNames": {
      +                "type": "string"
      +              },
      +              "type": "object"
      +            },
      +            {
      +              "items": {},
      +              "type": "array"
      +            }
      +          ]
      +        },
      +        "confirm": {
      +          "type": "boolean"
      +        },
      +        "idempotency_key": {
      +          "pattern": "^[A-Za-z0-9._:-]{8,128}$",
      +          "type": "string"
      +        },
      +        "operation_id": {
      +          "maxLength": 150,
      +          "type": "string"
      +        },
      +        "path_params": {
      +          "additionalProperties": {
      +            "anyOf": [
      +              {
      +                "maxLength": 200,
      +                "type": "string"
      +              },
      +              {
      +                "type": "number"
      +              }
      +            ]
      +          },
      +          "default": {},
      +          "propertyNames": {
      +            "type": "string"
      +          },
      +          "type": "object"
      +        },
      +        "query_params": {
      +          "additionalProperties": {
      +            "anyOf": [
      +              {
      +                "maxLength": 500,
      +                "type": "string"
      +              },
      +              {
      +                "type": "number"
      +              },
      +              {
      +                "type": "boolean"
      +              }
      +            ]
      +          },
      +          "default": {},
      +          "propertyNames": {
      +            "type": "string"
      +          },
      +          "type": "object"
      +        }
      +      },
      +      "required": [
      +        "operation_id",
      +        "idempotency_key"
      +      ],
      +      "type": "object"
      +    },
      +    "maxItems": 25,
      +    "minItems": 1,
      +    "type": "array"
      +  },
      +  {
      +    "maxLength": 200000,
      +    "type": "string"
      +  }
      +]
    • removedInput schema / properties / batch / items
      Removed value: -{
      -  "additionalProperties": false,
      -  "properties": {
      -    "body": {
      -      "anyOf": [
      -        {
      -          "additionalProperties": {},
      -          "propertyNames": {
      -            "type": "string"
      -          },
      -          "type": "object"
      -        },
      -        {
      -          "items": {},
      -          "type": "array"
      -        }
      -      ]
      -    },
      -    "confirm": {
      -      "type": "boolean"
      -    },
      -    "idempotency_key": {
      -      "pattern": "^[A-Za-z0-9._:-]{8,128}$",
      -      "type": "string"
      -    },
      -    "operation_id": {
      -      "maxLength": 150,
      -      "type": "string"
      -    },
      -    "path_params": {
      -      "additionalProperties": {
      -        "anyOf": [
      -          {
      -            "maxLength": 200,
      -            "type": "string"
      -          },
      -          {
      -            "type": "number"
      -          }
      -        ]
      -      },
      -      "default": {},
      -      "propertyNames": {
      -        "type": "string"
      -      },
      -      "type": "object"
      -    },
      -    "query_params": {
      -      "additionalProperties": {
      -        "anyOf": [
      -          {
      -            "maxLength": 500,
      -            "type": "string"
      -          },
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "boolean"
      -          }
      -        ]
      -      },
      -      "default": {},
      -      "propertyNames": {
      -        "type": "string"
      -      },
      -      "type": "object"
      -    }
      -  },
      -  "required": [
      -    "operation_id",
      -    "idempotency_key"
      -  ],
      -  "type": "object"
      -}
    • removedInput schema / properties / batch / maxItems
      Removed value: -25
    • removedInput schema / properties / batch / minItems
      Removed value: -1
    • removedInput schema / properties / batch / type
      Removed value: -"array"
    • addedInput schema / properties / items
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {},
      +      "maxItems": 25,
      +      "type": "array"
      +    },
      +    {
      +      "maxLength": 200000,
      +      "type": "string"
      +    }
      +  ]
      +}
  5. Changed2 schema fields changed
    • addedInput schema / properties / batch / items / properties / body / anyOf
      Added value: +[
      +  {
      +    "additionalProperties": {},
      +    "propertyNames": {
      +      "type": "string"
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "items": {},
      +    "type": "array"
      +  }
      +]
    • addedInput schema / properties / body / anyOf
      Added value: +[
      +  {
      +    "additionalProperties": {},
      +    "propertyNames": {
      +      "type": "string"
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "items": {},
      +    "type": "array"
      +  }
      +]
  6. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations declare readOnlyHint=true and destructiveHint=false; the description reconciles that with a write-flavored name by stressing nothing is sent and that the person approves the table first. It adds non-obvious behavior: refusal of unsupported operations and that the answer explains how approved changes are subsequently sent. It doesn't cover error behavior when a batch entry is rejected.

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 no-side-effects guarantee are front-loaded, and most sentences carry distinct information (batching, trigger, accepted-operation filter, approval flow). The trailing bare API link adds little, and the approval/send sentence is slightly roundabout.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given a 9-parameter nested schema and no output schema, the description covers the workflow (prepare, approve, then send) but not the shape of the returned request table or the roles of the individual parameters. An agent could pick the tool correctly yet still need the schema to construct a valid call.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 9 parameters, including nested batch entries, so the description must carry the load and largely doesn't. It explains the 25-item cap and that operation_id values must be propose_… operations, but says nothing about idempotency_key, confirm, items versus batch, path_params or query_params.

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 several Fortnox changes together"), gives the batch bound (up to 25), and makes the key distinction from execute-style siblings explicit: it returns the exact request "without sending anything." It doesn't name the sibling it contrasts with (execute_fortnox_write), so the differentiation is implied 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?

Gives a clear trigger ("when the person asks for several changes at once or wants to go ahead with a prepared batch") and a scoping rule (only operations exposed as propose_… tools are accepted; others are refused). It never states when to prefer a single propose_* tool over this batch variant, leaving that boundary to inference.

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