Skip to main content
Glama
schwab-mcp

schwab-mcp

by HGZ-20

Get Orders

get_orders
Read-onlyIdempotent

Query orders for a specific Schwab account or across all accounts, with filters for date range, order status, and result limit to review trading activity.

Instructions

Query orders for a specific account or across all accounts (pass account='ALL').

Args: account: Account number, last 4 digits, hashValue, 'ALL', or None for default account. days_back: Lookback window in days when from_time is omitted (default 7, Schwab max 60). from_time: Optional ISO-8601 start timestamp (e.g. '2026-11-15T00:00:00Z'). to_time: Optional ISO-8601 end timestamp. status: Optional filter: 'WORKING', 'FILLED', 'CANCELED', 'EXPIRED', 'PENDING_ACTIVATION', 'REJECTED', etc. max_results: Maximum orders to return (default 50).

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

Input Schema

NameRequiredDescriptionDefault
statusNo
accountNo
to_timeNo
days_backNo
from_timeNo
max_resultsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

The annotations already declare read-only, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds real operational context beyond that: a provider-specific cap ('Schwab max 60'), the default 50-result limit, default 7-day lookback, and the accepted account identifier forms. It doesn't say whether max_results truncates silently or how results are ordered, which keeps it off a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One front-loaded sentence establishes purpose, followed by a compact Args list that is justified given the empty schema descriptions. The Args block does restate parameter names, which is slightly redundant, but every line earns its place with a default, format, or constraint.

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 values need not be explained. For a six-parameter query tool, the description covers account resolution, time-window precedence, and result capping; the only gaps are interaction between from_time and to_time validation and whether truncation is signalled.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the full burden — and it does: each of the six parameters gets meaning, defaults, accepted values, or format (ISO-8601 example for timestamps, enumerated status strings, account as number/last4/hashValue/'ALL'/None). This is meaning the schema's bare 'string'/'integer' types do not convey.

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?

The description opens with a specific verb and resource ('Query orders') and states its scope: one account, or all accounts when account='ALL'. This implicitly separates it from the singular sibling get_order, but it never names that sibling or any other alternative, so the differentiation is left to inference.

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?

It gives operational cues ('pass account=ALL' to broaden scope, days_back applies only when from_time is omitted), which implies when to use it. There is no explicit guidance on when to prefer get_order or how to choose between the time-window parameters, and no mention of prerequisites.

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