Skip to main content
Glama
SakethSripada

KalTrader MCP

kalshi_stream_collect

Capture a short sample of Kalshi WebSocket messages to inspect live order book changes, trades, or account fills. Connects for a specified duration, listens, then disconnects.

Instructions

Watch Kalshi's WebSocket feed for a few seconds and return the messages that arrive. Useful for seeing live order book changes, trades, or your own fills as they happen. This is a one-shot capture, not an ongoing subscription: it connects, listens for the window you ask for, then disconnects.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
channelsYesChannels to subscribe to. fill, market_positions, and user_orders cover your own account.
max_messagesNo
market_tickersNoMarkets to watch. Required for orderbook_delta and ticker.
duration_secondsNo
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses the one-shot nature, the connect-list-disconnect lifecycle, and that it returns messages. This is useful behavioral context. It does not mention authentication requirements, message format, or behavior when no messages arrive, but for a read-only stream capture the core behavior is well covered.

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?

The description is two sentences, immediately states the core function, and avoids any filler. It front-loads the verb and resource, then adds scope and behavioral nuance without bloat. Every sentence earns its place.

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 WebSocket stream tool with 4 parameters and no output schema, the description covers the essential context: what it captures, that it is one-shot, and the time-boxed nature. It does not detail parameter interactions (e.g., max_messages vs duration, required channels for orderbook_delta), but the schema partially covers this. Overall, it is sufficiently informative for an agent to understand the tool's role and basic usage.

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

Parameters2/5

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

Schema description coverage is only 50%; channels and market_tickers have descriptions, but max_messages and duration_seconds do not. The description adds only an indirect hint with 'for the window you ask for' (referring to duration) and 'few seconds.' It fails to explain the interplay between max_messages and duration_seconds, or which channels require market_tickers. This is a significant gap for a 4-parameter tool.

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?

The description clearly states a specific action: 'Watch Kalshi's WebSocket feed... and return the messages that arrive.' It identifies the resource (WebSocket feed) and distinguishes itself from sibling REST tools by emphasizing real-time streaming and one-shot capture. The phrase 'not an ongoing subscription' further clarifies its unique scope.

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?

It provides a clear use case: 'Useful for seeing live order book changes, trades, or your own fills as they happen.' It also states when not to use it (for ongoing subscriptions), implying for persistent streaming you should look elsewhere. However, it does not explicitly name alternative tools like get_market_orderbook or get_trades for historical/snapshot needs, so some guidance is implicit rather than explicit.

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

Install Server

Other Tools

Latest Blog Posts

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/SakethSripada/KalTraderMCP'

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