Skip to main content
Glama

create_order

Create Fortnox orders from customer number and article rows; choose delivery state to record, reserve, or take stock.

Instructions

Create an order. rows: [{article_number, quantity, price, description?}]. delivery_state: registration (no stock effect), reservation (reserves stock), delivery (takes stock out).

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": {
      "customer_number": "<customer_number>",
      "rows": "<rows>"
    },
    "name": "create_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
rowsYes
dry_runNo
freightNo
remarksNo
currencyNo
languageNo
extra_fieldsNo
our_referenceNo
delivery_stateNo
your_referenceNo
customer_numberYes
your_order_numberNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

C2.9/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose the important side-effect distinction that registration has no stock effect while reservation and delivery do affect stock, which is genuinely valuable behavioral context. However, it says nothing about permissions, idempotency, failure behavior, or what dry_run actually does.

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?

Three compact sentences with the action front-loaded and the highest-value detail (stock effects) called out explicitly. The telegraphic style drops some readability (no explanation of how rows and customer_number are required) but wastes no space.

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 12-parameter mutation tool with no annotations and no output schema, the description covers only two parameters and omits return-value expectations entirely. An agent would still have to guess at the meaning and effects of most of the payload.

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 12 parameters, so the description must compensate. It usefully documents the rows item shape and the three delivery_state modes, but leaves dry_run, freight, currency, language, extra_fields, our_reference, your_reference, and your_order_number entirely unexplained beyond their names.

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 opens with a specific verb and resource ('Create an order'), which is unambiguous. It does not differentiate against close siblings such as create_purchase_order or offer_to_order, but the core purpose is immediately clear.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this tool versus siblings like create_purchase_order or offer_to_order, and no mention of prerequisites or when not to use it. The delivery_state explanation is a parameter choice aid rather than usage guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.