Skip to main content
Glama

Portfolio trades

get_simulation_trades
Read-only

Get the paper portfolio's closed trades from resolved books, newest first, market-cap-weighted ("cap", the default) or equal-weighted ("equal"): the two trade at the same prices and differ in weight, and so in size and P&L. Open positions never appear. Date bounds apply to the day a trade opened; narrow them to see past the limit. Use this for individual trades, and get_simulation_nav for portfolio value.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMost trades to return, 1 to 500. Default 500. Older trades are cut off; there is no paging.
to_dateNoLatest date to include, as YYYY-MM-DD. Omit for no upper bound.
from_dateNoEarliest date to include, as YYYY-MM-DD. Omit for no lower bound.
weightingNo"cap" for market-cap weights against SPY (the default), or "equal" for equal weights against RSP.cap

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / from_date / description
      Added value: +"Earliest date to include, as YYYY-MM-DD. Omit for no lower bound."
    • addedInput schema / properties / limit / description
      Added value: +"Most trades to return, 1 to 500. Default 500. Older trades are cut off; there is no paging."
    • addedInput schema / properties / to_date / description
      Added value: +"Latest date to include, as YYYY-MM-DD. Omit for no upper bound."
    • addedInput schema / properties / weighting / description
      Added value: +"\"cap\" for market-cap weights against SPY (the default), or \"equal\" for equal weights against RSP."
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly, closed-world, non-destructive, so the safety bar is met; the description goes further by disclosing ordering, the absence of open positions, the no-paging truncation behavior at the limit, and that the two weightings trade at identical prices but differ in size and P&L. Those are substantive behavioral facts an agent cannot get from the annotations.

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?

Front-loaded with the core action and scoping, with exclusions and the alternative in subsequent clauses. It is dense — a long first sentence bracketed by parentheticals — but nearly every clause carries information an agent needs; only the weighting restatement slightly overlaps the schema.

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?

An output schema exists, so return values need not be described; the description instead covers the things structured fields cannot: sort order, exclusion of open positions, weighting semantics, date-bound interpretation, and truncation. Nothing needed to call this correctly is missing.

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 earns extra by explaining that date bounds apply to the day a trade opened (a semantic detail absent from the from_date/to_date schema text) and by contrasting the weighting modes, including the SPY vs RSP benchmark difference. It leaves the numeric limit range to the schema, which is appropriate.

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 resource ("Get the paper portfolio's closed trades from resolved books") plus ordering ("newest first"), scope ("Open positions never appear"), and explicitly names the sibling it is not (get_simulation_nav). An agent can distinguish it from get_book_portfolio and get_simulation_nav without opening either schema.

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

Usage Guidelines5/5

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

Includes an explicit routing rule: "Use this for individual trades, and get_simulation_nav for portfolio value." It also sets negative scope (open positions never appear) and a practical workaround ("narrow them to see past the limit"), so selection and usage conditions are fully specified rather than inferred.

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.