Skip to main content
Glama
cmssy-io

@cmssy/mcp-server

Official
by cmssy-io

edit_order

Replace an order's line items with a new set and recalculate totals after user confirmation.

Instructions

Replace an order's line items (full replace of the items array). Recomputes totals. Only call after the user confirms.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsNo
orderIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.73.1

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses that it fully replaces the items array (destructive), recomputes totals, and is gated on user confirmation, implying irreversibility. It does not mention permissions or other side effects, but covers the key behavioral traits.

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 sentences with zero filler. The primary action is front-loaded, and the usage condition is a concise second sentence. Every word earns its place.

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?

The description covers the core behavior (full replace, totals recalculation) and the confirmation gate, but lacks details on prerequisites (e.g., order existence), potential side effects on discounts or status, or return values (no output schema). Given it is a mutation with no annotations, more context could be provided, but the schema does specify item structure and minItems.

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 that 'items' is the new line items array and that totals will be recalculated, but it does not explicitly describe 'orderId' or the exact structure of items beyond the schema's own per-property descriptions. Some meaning is added, but not fully compensates for the coverage gap.

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 description clearly states the action: 'Replace an order's line items (full replace of the items array)' with a specific resource (order) and behavior (full replacement). It distinguishes itself from sibling tools like update_order_details by emphasizing the full replace semantics and total recalculation.

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?

Provides a clear usage condition: 'Only call after the user confirms.' This sets expectations for when it is appropriate to invoke. However, it does not explicitly mention alternatives or when not to use it, which slightly reduces the score.

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