Skip to main content
Glama
Derive MCP Server

Derive MCP Server

by yashhsm

get_trade_history_private

Retrieve private trade history and fills with PnL, fees, and transaction status, filtered by subaccount, instrument, or time range.

Instructions

Get private trade history (fills) with PnL, fees, tx status.

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_trade_history_private"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo
page_sizeNo
to_timestampNo
subaccount_idNo
from_timestampNo
instrument_nameNo

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?

With no annotations at all, the description carries the full burden, yet it only says which fields the records contain (PnL, fees, tx status). It says nothing about auth requirements, pagination defaults, ordering, time-range behavior, or rate limits for a private, account-scoped endpoint.

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?

One short, front-loaded sentence with no filler. Its brevity is efficient rather than padded, though it is arguably too terse given the undocumented parameters.

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?

For a six-parameter, account-scoped history query with no annotations and no output schema, the definition leaves pagination, time filtering, and scoping behavior entirely unspecified. Only the returned field list gives the agent anything to work with.

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

Parameters1/5

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

Six parameters (page, page_size, from_timestamp, to_timestamp, subaccount_id, instrument_name) have 0% schema description coverage, and the description does not mention a single one of them. There is no explanation of timestamp units, pagination semantics, or what subaccount_id defaults to.

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 private trade history (fills)') and parenthetically disambiguates that this returns fills rather than orders. The word 'private' implicitly separates it from the sibling get_trade_history_public, though that sibling is never named.

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?

There is no guidance on when to use this versus get_trade_history_public or get_order_history, and no mention of authentication or account scoping prerequisites despite the 'private' label. The agent must infer everything from the name.

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