Skip to main content
Glama

kalshi_markets_history

Read-only

Fetch normalized candlestick data for up to 25 Kalshi market tickers in one request. Choose this batch tool to compare several markets over the requested interval; use kalshi_market_history for one ticker. include_latest_before_start controls whether a candle just before the interval is included.

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": {
      "market_tickers": "<market_tickers>"
    },
    "name": "kalshi_markets_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
end_tsNoUnix end timestamp in seconds.
start_tsNoUnix start timestamp in seconds.
market_tickersYesKalshi market tickers.
period_intervalNoCandlestick interval in minutes.
include_latest_before_startNoInclude the latest candle before start_ts when supported upstream.

Output Schema

NameRequiredDescriptionDefault
dataYesThe tool result payload (shape varies per tool; see each tool's docs resource).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety is covered; the description adds the batch-size ceiling and characterizes the return as 'normalized' candlestick data. It also flags the conditional behavior of include_latest_before_start ('when supported upstream' is schema-side). It stops short of saying what happens if more than 25 tickers are supplied or how partial failures are reported, which is the main remaining behavioral gap.

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?

Three short sentences, front-loaded with the resource and scope, then the routing guidance, then the one non-obvious flag. No filler and nothing repeated.

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 and annotations covering the safety profile, the description needs only purpose, routing, and batch limits, all of which it supplies. Slightly incomplete on edge behavior (over-limit ticker lists, interval defaults) but adequate for correct invocation.

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

Parameters3/5

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

Schema coverage is 100%, so all five parameters are already documented in structured form; the description only paraphrases include_latest_before_start as 'a candle just before the interval,' which is essentially a restatement of the schema text. No added syntax, format, or default guidance for start_ts/end_ts/period_interval. Baseline 3 is correct when the schema does the heavy lifting.

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 ('Fetch normalized candlestick data') plus a concrete scope ('up to 25 Kalshi market tickers in one request'). The batch nature and the 25-ticker cap are explicit, and the sibling it contrasts with is named, so an agent can distinguish it from kalshi_market_history without opening either schema.

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

Usage Guidelines5/5

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

Gives explicit positive routing ('Choose this batch tool to compare several markets over the requested interval') and an explicit alternative with its condition ('use kalshi_market_history for one ticker'). When-to-use, when-to-use-something-else, and the alternative are all present.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.