Skip to main content
Glama

create_offer

Creates a Fortnox customer offer (quote) from a customer number and item rows with quantities, unit prices, discounts, freight, currency, and expiry details, using supplied data.

Instructions

Create an offer (quote). rows: [{article_number, quantity, price (per unit, ex VAT, in the offer currency), description?, discount?}] — use the final prices you were given, never a formula. Defaults: valid 1 month, Swedish for Swedish customers else English, the customer's price list (else the server's), customer's currency. Freight goes in freight; other Fortnox header fields (e.g. OfferDate) in extra_fields.

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_offer"
  }
}

Input Schema

NameRequiredDescriptionDefault
rowsYes
dry_runNo
freightNo
remarksNo
currencyNo
languageNo
expire_dateNo
extra_fieldsNo
our_referenceNo
your_referenceNo
customer_numberYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the burden but does disclose genuinely useful behavior: the 1-month validity default, the language-selection rule, and the price-list/currency fallback chain. It omits important behavior for a write operation, notably what dry_run does, whether the created offer is a draft or sent, whether the offer is persisted in Fortnox, and any permission requirements.

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?

Dense and telegraphic, but front-loaded: the action and the required row shape come first, then defaults, then the escape hatches (freight, extra_fields). Every clause conveys a distinct rule; nothing is padding.

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?

For an 11-parameter mutation tool with no annotations and no output schema, the description covers the complex parts (rows, defaults) but leaves a fourth of the surface undocumented, including dry_run, which materially changes the tool's effect. An agent still cannot predict the response or the safety profile from this definition alone.

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 0% and the rows array is an untyped object with additionalProperties=true, so the description's inline row spec (article_number, quantity, per-unit ex-VAT price in offer currency, optional description and discount) is essential and well explained. It also maps freight and extra_fields, and explains expire_date, currency, and language defaults, but leaves dry_run, remarks, our_reference, and your_reference undefined.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource and clarifies the domain term immediately: 'Create an offer (quote)'. The name plus this gloss leaves no ambiguity versus get_offer, update_offer, cancel_offer, or offer_to_order, since only this tool performs creation.

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

Usage Guidelines3/5

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

Gives a strong invocation rule ('use the final prices you were given, never a formula') that prevents a common error, and documents which values are defaulted. However, it never states when to choose this tool versus alternatives such as update_offer for an existing offer, and gives no prerequisites beyond the implied existing customer_number.

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