Skip to main content
Glama

deactivate_article

Deactivate an article that can't be deleted by clearing EAN, turning off webshop, and prefixing its description with 'UTGÅTT'.

Instructions

Retire an article (articles that were ever used can't be deleted): webshop off, inactive, EAN cleared so it can move to a new article, description prefixed 'UTGÅTT' (plus 'ersatt av X' with replaced_by). Move any stock first (manual outbound/inbound).

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": "deactivate_article"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNo
clear_eanNo
replaced_byNo
article_numberYes

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 present, the description carries the full disclosure burden and does well: it itemizes every side effect (webshop toggle-off, inactive status, EAN clearing, 'UTGÅTT' prefix, 'ersatt av X' when replaced_by is supplied) and flags the precondition about clearing stock. It is silent on reversibility, required permissions, and what happens to articles still carrying stock if the precondition is ignored.

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?

The core action leads, followed by consequences and then the prerequisite, so an agent gets the essential idea in the first clause. The nested parentheses pack a lot of information efficiently but make the sentence dense and slightly harder to parse on first read; no sentence is 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 four-parameter mutation with no annotations and no output schema, the description covers effects and ordering well but leaves gaps: dry_run is undocumented, the response/confirmation behavior is unknown, and reversibility is unstated. An agent could call it correctly but would not know it can preview with dry_run.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/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 compensate. It explains clear_ean (EAN cleared to free it for a new article) and replaced_by (drives the 'ersatt av X' prefix) in effect terms, and article_number is at least implied by the resource. However, the dry_run flag — the most safety-relevant parameter on a mutation tool — is never mentioned, and article_number is not stated as the required identifier.

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?

States a specific verb and resource ('Retire an article') and immediately clarifies that this is the substitute for deletion because used articles cannot be deleted, then enumerates the concrete end state (webshop off, inactive, EAN cleared, description prefixed). It is clearly a soft-delete/retirement operation rather than a plain field edit, which separates it from a generic update tool, though no sibling is named.

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?

Gives a real decision rule ('articles that were ever used can't be deleted' → retire instead) and a prerequisite ordering constraint: move stock first via manual outbound/inbound. It does not name an explicit alternative tool for the non-retirement case, but the context needed to choose this tool is clear.

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