Skip to main content
Glama

List positions

list_positions
Read-only

List investment positions (theses) with PnL data. Each position represents a trading thesis Milo is tracking — includes entry orders, linked TP/SL orders, invested amount, unrealized PnL, and current status. Milo revalidates theses every ~3 days. Wallet-backed positions include wallet order/TP/SL data; stock brokerage positions return walletId null, tradingAccountType stock_brokerage, and linked brokerage order/position-derived PnL.

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

Input Schema

NameRequiredDescriptionDefault
pageNoPage number (default: 1, max: 100)
statusNoFilter by position status
userIdNoThe user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me).
pageSizeNoItems per page (default: 25, max: 100)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered and the bar is lower. The description does add real context beyond annotations — data freshness ('Milo revalidates theses every ~3 days') and the behavioral split between wallet-backed and brokerage positions (walletId null, tradingAccountType stock_brokerage, PnL derived from brokerage positions). It still omits pagination behavior and auth implications, which live only in the schema.

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?

Four sentences, front-loaded with the action and resource, then value-adding detail about what a position contains and how brokerage positions differ. No filler, though the second and fourth sentences overlap slightly in enumerating position contents.

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?

There is no output schema, so the description must convey return shape, and it does list the included fields (entry orders, TP/SL, invested amount, unrealized PnL, status). Combined with annotations and a fully documented schema, the only remaining gap is return-level detail like pagination metadata.

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%, with the status enum, paging bounds, and the OAuth-vs-API-key userId rule all documented in the schema. The description adds no parameter-level meaning — it never mentions the status filter or paging — so the baseline 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+resource ('List investment positions') and immediately defines the domain object ('each position represents a trading thesis Milo is tracking') with the data it carries. It implicitly separates itself from order/holdings siblings by noting positions bundle entry orders, linked TP/SL orders, and PnL, but it never names an alternative tool, so it stops short of full sibling differentiation.

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

Usage Guidelines2/5

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

The description is purely descriptive of content; it never says when to call this versus list_orders, get_holdings, or get_order, nor does it state any exclusions or prerequisites for use. An agent must infer usage from the resource name alone.

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.