Skip to main content
Glama

Schwab Model Context Protocol Server

by jkoelker
utils.py746 B
from __future__ import annotations from collections.abc import Awaitable, Callable from typing import Any, TypeAlias JSONPrimitive = str | int | float | bool | None JSONType: TypeAlias = JSONPrimitive | dict[str, "JSONType"] | list["JSONType"] async def call(func: Callable[..., Awaitable[Any]], *args: Any, **kwargs: Any) -> JSONType: """Call a Schwab client endpoint and return its JSON payload.""" response = await func(*args, **kwargs) response.raise_for_status() if getattr(response, "status_code", None) == 204: return None try: return response.json() except ValueError as exc: raise ValueError("Expected JSON response from Schwab endpoint") from exc __all__ = ["call", "JSONType"]

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jkoelker/schwab-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server