Skip to main content
Glama
Derive MCP Server

Derive MCP Server

by yashhsm

reconcile

Compare local audit logs with Derive's actual order state to detect missing or mismatched orders, then append correction events to sync the log when auto-fix is enabled.

Instructions

Compare local audit log against Derive's actual order state. Detects: orders on Derive not in local log (placed via raw tools), local orders marked as open that Derive shows as filled/cancelled. With auto_fix=true, appends correction events to bring local log in sync.

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

Input Schema

NameRequiredDescriptionDefault
auto_fixNoIf true, append correction events to sync local audit log with Derive state. Does NOT mutate existing events — only appends new correction/backfill events.
subaccount_idNoSubaccount ID (defaults to configured)

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 disclosure burden and does well: it explains that detection covers orders placed outside the log via raw tools and local open orders that Derive shows filled/cancelled, and that auto_fix appends correction events rather than rewriting history. It leaves out auth/permission requirements and doesn't characterize the returned report beyond the detection categories.

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?

Two tight sentences: the comparison action and detection scope come first, and the conditional mutation behavior of auto_fix follows. No filler or redundant restatement of the name.

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 two-param diagnostic tool with no output schema, the definition covers what is compared, what is found, and the effect of the mutating flag. A brief hint about the result shape or cost of a full reconciliation would close the remaining gap.

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 auto_fix and subaccount_id are already documented in structured form. The description reinforces auto_fix's consequence ('appends correction events to bring local log in sync') but adds no format or defaulting detail for subaccount_id beyond what the schema states, so 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?

States a specific verb and two concrete resources (local audit log vs. Derive order state) and enumerates the exact discrepancy classes it detects, so an agent knows precisely what the tool does and can distinguish it from order-query siblings like get_open_orders or get_order.

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 context for use ('compare local audit log against Derive's actual order state') and implicitly routes reconciliation needs here rather than to raw order tools; however, it does not state when NOT to use it or name an alternative for narrower lookups.

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