Skip to main content
Glama

TraderWAI Charts

Get open positions and orders

get_positions
Read-only

Returns the open positions (symbol, side, size, entry price, unrealized profit/loss, stop loss and take profit) and pending orders of the broker accounts the user connected in TraderWAI. Read-only: it cannot place, modify or close positions or orders.

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_positions"
  }
}

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 and destructiveHint=false, so the safety profile is covered; the description adds value by explicitly stating the tool cannot place, modify or close anything, reinforcing safety for an openWorld tool. It also discloses the payload shape (symbol, side, size, entry, P/L, SL, TP), though it does not discuss error states or behavior when no accounts are connected.

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 clauses, no waste, and the positive description of what is returned is front-loaded ahead of the read-only constraint. Every sentence earns its place.

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?

No output schema exists, so the description must carry return-value semantics, and it does so well for positions. The fields of 'pending orders' are not enumerated, and ordering/pagination of results is unstated, which is a minor remaining gap for an open-world read tool.

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?

Zero parameters, so the baseline of 4 applies; nothing in the schema needs explaining. The description correctly implies an unfiltered snapshot of all connected accounts rather than inventing parameter concepts.

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+resource ('Returns the open positions and pending orders') and scopes it to 'broker accounts the user connected in TraderWAI', which separates it from get_broker_accounts (account list) and the market-data siblings. Enumerating the returned fields makes the tool's output unambiguous.

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 scope is clearly framed (only accounts the user connected) and the 'Read-only: it cannot place, modify or close' clause rules out a whole class of misinvocation. It does not explicitly name an alternative for account discovery, but the intended context is clear.

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