Skip to main content
Glama

ledger_tax_export

Read-onlyIdempotent

Exports recorded spot execution rows to CSV with row counts and accounting warnings for tax preparation; futures tax lots require separate venue fill data.

Instructions

[Capability: paid_ready; tier: pioneer_plus; API: /api/v1/agent/ledger; authority: /api/v1/agent/status] Export recorded spot execution rows as CSV with row count and accounting warnings. Requires Pioneer-equivalent route access plus a wallet-bound API key or matching active session. Futures tax lots require venue fills outside this export.

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": {
      "agentAddress": "<agentAddress>"
    },
    "name": "ledger_tax_export"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoInclusive ISO 8601 range end. Defaults to now.
startNoInclusive ISO 8601 range start. Defaults to 30 days before now.
sessionIdNoActive FarmDash session ID when authenticating without a wallet-bound API key.
agentAddressYes0x-prefixed EVM agent address bound to the API key or matching session.
sessionTokenNoActive FarmDash session token proving ownership of agentAddress when authenticating without a wallet-bound API key.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / agentAddress / description
      Added value: +"0x-prefixed EVM agent address bound to the API key or matching session."
    • addedInput schema / properties / end / description
      Added value: +"Inclusive ISO 8601 range end. Defaults to now."
    • addedInput schema / properties / sessionId
      Added value: +{
      +  "description": "Active FarmDash session ID when authenticating without a wallet-bound API key.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / sessionToken
      Added value: +{
      +  "description": "Active FarmDash session token proving ownership of agentAddress when authenticating without a wallet-bound API key.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / start / description
      Added value: +"Inclusive ISO 8601 range start. Defaults to 30 days before now."
  2. First observedv5.0.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds real context beyond that: tier-gated authorization, two authentication routes (API key vs. active session), the CSV payload plus row count and accounting warnings, and the explicit scope boundary for futures tax lots.

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 dense sentences with the core action front-loaded, followed by authorization and scope caveats. The bracketed capability/tier/API metadata is somewhat noisy but does carry routing information an agent may need.

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?

With no output schema, the description correctly summarizes the return (CSV with row count and accounting warnings) and covers auth and scope limits. Only the absence of explicit alternative-tool routing keeps it from fully complete for a 5-parameter export tool.

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 start, end, agentAddress, sessionId, and sessionToken are already documented in the schema. The description only echoes the authentication intent behind the session parameters and adds no format or behavior detail beyond that, so the baseline of 3 applies.

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: 'Export recorded spot execution rows as CSV with row count and accounting warnings.' It also scopes the tool by excluding futures tax lots, which implicitly separates it from other ledger-family tools, but it never names a sibling alternative directly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives prerequisites (Pioneer-equivalent route access plus a wallet-bound API key or matching active session) and notes that futures tax lots require venue fills outside this export, which implies when the tool is insufficient. It never explicitly says when to prefer this over a sibling such as ledger_realized_pnl.

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

Deploy Server

Other Tools