Skip to main content
Glama
schwab-mcp

schwab-mcp

by HGZ-20

Get Open Positions

get_positions
Read-onlyIdempotent

Fetch open equity and option positions for an account, including PnL and market values, to review current holdings and performance.

Instructions

Fetch all open equity and option positions for an account with PnL and market values.

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
accountNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/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 useful behavioral scope: only open positions are returned, and both equity and option asset classes are included with PnL and market values. It does not say what happens when the account argument is omitted, which is the main behavioral unknown.

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?

One sentence, front-loaded with the verb and resource, with zero filler. Every clause (open, equity and option, PnL, market values) adds information an agent can use.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool is simple (one optional parameter) and an output schema exists, so return values need little explanation and the annotations cover safety. The remaining gap is the omitted-account default, which materially changes which positions are returned and is left unexplained.

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 0% for the single optional 'account' parameter, so the description must carry the load. It only says 'for an account', which confirms the parameter's meaning but does not explain the default-null behavior (presumably a default or aggregated account). Partial compensation for a low-coverage schema.

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?

States a specific verb (fetch) and resource (open equity and option positions) plus the data returned (PnL, market values), which is far more informative than the name alone. It does not explicitly contrast with siblings such as get_orders or get_account_details, but the scope (open positions only, equity and options) is clear enough to distinguish it in practice.

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?

The word 'open' implies the intended use case (checking current holdings before acting), but there is no explicit when-to-use or when-not-to-use statement, and no named alternative for order history or transaction data. Usage is inferable rather than stated.

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