Skip to main content
Glama

set_article_supplier

Add, update, or remove a supplier entry on an article, including part number, purchase price, currency, lead time, and MOQ, while protecting existing supplier data.

Instructions

Add/update/remove one supplier entry on an article ('Leverantörsinformation': supplier part number, purchase price in the supplier's currency, lead time, MOQ). Reads the full list first and writes it back with only this supplier changed. Fortnox answers a random 404 now and then; if the list can't be read at all, the write is refused unless article_has_no_supplier_entries=true (otherwise other suppliers would be wiped).

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

Input Schema

NameRequiredDescriptionDefault
priceNo
removeNo
dry_runNo
currencyNo
article_numberYes
supplier_numberYes
minimum_quantityNo
delivery_time_daysNo
supplier_article_nameNo
supplier_article_numberNo
article_has_no_supplier_entriesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the whole burden and does real work: it discloses the read-modify-write mechanism, the fact that only this supplier is changed, Fortnox's intermittent random 404s, and a write-refusal guard that prevents wiping other suppliers. That is exactly the kind of hidden behavior an agent needs. Gaps remain: the dry_run flag and the remove flag's effect (deletion vs. blanking) are never explained, and no permission or response-shape info is given.

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 sentences, front-loaded with the operation and scope, followed by the write mechanism and then the failure-mode caveat in priority order. Parenthetical field enumeration is compact and no sentence is filler.

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 risky behavior well but leaves dry_run and remove undefined and says nothing about what a successful call returns. An agent could invoke it safely but would have to guess at two flags that materially change the outcome.

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 description coverage is 0%, so the description must explain all 11 parameters, and it does so only partly — price, currency, lead time, MOQ, and supplier part number are glossed, while dry_run, remove, supplier_article_name, and minimum_quantity's units are left unexplained. Since the zero-coverage schema leaves several parameters ambiguous, the partial compensation lands between the baseline and full credit.

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 names specific verbs and the exact resource: 'Add/update/remove one supplier entry on an article,' and it enumerates the fields touched (supplier part number, purchase price, lead time, MOQ). Anyone reading it knows precisely what is mutated and at what granularity. It doesn't explicitly contrast itself with siblings like create_supplier or update_article, so it stops short of a 5.

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 by the scope statement rather than spelled out: nothing says when to prefer this over update_article or create_supplier. It does supply a concrete conditional rule for a dangerous case (when the list can't be read, the write is refused unless article_has_no_supplier_entries=true), which is genuinely useful guidance. That is a safety condition, not an alternatives map, so it lands at 3.

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