Skip to main content
Glama

Delete item

delete_item
Destructive

Requires items.delete. Delete one item in this organization. Pass item_id and optional sheet_number. For many rows use bulk_delete_items. The first call returns confirm_token and already lists live draft stock movements that block this item. Refused with 409 when the item is on a live draft stock movement; cancel or delete those drafts first. Posted stock movement lines keep history and do not block. Two-step confirm_token: the first call without confirm_token only returns confirmation_required, a summary, and confirm_token. That call does not write, delete, cancel, or send. The second call must repeat the same arguments plus that confirm_token; that is the write. A confirm boolean is ignored. The token expires in 5 minutes and works once.

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": {
      "item_id": "<item_id>"
    },
    "name": "delete_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
item_idYes
sheet_numberNo
confirm_tokenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare destructive/non-idempotent; the description goes far beyond by disclosing the 409 refusal condition, the fact that the first call writes nothing, that a 'confirm' boolean is silently ignored, and that the token expires in 5 minutes and is single-use. These are exactly the failure modes an agent would otherwise hit.

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 permission requirement and core action, then escalates to the risk details in a sensible order. Minor redundancy: the first-call return contents are described twice ('returns confirm_token and...' then 'only returns confirmation_required, a summary, and confirm_token'), costing a sentence.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, non-idempotent, token-gated mutation with no output schema and no parameter documentation, the description supplies auth requirements, blocking rules, the two-phase protocol, error behavior, and token lifetime. Nothing an agent needs in order to call this safely is missing.

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%, so the description carries the burden. It fully specifies confirm_token (how to obtain it, that it must be echoed with identical arguments, expiry, single-use) and mentions item_id and the optional sheet_number — but never explains what sheet_number semantically controls, leaving one of three parameters opaque.

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 with scope ('Delete one item in this organization') and immediately names the sibling it is not ('For many rows use bulk_delete_items'). An agent can distinguish this from bulk_delete_items and delete_stock_movement without opening a schema.

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

Usage Guidelines5/5

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

Explicit routing to an alternative ('For many rows use bulk_delete_items'), a prerequisite ('Requires items.delete'), and a hard precondition that must be resolved elsewhere ('cancel or delete those drafts first'). It even explains which related records do NOT block ('Posted stock movement lines'), which is exactly the exclusion guidance an agent needs.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources