Skip to main content
Glama

Update Order

starshipit_update_order
Idempotent

Update an existing unshipped StarShipIt order by patching only the fields you provide—such as items, packages, carrier, shipping method, or destination—before a label is printed.

Instructions

Update an existing unshipped order in StarShipIt. Only fields provided in the payload will be updated; others remain unchanged (partial patch semantics).

When to use: Use to correct order data, change carrier or shipping method, update the destination address, or add/replace items/packages before a label is printed.

Parameters (all under order object):

  • order_id (required) — StarShipIt internal order ID to update

  • All other fields from starshipit_create_order are optional

Returns: Updated Order object.

Errors: 400 if payload is invalid; 404 if order not found; 409 if order is already shipped (cannot update shipped orders); 401 if API keys invalid.

Input Schema

NameRequiredDescriptionDefault
orderYesOrder fields to update — must include order_id; all other fields are optional

Output Schema

NameRequiredDescriptionDefault
errorsNoValidation or processing errors returned by StarShipIt
objectNoThe response payload when StarShipIt returns a non-object value
successNoStarShipIt success flag (a boolean on most endpoints)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations, it discloses partial-patch semantics (unprovided fields remain unchanged), the hard constraint that shipped orders cannot be updated, and specific error codes including 409 for shipped orders and 401 for invalid credentials. These are real behavioral traits an agent cannot infer from idempotentHint or destructiveHint alone.

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?

Front-loaded with the core semantics in the first sentence, then organized under bolded When to use / Parameters / Returns / Errors headings. Every line carries operational value and there is no filler.

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?

Covers patch behavior, prerequisites, required parameter, return value, and failure modes for a nested, mutation-heavy tool. With an output schema present, the brief 'Returns' note is sufficient and nothing needed to invoke it correctly is absent.

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 100%, so the baseline is 3, but the description adds the required-field fact (order_id) and the useful framing that all other fields mirror starshipit_create_order while being optional. That cross-reference to a sibling tool's shape is meaning the schema cannot convey on its own.

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 and resource ('Update an existing unshipped order in StarShipIt') and scopes it to unshipped orders, which narrows it against siblings like starshipit_delete_order or starshipit_get_order. It does not distinguish itself from the closely related mutation siblings starshipit_update_orders_bulk and starshipit_batch_update_orders, which is the remaining gap.

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?

Explicit 'When to use' guidance lists concrete scenarios (correct order data, change carrier/shipping method, update address, add/replace items) and ties them to a lifecycle point ('before a label is printed'). It stops short of naming alternatives such as the bulk update tools for multi-order edits, so the when-not is implied rather than stated.

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