Skip to main content
Glama
dataline-xyz

Dataline MCP Server

Official
by dataline-xyz

get_odds_event_orderbook

Retrieve raw bid and ask levels for a prediction market outcome to compute mid price and implied probability. Provide either a Kalshi or Polymarket market ID.

Instructions

Get the raw orderbook (bids and asks) for a specific prediction market outcome. Provide either kalshi_market_id OR polymarket_market_id (not both, at least one required). Returns raw bid/ask levels — use the best bid and ask to compute mid price and implied probability.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kalshi_market_idNoKalshi market identifier
polymarket_market_idNoPolymarket market ID (condition ID or token ID)
Behavior4/5

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

With no annotations, the description clearly indicates a read operation and specifies that it returns raw bid/ask levels. It adds context on how to use the output (compute mid price). No contradictions present.

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?

Two sentences: first states purpose, second gives parameter usage and output. No fluff, 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?

Given no output schema, the description covers required parameters and output nature. It lacks details on bid/ask structure but is sufficient for a simple retrieval tool.

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?

Schemas already describe parameters (100% coverage). The description adds the mutual exclusivity constraint and requirement, which is valuable beyond schema.

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 'Get the raw orderbook (bids and asks)' with a specific resource 'for a specific prediction market outcome', distinguishing it from sibling tools like get_price or get_prediction_market_quote.

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?

The description explicitly states that either kalshi_market_id or polymarket_market_id is required but not both, providing clear usage constraint. However, it does not contrast with sibling tools or suggest when to use orderbook vs price/quote.

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/dataline-xyz/dataline-mcps'

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