Skip to main content
Glama
schwab-mcp

schwab-mcp

by HGZ-20

Build OCC Option Symbol

build_option_symbol
Read-onlyIdempotent

Builds the 21-character OCC option symbol Charles Schwab requires from an underlying ticker, expiration date, contract type, and strike price.

Instructions

Build a 21-character OCC option symbol required by Charles Schwab.

Args: underlying: Underlying ticker (e.g. 'AAPL', 'SPY'). expiration: Expiration date in 'YYYY-MM-DD' or 'YYMMDD' format. contract_type: 'CALL' (or 'C') or 'PUT' (or 'P'). strike: Option strike price (e.g. 200.0 or 182.5).

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": {
      "underlying": "<underlying>",
      "expiration": "<expiration>",
      "contract_type": "<contract_type>",
      "strike": "<strike>"
    },
    "name": "build_option_symbol"
  }
}

Input Schema

NameRequiredDescriptionDefault
strikeYes
expirationYes
underlyingYes
contract_typeYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and a closed-world scope, so the safety profile is covered. The description adds that the result is exactly 21 characters and Schwab-specific, but says nothing about error behavior for malformed dates or invalid contract types, or the exact output string shape.

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 lead sentence stating purpose and output length, followed by a compact per-argument list. Nothing is padded and the most decision-relevant fact (21-character OCC symbol) is front-loaded.

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?

With an output schema present, return-value explanation is unnecessary, and all four required parameters are documented with formats despite 0% schema coverage. The remaining gap is behavioral: no guidance on validation failures or on where the produced symbol should be consumed.

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 coverage is 0% and the schema has no enums or descriptions, so the description carries the full load: it names each parameter and supplies concrete formats ('YYYY-MM-DD' or 'YYMMDD'), accepted contract type spellings ('CALL'/'C'/'PUT'/'P') and strike examples. It stops short of constraints the agent might hit, such as how fractional strikes are encoded or what happens on invalid input.

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 (build an OCC option symbol) plus distinguishing attributes: 21 characters and 'required by Charles Schwab'. An agent can immediately tell this is a formatting helper, not a market-data or order tool, so no sibling confusion arises.

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: the phrase 'required by Charles Schwab' hints that this is a prerequisite for order placement, but it never says when to call this versus get_option_chain/get_option_expirations or that its output feeds order tools. No explicit when-not conditions are given.

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