Skip to main content
Glama

update_article

Modify Fortnox article fields with EAN validation and description cleanup, without changing stock quantities; use dedicated tools for price and webshop flags.

Instructions

Change article fields. Description is cleaned of characters Fortnox would silently delete; EAN is checked (valid + unique). Never changes stock quantities (use goods receipt / stock correction). Price: use set_price. Webshop flag: use set_webshop_article.

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>"
    },
    "name": "update_article"
  }
}

Input Schema

NameRequiredDescriptionDefault
eanNo
noteNo
activeNo
dry_runNo
clear_eanNo
descriptionNo
stock_goodsNo
extra_fieldsNo
manufacturerNo
weight_gramsNo
stock_warningNo
article_numberYes
purchase_priceNo
supplier_numberNo
manufacturer_article_numberNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.4/5.0
Behavior3/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 volunteer useful behavior: description strings are sanitized of characters Fortnox would silently delete, EAN is validated for validity and uniqueness before write, and stock quantities are never touched. It omits critical mutation semantics — whether omitted/null fields are left unchanged or cleared, whether the write is reversible, and what the dry_run parameter 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.

Conciseness5/5

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

Three tight sentences, front-loaded with the purpose, then behavioral caveats, then routing to alternatives. No filler, and the highest-value exclusions appear before the agent would need to open the schema.

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 15-parameter mutation with no annotations and no output schema, the definition covers only a fraction of what an agent needs. The partial-update contract (do nulls mean 'leave alone'?) and the purpose of dry_run are unstated, which is a significant gap for a destructive write tool.

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 15 parameters, so the description must compensate and largely does not. It adds meaning only for ean (validated, unique), description (sanitized), and purchase_price (deferred to set_price); clear_ean, dry_run, extra_fields, note, active, stock_goods, stock_warning, weight_grams, manufacturer, supplier_number and manufacturer_article_number are left entirely undefined.

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?

"Change article fields" gives a clear mutation verb and resource, and the following sentences name the exact siblings this tool defers to (set_price, set_webshop_article, goods receipt / stock correction). It never enumerates which fields are changeable, so with 15 parameters the scope stays somewhat abstract, but an agent can distinguish it from the named alternatives.

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?

Three explicit routing statements: do not use for stock quantities (use goods receipt / stock correction), price goes to set_price, webshop flag goes to set_webshop_article. That is real when-not/alternative guidance. It is silent on create vs. update and on whether active=false should route to deactivate_article, so it is clear but not exhaustive.

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