Skip to main content
Glama

Get historical PnL

get_pnl
Read-only

Get historical PnL ticks for the subaccount (equity, totalPnl, netTransfers over time). Use createdOnOrAfter to bound the range.

Input Schema

NameRequiredDescriptionDefault
pageNo
limitNo
createdOnOrAfterNoISO 8601 lower bound

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / createdOnOrAfter / pattern
      Added value: +"^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,9})?)?)?(Z|[+-]\\d{2}:?\\d{2})?$"
  2. First observed

TDQS

B3.3/5.0
Behavior3/5

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

readOnlyHint=true already tells the agent this is a safe read. The description adds the useful detail that the result is a series of 'ticks' containing equity, totalPnl and netTransfers, which is genuine context beyond the annotation. It is silent on pagination, ordering, and default range behavior, so it stops at adequate.

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 short sentences, front-loaded with the verb and resource, no filler. Every clause carries information the agent needs.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description must carry return-value expectations — it partially does by naming the tick fields. However, for a paginated list tool it omits pagination behavior, ordering, and default time window, leaving real gaps an agent would want closed.

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

Parameters2/5

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

Schema description coverage is only 33% (only createdOnOrAfter is documented). The description clarifies that createdOnOrAfter 'bounds the range' but adds nothing about page or limit, their defaults, or how they interact with a tick stream. With two of three parameters undocumented in both schema and description, the description does not compensate for the coverage gap.

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 historical PnL ticks for the subaccount') and enumerates the returned fields (equity, totalPnl, netTransfers over time), so the agent knows exactly what data shape to expect. It does not, however, distinguish itself from siblings like get_portfolio or get_equity, so it stops short of a 5.

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 second sentence gives operational guidance on bounding the query with createdOnOrAfter, which implies the time-series use case. But it never says when to prefer this over get_equity/get_portfolio, nor does it mention pagination expectations, so usage is only implied rather than stated.

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