Skip to main content
Glama
Derive MCP Server

Derive MCP Server

by yashhsm

get_order_history

Retrieves historical orders for a subaccount or wallet, with timestamp and pagination filters, to help review past trading activity.

Instructions

Get historical orders for a subaccount or wallet.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_order_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo
walletNo
page_sizeNo
to_timestampNo
subaccount_idNo
from_timestampNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.6/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. It does not disclose pagination behavior, whether the two scoping filters are mutually exclusive or combinable, permission requirements, or what the returned records look like — significant gaps for a 6-parameter listing tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single short sentence with no filler and the scope stated up front. The terseness is efficient but tips into under-specification, since nothing addresses the undocumented parameters or the return shape.

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?

With six parameters, zero schema coverage, no annotations, and no output schema, the definition should do considerably more work. As written, an agent cannot know how to paginate, what timestamp format to supply, or whether filtering by both subaccount and wallet is valid.

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 0%, so the description must compensate and largely does not. It only maps to two of the six parameters (subaccount_id and wallet); page, page_size, from_timestamp, and to_timestamp are never mentioned, leaving their units and semantics entirely undocumented.

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 ('Get historical orders') plus the scoping dimension ('for a subaccount or wallet'), so the operation is immediately identifiable. It does not, however, distinguish this from near-siblings such as get_order or get_trade_history_private, so the agent must infer the boundary.

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 phrase 'for a subaccount or wallet' implies the two ways to scope the query, but there is no explicit when-to-use guidance, no when-not-to-use, and no named alternative for order-level versus trade-level history. The agent is left to guess which history tool to pick.

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