Skip to main content
Glama
Derive MCP Server

Derive MCP Server

by yashhsm

cancel_by_instrument

Cancel all orders for a specific instrument, optionally scoped to a subaccount, to remove outstanding instrument-level orders.

Instructions

Cancel all orders for a specific instrument.

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": {
      "instrument_name": "<instrument_name>"
    },
    "name": "cancel_by_instrument"
  }
}

Input Schema

NameRequiredDescriptionDefault
subaccount_idNo
instrument_nameYesInstrument name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden, yet it only restates the mutation. It does not explain irreversibility, permission requirements, partial-failure behavior, or whether cancellation crosses subaccounts.

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?

The single sentence is front-loaded and free of waste. It is appropriately short for the core action, though its brevity leaves behavioral gaps rather than unnecessary wording.

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

Completeness2/5

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

This is a destructive bulk-cancel operation with no annotations, no output schema, and an undocumented subaccount_id parameter. The description does not provide enough context for an agent to invoke it safely or predict its effects.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 50%, and the description does not compensate: it mentions the instrument scope but says nothing about subaccount_id, including whether omitting it cancels across all subaccounts or only a default account.

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 states a specific action and scope: cancel all orders for a specific instrument. This clearly distinguishes the tool from a single-order cancel or a blanket cancel-all, though it does not explicitly name those siblings.

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 scope implies when to use it (when cancelling every order on one instrument), but there is no explicit guidance on how it differs from cancel_order, cancel_by_label, or cancel_all_orders, nor any prerequisites.

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