Skip to main content
Glama
schwab-mcp

schwab-mcp

by HGZ-20

Start Schwab Authentication

start_auth
Idempotent

Start Charles Schwab OAuth 2.0 login from your AI agent to authorize market data and trading access, opening the browser and capturing the callback locally or via manual paste.

Instructions

Start Charles Schwab OAuth 2.0 login directly from your AI agent (Mode 2 local flow).

Supports MCP 2026-07-28 URL-mode elicitation (prompting the client UI natively for out-of-band OAuth so credentials never touch the LLM context), plus automatic local HTTPS loopback callback capture and manual URL-paste fallback via complete_auth.

Args: open_browser: Automatically open the Schwab login URL in your desktop browser when client URL-mode elicitation is unavailable (default True). auto_capture: Start a temporary local HTTPS listener to capture the callback automatically (default True). wait_seconds: Optional seconds to wait for browser completion before returning (0-120, default 0).

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": "start_auth"
  }
}

Input Schema

NameRequiredDescriptionDefault
auto_captureNo
open_browserNo
wait_secondsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the annotations, it discloses concrete side effects: opening a desktop browser, spinning up a temporary local HTTPS listener, and waiting up to 120 seconds. It also surfaces a security property the annotations cannot express — that credentials never enter LLM context. Return behavior is covered by the output schema, so the remaining gap is minor.

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?

The opening sentence front-loads the core action, and the args block mirrors the three parameters cleanly. Some phrasing is promotional ('directly from your AI agent') and the elicitation explanation is dense, but nothing is genuinely redundant.

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?

For a three-optional-parameter auth-starter with an output schema, an agent has enough to invoke it and to understand the fallback path. The one thing left implicit is the expected sequence with `get_auth_status`/`complete_auth` after this call returns.

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?

Schema description coverage is 0%, so the description carries the burden and largely does it: each of the three args gets meaning and default, plus the `wait_seconds` range (0-120) which is absent from the schema. It could say more about the tradeoff of raising `wait_seconds` or when to disable `auto_capture`.

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?

States a specific verb and resource ('Start Charles Schwab OAuth 2.0 login') plus the execution mode ('Mode 2 local flow'), and names `complete_auth` as the manual fallback path. An agent can distinguish this from `complete_auth` and `get_auth_status` without opening a schema.

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

Usage Guidelines4/5

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

Explains the primary path (URL-mode elicitation) and the two fallbacks (local HTTPS loopback capture, manual URL paste via `complete_auth`), including the condition that triggers each. It stops short of an explicit 'call this first, then poll/complete' ordering statement, so it is strong but not fully prescriptive.

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