Skip to main content
Glama
Derive MCP Server

Derive MCP Server

by yashhsm

verify_order

Check an order's current status and receive a normalized receipt; detect status changes, log corrections, and optionally fetch settlement details for filled orders.

Instructions

Check current state of any order and return normalized OrderReceipt. If the order's status changed since last check (e.g., OPEN → FILLED), emits a correction event to the audit log. Use after place_and_verify to check if a GTC order has been filled, or to get settlement details. With include_settlement=true, fetches tx_hash from trade history for filled orders.

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": "verify_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
order_idYesOrder ID to verify (returned by place_order or place_and_verify)
subaccount_idNoSubaccount ID (defaults to configured)
include_settlementNoIf true and order is filled, fetch settlement details (tx_status, tx_hash) from trade history. Adds one extra API call.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the disclosure burden and does real work: it warns that a status change emits a correction event to the audit log (an unexpected side effect for a read-looking tool) and that include_settlement costs one extra API call. It omits auth/permission requirements and any rate-limit or eventual-consistency notes.

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?

Three sentences, front-loaded with the core action and return type, then usage, then the optional flag. Dense and largely waste-free, though the settlement sentence partly restates the schema's own description of include_settlement.

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?

No output schema exists, yet the description names the return type and the key settlement fields (tx_status, tx_hash), and it covers timing, side effects, and cost. The remaining gap is that the OrderReceipt shape is never enumerated and the distinction from get_order 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 all three parameters are already documented in the schema, including the "extra API call" cost note. The description adds only that settlement lookup applies to filled orders and yields tx_hash, which is marginal beyond the schema text — baseline 3.

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 a specific verb and resource ("Check current state of any order") plus the return type ("normalized OrderReceipt"), which is far more informative than the bare name. It does not, however, distinguish itself from the sibling get_order, which an agent will reasonably assume also reads order state.

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 concrete when-to-use guidance: after place_and_verify to check GTC fills, or to obtain settlement details, and ties include_settlement to that second scenario. It stops short of naming exclusions, so the overlap with get_order and get_open_orders is left for the agent to guess.

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