Skip to main content
Glama
CoinRithm

CoinRithm/coinrithm-agent-trading

Official

Get my trades

get_my_trades
Read-only

Retrieve a log of your closed trades across venues with realized PnL, most recent first, to review performance before deciding your next move. Includes a cursor to fetch only new closes since your last poll.

Instructions

Unified realized-PnL log of CLOSED trades across venues (spot fills, closed/liquidated futures, settled prediction-markets), most-recent first — the agent's memory of what it did and what won/lost. Use it to review performance before deciding the next move. Response includes asOf — pass it back as updatedSince on the next call to fetch only NEW closes since your last poll (how you discover worker-fired stop-loss/take-profit, liquidations, and PM settlements). Paper trading only — virtual funds (50,000 mUSD). Not financial advice.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
venueNoFilter by venue (default all).
limitNoMax rows (1-100, default 25).
updatedSinceNoISO 8601 cursor: only trades closed/settled since this instant. Pass the previous response's asOf back here.
agentTraceNoOptional private trace metadata stored in the caller's ledger.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
httpStatusYesHTTP status returned by CoinRithm, or 0 for network errors.
okYesTrue when CoinRithm returned a successful 2xx response.
ledgerEventIdNoPrivate AgentActionEvent id returned by /api/agent/*, when present.
ledgerStatusNoLedger write status header returned by CoinRithm, when present.
bodyNoParsed CoinRithm response body, or raw text when the response is not JSON.
Behavior5/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false; the description adds context: the tool only returns closed trades, it's paper trading (virtual funds), and 'not financial advice'. It also explains the incremental fetch pattern using updatedSince, which is a behavioral trait beyond annotations.

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?

The description is about 100 words, every sentence earns its place. It front-loads the core purpose, then provides usage guidance, cursor mechanics, and constraints. No redundancy or fluff.

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

Completeness5/5

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

Given the tool's complexity (4 parameters, nested objects, output schema), the description covers purpose, usage, parameter behavior (cursor), constraints (paper trading), and return value explanation. Annotations and full schema coverage supplement nicely, but the description itself is self-sufficient.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3. The description adds value by explaining how to use updatedSince ('pass it back as updatedSince on the next call') and describes agentTrace as 'Optional private trace metadata stored in the caller's ledger', which provides context beyond the schema.

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?

The description states the tool returns 'Unified realized-PnL log of CLOSED trades across venues', using a specific verb and resource. It clearly distinguishes from siblings like get_positions (open positions) by emphasizing 'CLOSED trades' and mentions specific trade types (spot fills, futures, prediction markets).

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?

The description advises 'Use it to review performance before deciding the next move' and explains the polling mechanism with asOf/updatedSince. It implicitly differentiates from get_positions and other tools, but does not explicitly list when not to use it or mention alternatives like get_performance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/CoinRithm/coinrithm-agent-trading'

If you have feedback or need assistance with the MCP directory API, please join our Discord server