Skip to main content
Glama

Delete order

delete_order
Destructive

⚠️ Irreversible: this archives the order; it cannot be restored afterwards. Delete (archive) 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": {
      "orderId": "<orderId>"
    },
    "name": "delete_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
userIdNoThe user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me).
orderIdYesThe order ID to delete

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, and idempotentHint=false, so the description carries a lower burden. It still adds meaningful semantics beyond them: that the operation archives rather than purges, and that the state cannot be restored, which is the key operational consequence. It does not say whether already-archived orders error out or what a repeat call returns, a minor gap.

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 clauses with the irreversible consequence front-loaded ahead of the action statement, which is the right ordering for a destructive tool. The warning icon plus the restatement "cannot be restored afterwards" is slightly redundant with "Irreversible" but the emphasis is defensible here.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a simple two-parameter destructive tool with complete schema coverage, full annotations, and no output schema, so little explanation is required. The description covers the destructive consequence and the archive semantics; only error/repeat-call behavior is left unstated, which is acceptable at this complexity.

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 100% and both parameters (userId, orderId) are documented in the schema, including the OAuth-vs-API-key rule for userId. The description adds no parameter-level meaning, so the baseline of 3 applies.

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?

"Delete (archive) an order" states a specific verb and resource, and the parenthetical clarifies that deletion is implemented as archival rather than hard removal. That is enough for an agent to tell it apart from read-only siblings such as get_order or list_orders, though no sibling is named explicitly.

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

Usage Guidelines2/5

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

The description warns of irreversibility but gives no when-to-use guidance, no preconditions (e.g. only pending orders, ownership requirements), and no alternative such as pausing or closing instead of deleting. The agent must infer the decision boundary from sibling names alone.

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.