Skip to main content
Glama

update_wholesale_cart

DestructiveIdempotent

Assign a basket to a project or change its status/note: project_ref, status (neu, zugeordnet, bestellt, erledigt, verworfen), note. Optional positions replaces the item list (e.g. after correcting quantities) and recalculates the total.

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": {
      "cart_id": "<cart_id>"
    },
    "name": "update_wholesale_cart"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNoNotiz
statusNoneu, zugeordnet, bestellt, erledigt oder verworfen
cart_idYesID des Warenkorbs
positionsNoNeue Positionsliste [{ artikelnr, menge, einheit, bezeichnung, preis_netto, preiseinheit }]
project_refNoProjektbezug

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and openWorldHint=true, so safety is largely covered. The description adds genuinely useful behavior beyond them: that positions REPLACES the item list wholesale and that the total is recalculated as a side effect, which is exactly the destructive consequence an agent needs to know. It omits auth/permission requirements and what the response returns.

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?

Two dense sentences with the mutation surface front-loaded and the positions behavior appended, with no filler. The inline enumeration of status values partially duplicates the schema, which is minor waste but aids at-a-glance scanning.

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

Completeness4/5

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

For a five-parameter destructive mutation with no output schema, the description covers the mutable fields and the key side effect (list replacement plus total recalculation). It does not state that cart_id is required, nor whether partial updates leave untouched fields intact, which are the remaining gaps.

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 100%, so all five parameters are already documented, including the status enum values and the positions object shape. The description restates those fields and adds the meaningful consequence that positions overwrites the list and triggers a total recalculation, but provides no new syntactic detail, making the baseline 3 appropriate.

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 opens with a specific verb plus resource: 'Assign a basket to a project or change its status/note', and enumerates the mutable facets (project_ref, status, note, positions). It is clearly an update operation on a wholesale cart, though it does not name a sibling (e.g. get_wholesale_cart) to contrast itself against, 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 rather than stated: the parenthetical '(e.g. after correcting quantities)' hints at when to pass positions, but there is no explicit when-to-use / when-not guidance and no mention of the read-only alternative (get_wholesale_cart) for inspecting a cart first. An agent can infer the purpose but must guess at preconditions.

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.