Skip to main content
Glama

workspaces_domain_purchases_cancel_create

Cancels an order that is unpaid or whose payment failed. Paid orders cannot be cancelled.

Method: POST /api/v1/workspaces/{workspace_sqid}/domain-purchases/{sqid}/cancel/

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": {
      "sqid": "<sqid>"
    },
    "name": "workspaces_domain_purchases_cancel_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
sqidYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose a hard precondition and the failure mode for paid orders, which is real behavioral content. It says nothing about irreversibility, permissions required, or whether an in-flight retry is affected.

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?

Two short lines, with the cancellation rule front-loaded and the HTTP method/path following as reference. Little waste, though the raw method line is boilerplate an agent may not need.

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?

For a one-parameter mutation with no output schema, the description covers the precondition and endpoint but omits what the response contains, whether cancellation is reversible, and how permissions are handled. Adequate, not complete.

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 single parameter 'sqid' has 0% schema description coverage, so the description must compensate. The included endpoint path implies sqid identifies a domain-purchase record, which is partial compensation, but it never explains the identifier or the fact that the path also references a workspace_sqid absent from the schema.

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 the specific verb (cancels) and resource (an order, i.e. a domain purchase) plus the condition under which it applies. It stops short of naming a sibling like workspaces_domain_purchases_retry_payment_create, but the unpaid/failed-payment qualifier does most of the differentiating work.

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?

Gives explicit eligibility (unpaid or failed payment) and an explicit prohibition (paid orders cannot be cancelled), which tells the agent both when and when not to call it. It does not point to the alternative path for failed payments, such as retrying the payment.

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.