Skip to main content
Glama
FxSocket MCP

FxSocket MCP

Official

Get open positions

get_open_positions
Read-onlyIdempotent

Retrieve open positions and pending orders across one or more accounts, with filters by symbol and kind, plus per-account counts, floating profit/loss, swap, and currency totals.

Instructions

Open positions and pending orders on one or more accounts, newest first, with per-account counts, floating profit and swap, and totals per currency. Lists at most 300 orders across all accounts; counts and totals always cover everything. Narrow it with symbol (EURUSD also matches EURUSD.sd) and kind (position or pending); omit account_ids to read every account. Only what is open now: for closed trades, win rate or realised profit, use get_trade_history.

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

Input Schema

NameRequiredDescriptionDefault
kindNoposition = filled trades, pending = resting limit/stop orders.any
symbolNoOnly this instrument. Matches broker suffixes too, so EURUSD also matches EURUSD.sd and EURUSDm.
account_idsNoAccount ids from list_accounts. Omit to read every account this key can see.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already establish readOnly/idempotent/non-destructive, so safety needs no restatement. The description adds genuinely useful behavior the annotations cannot convey: newest-first ordering, a hard cap of 300 orders across all accounts, and the guarantee that counts and totals always cover everything. It stops short of covering pagination/continuation semantics for truncated result sets.

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?

Four dense sentences, each carrying distinct information (result shape, cap/coverage rule, filtering, scope boundary), with the core purpose front-loaded and the alternative named last. No filler.

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?

With no output schema, the description compensates by describing the return payload (per-account counts, floating profit and swap, totals per currency, ordering) and the truncation rule. Nothing an agent needs to call and interpret this tool is missing.

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%, so the schema already documents kind, symbol, and account_ids. The description's parameter text (suffix matching, position vs pending, omitting account_ids) largely restates the schema rather than adding syntax or edge-case detail, so the baseline 3 applies.

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?

Opens with a specific verb+resource ('Open positions and pending orders on one or more accounts') and immediately scopes it ('Only what is open now'), which cleanly separates it from the sibling get_trade_history. An agent can route correctly without opening any 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?

Explicit routing is given: 'for closed trades, win rate or realised profit, use get_trade_history.' It also states defaults and narrowing options ('omit account_ids to read every account', narrow with symbol and kind), covering both when to use and when not to.

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