Skip to main content
Glama

My open positions

get_my_positions
Read-onlyIdempotent

Every open perpetual futures position on every connected exchange account: side, size, entry, mark, open profit or loss, leverage, the liquidation price with how far away it is, and the trade plan left on it (close_or_notify_later). Use first in a new session, and before closing, adjusting a stop or reporting exposure. Not for resting orders or stops (use get_my_open_orders). No inputs. Sizes in the base coin, prices in USD. Next: close_position or get_my_open_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_my_positions"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
netYesPer coin and book, long and short across every venue netted (what close_net_exposure works on)
positionsYesOpen positions on every connected venue
deprecationNoPresent only while this tool is deprecated: replacement, removal_date, changelog

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedOutput schema / $defs / NetOut
      Added value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "book": {
      +      "description": "real (exchange accounts) or sandbox (play money); never netted together",
      +      "type": "string"
      +    },
      +    "deprecation": {
      +      "additionalProperties": true,
      +      "description": "Present only while this tool is deprecated: replacement, removal_date, changelog",
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "long_base": {
      +      "description": "Long size across venues, in the base coin (e.g. BTC), not USD",
      +      "type": "number"
      +    },
      +    "net_base": {
      +      "description": "Long minus short, in the base coin (e.g. BTC), not USD; positive = net long",
      +      "type": "number"
      +    },
      +    "net_usd": {
      +      "description": "net_base at the mark, USD",
      +      "type": "number"
      +    },
      +    "short_base": {
      +      "description": "Short size across venues, in the base coin (e.g. BTC), not USD",
      +      "type": "number"
      +    },
      +    "symbol": {
      +      "description": "Base coin",
      +      "type": "string"
      +    },
      +    "venues": {
      +      "description": "Venues holding it",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "symbol",
      +    "book",
      +    "long_base",
      +    "short_base",
      +    "net_base",
      +    "net_usd",
      +    "venues"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / net
      Added value: +{
      +  "description": "Per coin and book, long and short across every venue netted (what close_net_exposure works on)",
      +  "items": {
      +    "$ref": "#/$defs/NetOut"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "positions"
      -]New value: +[
      +  "positions",
      +  "net"
      +]
  2. Changed1 schema field changed
    • changedOutput schema / $defs / PositionOut / properties / plan / description
      Previous value: -"The trade plan on this position (set_position_exit_plan), if any"New value: +"The trade plan on this position (close_or_notify_later), if any"
  3. Added

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, so the safety profile is covered; the description adds real value on top by stating the cross-account aggregation scope, that sizes are in the base coin and prices in USD, and that a trade plan may be attached to a position. It stops short of noting freshness/latency or ordering of results, which is the only remaining behavioral gap for a read tool.

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?

Front-loads the scope, then the field list, then usage, then the exclusion and the next step. Every clause carries information, including the short 'No inputs.' sentence, and nothing is repeated from the title or annotations.

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, annotations cover the safety profile, and there are no parameters to document. The description still supplies the things structured fields cannot: cross-account scope, units, and the session-start/next-tool workflow.

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 is 4; the description correctly states 'No inputs' and additionally clarifies the units of the values the agent will receive (base coin sizes, USD prices). No further parameter meaning is possible or needed.

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?

Names a specific resource and scope ('Every open perpetual futures position on every connected exchange account') and enumerates the returned fields (side, size, entry, mark, PnL, leverage, liquidation price and distance, attached trade plan). It also explicitly distinguishes itself from get_my_open_orders, so an agent can route 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?

Gives explicit when-to-use triggers ('first in a new session, and before closing, adjusting a stop or reporting exposure') and an explicit exclusion with the correct alternative ('Not for resting orders or stops (use get_my_open_orders)'). It even names the follow-on tools (close_position, get_my_open_orders), leaving nothing to inference.

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