Skip to main content
Glama

HPControl Industrial Catalog

Replace shopping cart items

update_cart
DestructiveIdempotent

Replace the complete item set of an existing cart. Existing lines omitted from items are removed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsYesComplete replacement set. Omitted existing lines are removed.
cart_refYes
idempotency_keyNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsYes
statusYes
totalsYes
cart_refYes
expires_atNo
continue_urlNo
idempotent_replayNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already mark destructiveHint=true and idempotentHint=true. The description adds that it replaces the complete item set and removes omitted lines, providing useful behavioral context beyond the structured fields.

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?

Two concise sentences that front-load the action and consequence with no unnecessary words.

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?

Given the complexity of the items parameter (oneOf sku or configuration_handle), the description does not clarify this nuance. The output schema helps, but additional context would improve completeness.

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 coverage is low (33%), with only the items array having a description. The description adds no new meaning for cart_ref or idempotency_key, and the items description merely restates the overall purpose.

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?

The title 'Replace shopping cart items' and description clearly state the verb (replace) and resource (existing cart items), distinguishing it from siblings like create_cart and get_cart.

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

Usage Guidelines2/5

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

No guidance on when to use this tool or when to avoid it. With siblings like create_cart, the usage context is implied but not explicitly stated.

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