Skip to main content
Glama
schwab-mcp

schwab-mcp

by HGZ-20

Complete Schwab Authentication

complete_auth

Exchanges a Charles Schwab OAuth callback URL or authorization code to complete login and enable authenticated API access.

Instructions

Complete Charles Schwab OAuth 2.0 login by exchanging a callback URL or authorization code.

Args: callback_url: The full redirected URL from your browser address bar (e.g. 'https://127.0.0.1:8182/?code=...&session=...') or the raw authorization code.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "callback_url": "<callback_url>"
    },
    "name": "complete_auth"
  }
}

Input Schema

NameRequiredDescriptionDefault
callback_urlYes

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=false, idempotentHint=false, destructiveHint=false and openWorldHint=true, so the mutation and non-idempotency profile is covered. The description adds real context by tying the parameter to the browser address bar after a redirect, but it does not say where the resulting token/credentials go, that the code is single-use and short-lived, or what the response contains on success or failure.

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?

Two sentences, front-loaded with the goal and followed by the one argument that matters. The Args block is slightly formal for a single parameter but does not waste words; every clause adds information.

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?

An output schema exists, so return values need not be explained, and the lone parameter is well covered. What is missing is the flow context for a stateful auth step: that start_auth precedes it, that the callback URL comes from a browser the user must complete, and what happens if the exchange is retried.

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 full burden, and it does so well: it explains that callback_url is either the full redirected URL from the browser address bar (with a concrete example including localhost:8182 and the code/session query params) or the raw authorization code. That accepts-two-formats detail is the single most useful thing an agent could be told here and is absent from the 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 and resource: 'Complete Charles Schwab OAuth 2.0 login by exchanging a callback URL or authorization code.' That is concrete enough to distinguish it from the sibling get_auth_status (a read of status) and start_auth (the initiation step). It stops short of naming those siblings, so the distinction is inferable rather than explicit.

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 'Complete' implies this is a later step in a flow, but the description never says start_auth must be called first, nor what to do if the exchange fails or if a code has already been used. Usage is implied by the OAuth context rather than stated, leaving the agent to infer the sequencing.

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