Skip to main content
Glama

FarmDash Agent OS

ledger_realized_pnl

Read-onlyIdempotent

Read recorded FarmDash spot and futures activity and costs for an authorized EVM agent. Requires Pioneer-equivalent route access plus a wallet-bound API key or matching active session. Returns a summary, up to 20 recent events per lane, and warnings. Contains no realized P&L. Only confirmed settlement counts as confirmed.

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

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. Changed3 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 / start / description
      Added value: +"Inclusive ISO 8601 range start. Defaults to 30 days before now."
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover readOnly, idempotent, non-destructive and open-world, so the description's added value is real: it discloses the dual authentication model, the return envelope (summary, up to 20 recent events per lane, warnings), a hard per-lane cap on events, and the settlement-confirmation rule. The remaining gap is that it does not state rate limits or what happens when range bounds exceed the per-lane event cap.

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, front-loaded with the action and immediately followed by the name-vs-behavior caveat, then auth, then return shape. The clause "Only confirmed settlement counts as confirmed" is slightly circular and could be tightened, but nothing is padding.

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 carries the return-value burden and does so adequately by naming the summary, per-lane event collections with their 20-item cap, and warnings. Authentication and the P&L non-goal are covered; only error behavior and pagination beyond the cap are left unstated.

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 the schema already documents every parameter's type, pattern and default, and the baseline of 3 applies. The description adds only the relationship between agentAddress and the API key/session credentials, without any format or syntax detail the schema lacks.

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 (read) and resource (recorded FarmDash spot and futures activity and costs) scoped to an authorized EVM agent, and explicitly disclaims the P&L computation implied by its name ("Contains no realized P&L"), which prevents a costly misfire. It stops short of naming a sibling such as ledger_tax_export as the alternative, so it is clear but not fully differentiated.

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?

Gives access prerequisites (Pioneer-equivalent route plus wallet-bound API key or matching active session) and the default 30-day window, which frames when the call can succeed. However, it never states when to prefer this over ledger_tax_export or get_agent_performance, leaving the routing decision to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources