Skip to main content
Glama
Derive MCP Server

Derive MCP Server

by yashhsm

order_audit_log

Query filtered order history from the local audit trail, including fill rate, total fees, and volume. Review orders placed through lifecycle and RFQ tools, and spot gaps for reconciliation.

Instructions

Query the local audit trail of orders placed through lifecycle tools. Returns filtered order history with a summary including fill rate, total fees, and volume. Note: only orders placed via place_and_verify or rfq tools are tracked. Use reconcile to backfill orders placed via raw place_order.

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

Input Schema

NameRequiredDescriptionDefault
labelNoFilter by label prefix
limitNoMax results (default 50)
statusNoFilter by status (OPEN, FILLED, PARTIAL, CANCELLED, REJECTED, EXPIRED)
to_timestampNoEnd time (ms)
subaccount_idNoSubaccount ID (defaults to configured)
from_timestampNoStart time (ms)
instrument_nameNoFilter by instrument

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/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 burden, and it discloses two genuinely useful behavioral traits: this is a query against a local trail (not the exchange), and it only covers orders created through lifecycle tools, with a named remediation path. It omits ordering of results, pagination behavior beyond the schema's limit, and whether the trail persists across sessions or is bounded in retention.

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

Conciseness5/5

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

Three short sentences, front-loaded with the purpose, then the return payload, then the coverage caveat. Nothing is repeated and every clause carries information an agent needs before calling.

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?

For a seven-parameter, all-optional query tool with no output schema, the description explains what the summary contains and where the data comes from, which covers the main gaps. Minor omissions remain around result ordering and the audit trail's persistence or retention, which matter for a tool explicitly framed as an audit log.

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 description coverage is 100%, so all seven parameters (label prefix, limit, status enum values, timestamps, subaccount, instrument) are already documented; the description adds no syntax or filtering semantics beyond them. Baseline 3 applies since the schema does the param work and the description only implies that filters narrow the audit trail.

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?

States a specific verb and resource ('Query the local audit trail of orders') plus the source scope ('orders placed through lifecycle tools') and what comes back (filtered history with fill rate, total fees, volume). The note restricting tracking to place_and_verify/rfq orders distinguishes it from the raw order paths an agent would otherwise confuse it with.

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 a clear coverage boundary ('only orders placed via place_and_verify or rfq tools are tracked') and explicitly routes the backfill case to 'reconcile' for orders placed via raw place_order. It does not state a positive 'use this when you need X' trigger or contrast with other history-style readers, so it falls short of a full when/when-not/alternatives statement.

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