Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as Gloom. If you published it, claim ownership there.

Brokerage positions

portfolio.positions
Read-onlyIdempotent

Read-only: open positions at the brokers the user connected in Gloom, one row per account and instrument. Shares are absolute; side says long or short.

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": "portfolio.positions"
  }
}

Input Schema

NameRequiredDescriptionDefault
brokerNoOne broker id, such as ibkr or robinhood. Omit for every broker.

Output Schema

NameRequiredDescriptionDefault
asOfNo
dataYes
statusYes
rowCountNo
truncatedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "asOf": {
      +      "type": "string"
      +    },
      +    "data": {
      +      "type": "object"
      +    },
      +    "rowCount": {
      +      "type": "integer"
      +    },
      +    "status": {
      +      "type": "string"
      +    },
      +    "truncated": {
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "status",
      +    "data"
      +  ],
      +  "type": "object"
      +}
  2. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover readOnly, idempotent, destructive=false, so the description earns credit for extras: row granularity (one row per account AND instrument) and value semantics (shares are absolute, direction carried by a side field). That is real information an agent needs to interpret results correctly; only ordering/pagination or empty-state behavior are missing.

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 short sentences with zero filler, front-loaded with the read-only qualifier followed by the scope and the data-shape note. Every clause carries meaning.

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?

An output schema exists, so return structure needn't be restated, and the description still supplies the grain and sign convention that matter most. For a single optional-parameter read tool this is close to complete; only result ordering/limits are unaddressed.

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 coverage is 100% and the single property already documents itself, including "Omit for every broker." The description adds no further broker semantics (multi-broker id validity, error on unknown id), so the baseline of 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?

"Open positions at the brokers the user connected" gives a specific resource plus scope, and "one row per account and instrument" pins down the row grain. It does not name the sibling it differs from (portfolio.exposure, portfolio.accounts), so it stops short of a 5.

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

Usage Guidelines3/5

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

Usage is only implied: "open positions" signals current holdings rather than historical or aggregate views, and "Read-only" signals a safe lookup. No explicit when-to-use or when-not-to-use guidance, and no alternative sibling is named for related questions like exposure or performance.

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