Skip to main content
Glama

Cancel an unpaid setup order

cancel_setup_order
DestructiveIdempotent

Cancel a setup order that has not been paid yet (status draft, quoted, awaiting_confirmation or declined only). A paid order cannot be cancelled here - that returns invalid_transition; contact volai instead. Same data as POST /v1/setup-orders/{id}/cancel (response schema in /openapi.json).

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": {
      "orderId": "<orderId>"
    },
    "name": "cancel_setup_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
orderIdYesId of the setup order to cancel, from list_setup_orders.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare this destructive but idempotent operation, and the description adds important eligibility constraints and the invalid_transition failure mode for paid orders. It does not specify authentication requirements or exact post-cancellation side effects, so it is strong but not exhaustive beyond the annotations.

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?

The eligibility rule is front-loaded, followed by the key failure case and endpoint reference. Three sentences carry the necessary constraints without repetition or 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?

For a single-parameter cancellation tool with annotations covering safety and idempotency, the description supplies the critical status gate, error behavior, and API reference. Nothing essential for correct invocation appears to be missing.

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?

The only parameter is fully documented in the schema, including where to obtain the orderId from list_setup_orders. The description does not add syntax or format details beyond that, so the high schema coverage establishes the baseline score.

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 gives a specific verb and resource ('Cancel a setup order') and immediately narrows scope to unpaid orders. It clearly distinguishes this path from paid-order handling, which is sent elsewhere.

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

Usage Guidelines5/5

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

It explicitly lists eligible statuses (draft, quoted, awaiting_confirmation, declined) and states the exclusion that a paid order cannot be cancelled here. It also names the resulting error and the alternative escalation path ('contact volai instead').

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.