Skip to main content
Glama
Derive MCP Server

Derive MCP Server

by yashhsm

get_order

Retrieve a single order's current status, filled amount, average price, and fees to confirm fills after placement, including IOC orders that no longer appear in open-order lists.

Instructions

Get a single order's current state: status, filled_amount, average_price, fees. Use this after place_order to confirm fills — especially for IOC orders which vanish from get_open_orders immediately. Returns: order_id, status (open/filled/cancelled/expired), filled_amount, average_price, limit_price, direction, label, creation_timestamp.

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": {
      "order_id": "<order_id>"
    },
    "name": "get_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
order_idYesOrder ID to look up (returned by place_order)
subaccount_idNoSubaccount ID (defaults to configured)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full load and does well: it discloses the status enumeration (open/filled/cancelled/expired) and a non-obvious behavioral trait about IOC orders disappearing from the open-orders list. It stops short of mentioning error behavior for unknown order IDs, permissions, or rate limits, which keeps it from a 5.

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 front-loaded sentences establish purpose and usage before the field list. Minor redundancy: status, filled_amount and average_price appear both in the opening clause and again in the 'Returns:' list, which could be trimmed.

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?

With no output schema, listing the return fields is necessary and the description does it thoroughly. For a two-parameter read tool this is nearly complete; only edge-case behavior (invalid or expired order IDs) is unaddressed.

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 both parameters are already documented, including that order_id comes from place_order. The description adds no new detail about subaccount_id scoping or ID format beyond the schema, so the baseline 3 applies.

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 states a specific verb and resource ('Get a single order's current state') and enumerates the returned fields, which cleanly separates it from get_open_orders and get_order_history. An agent can identify the tool from the first clause alone.

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 gives explicit when-to-use guidance ('Use this after place_order to confirm fills') and a concrete condition that selects this tool over a sibling: IOC orders that 'vanish from get_open_orders immediately'. That is a real routing rule, not an implied one.

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