Skip to main content
Glama

Get Positions & Pending Orders

get_positions
Read-only

Get all open positions and pending orders across all of the user's connected broker accounts. Positions are live trades currently in the market. Pending orders are limit/stop orders waiting to be filled. Each position includes: symbol, side (buy/sell), quantity, average entry price, unrealized P&L, stop loss (price + dollar amount), take profit (price + dollar amount), open date, broker account label, environment (demo/live), and linked conditional order info if applicable. To WATCH a position and close it or move its stop when something happens (a candle close, a CHoCH, a level, a time), create an exit rule with create_conditional_order (action.type close_position / modify_position, with this position id): TraderWAI checks it every minute. Each pending order includes: symbol, side, type (limit/stop), quantity, target price, SL/TP levels, and creation date.

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=true, so safety is covered. The description adds real context beyond that: the scope spans all connected broker accounts, and it describes the conditional-order linkage and that TraderWAI evaluates exit rules every minute. No rate limits or pagination behavior are mentioned, but this is solid added value.

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?

Purpose and scope are front-loaded in the first sentence, and the field enumerations earn their place because there is no output schema. The two long field lists are somewhat dense, but they carry information not available elsewhere.

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?

For a zero-parameter, read-only query with no output schema, the description supplies what the agent actually needs: the two result categories, their field contents, and where to go to act on a position. Nothing material 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?

The tool takes zero parameters, which is the baseline-4 case. The description correctly implies a parameterless call ('all ... across all of the user's connected broker accounts') and introduces no parameter vocabulary that would conflict with the empty 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?

States a specific verb and resource ('Get all open positions and pending orders') plus the scope ('across all of the user's connected broker accounts'), and it defines both entities so the agent can distinguish it from get_conditional_orders, get_suggested_orders, and get_broker_account_state.

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?

Gives clear context (live trades vs. waiting limit/stop orders) and explicitly routes the 'watch a position' use case to create_conditional_order with the position id. It does not state exclusions (e.g., when to prefer account-state or conditional-order endpoints instead), so it falls short of the top tier.

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