Skip to main content
Glama

vex_orders

Manage Vendure orders and draft orders: list or fetch orders, create drafts, add items, assign customers, transition states, and cancel orders.

Instructions

Manage Vendure orders and draft orders.

Actions:

  • list: List orders with optional code filter.

  • get: Get a single order by ID with full details.

  • create_draft: Create a new draft order.

  • add_item: Add a product variant to a draft order.

  • set_customer: Set the customer for a draft order.

  • transition: Transition an order to a new state.

  • cancel: Cancel an order.

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": {
      "action": "<action>"
    },
    "name": "vex_orders"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoOrder ID
envNoTarget env name (default: VEX_ENV, else active).
skipNoItems to skip (default 0).
takeNoItems per page (default 20).
stateNoTarget order state (e.g. 'ArrangingPayment', 'PaymentSettled', 'Shipped', 'Delivered')
actionYesOperation to perform; see description for valid values.
reasonNoCancellation reason
orderIdNoDraft order ID
quantityNoQuantity to add
customerIdNoCustomer ID to assign
filterByCodeNoFilter by order code (contains)
productVariantIdNoProduct variant ID to add

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and does not meet it. It never says which actions mutate state, whether cancel/transition are reversible, what valid state transitions exist, what permissions are required, or whether cancel requires a reason — only the action names hint at mutation.

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?

One scoping sentence followed by a compact action list; every line corresponds to a real enum value and nothing is padded. It is front-loaded and scannable, though the action glosses are so short they approach restating the enum rather than explaining it.

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?

A 12-parameter, 7-action dispatcher with no annotations and no output schema needs more than this. Parameter documentation is largely delegated to the schema, which is reasonable, but the description omits the action-to-parameter mapping and any mutation/state-machine semantics, so an agent must reverse-engineer how to compose multi-step draft-order flows.

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 coverage is 100%, so the schema already documents every parameter including enum values and state examples. The description adds only loose association (code filter applies to list, ID to get) but does not map the other parameters (orderId, productVariantId, customerId, quantity, state, reason) to their specific actions, leaving the agent to infer the binding.

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?

States a specific domain and resource ('Manage Vendure orders and draft orders') and enumerates the seven supported actions with a short gloss each. It is clearly distinguishable from the surrounding catalog (assets, channels, customers, products), though the glosses are terse enough that the boundaries between actions like 'create_draft' and 'add_item' require reading the schema.

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?

The action list implies when each operation applies, and 'cancel' vs 'transition' are separated, but there is no explicit guidance on prerequisites or ordering (e.g. that add_item/set_customer operate on a draft order ID from create_draft, or that transition requires an existing order). No exclusions or alternative-tool routing are given.

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