Skip to main content
Glama

create_article

Creates a Fortnox stock article, cleans the description, validates EAN, and sets sales price before enabling webshop display to prevent zero-price listings.

Instructions

Create a stock article. Applies the server's article defaults (FORTNOX_ARTICLE_DEFAULTS; Type STOCK, StockGoods). The description is cleaned of characters Fortnox would silently delete, and an EAN is checked (GS1 check digit, not already used). If sales_price is given it is set on the price list BEFORE the webshop flag, so a webshop never shows the product at 0. Articles can't be deleted once used on any document.

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": {
      "article_number": "<article_number>",
      "description": "<description>"
    },
    "name": "create_article"
  }
}

Input Schema

NameRequiredDescriptionDefault
eanNo
noteNo
unitNo
dry_runNo
descriptionYes
sales_priceNo
extra_fieldsNo
manufacturerNo
weight_gramsNo
article_numberYes
supplier_numberNo
webshop_articleNo
manufacturer_article_numberNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it discloses server-side defaults (FORTNOX_ARTICLE_DEFAULTS, Type STOCK, StockGoods), that the description string is sanitized of characters Fortnox would silently delete, that EAN is validated for GS1 check digit and uniqueness, and the ordering of price-list vs webshop flag writes. The irreversibility warning (articles can't be deleted once used on a document) is exactly the kind of destructive context an agent needs. Gaps remain on duplicate article_number handling and error behavior.

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?

Front-loaded with the action, then defaults, then validation, then the webshop ordering caveat, then the irreversibility warning. Dense and largely free of filler; the parenthetical FORTNOX_ARTICLE_DEFAULTS reference is compact rather than wasted.

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 a 13-parameter creation tool with no annotations and no output schema, the description covers defaults, validation and lifecycle constraints well but leaves dry_run undefined and never says what a successful call returns or what a dry_run produces. Adequate but not complete for the tool's complexity.

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% with 13 parameters, so the description must compensate. It adds real meaning only for ean (checksum + uniqueness), sales_price (price-list ordering), description (sanitization) and indirectly webshop_article; dry_run, extra_fields, article_number, supplier_number, unit, note, weight_grams, manufacturer and manufacturer_article_number are entirely unexplained. The unexplained dry_run flag is a notable omission for a create tool.

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?

Opens with a specific verb+resource ("Create a stock article") and qualifies the resource as a stock article with Type STOCK/StockGoods, which is more precise than the name alone. It does not explicitly distinguish itself from update_article or set_webshop_article, so sibling routing is left implicit.

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?

Usage is implied rather than stated: creation-only semantics are conveyed by "Applies the server's article defaults... If sales_price is given it is set on the price list BEFORE the webshop flag." The closing line "Articles can't be deleted once used on any document" is a useful caution, but no explicit when-to-use-vs-update_article guidance or prerequisites (e.g. auth, required number format) are given.

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