Skip to main content
Glama

More AI - ChatGPT & Claude MCP (Fortnox)

Förbered en ändring — ingenting skickas än

propose_fortnox_write
Read-onlyIdempotent

Prepare several changes at once (batch), or a change prepared by a prepare_… report, and return the exact Fortnox API request without sending anything (https://api.fortnox.se/apidocs). It accepts only the write operations this connection offers as named tools; any other operation is refused.

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?

Beyond the read-only and non-destructive annotations, it discloses that nothing is transmitted, the exact API request is returned, and unsupported operations are refused. It still leaves validation behavior and the effects of confirmation and idempotency settings unexplained.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two compact sentences front-load the non-sending behavior and output, then state the key operation restriction. The documentation link is relevant and there is no filler.

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

Completeness2/5

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

For a nine-parameter, nested, polymorphic tool with no output schema, the high-level explanation is insufficient to construct a reliable call. Input-mode selection, prepared-report reference formatting, and most parameter semantics remain undocumented despite the useful safety and refusal details.

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?

With 0% schema description coverage, the description only clarifies batching and the allowable operation set. It provides no guidance on company_key, choosing among body, batch, and items, path or query parameters, confirm, or idempotency_key.

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 clearly states that the tool prepares one or more Fortnox write changes and returns the exact API request without sending it. Its dry-run purpose is clear, but it does not explicitly differentiate itself from execute_fortnox_write or the many single-operation propose_* siblings.

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?

The batch and prepare_… report cases provide concrete when-to-use context, while the refusal rule excludes unsupported operations. It does not explain when to prefer a specialized propose_* tool or identify execute_fortnox_write as the alternative for actually sending a request.

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