Skip to main content
Glama

Executable all-in quote on one venue

get_executable_quote
Read-only

Walk the current public order book for an all-in cash-sized BUY quote on one exact contract. platform is polymarket or kalshi; market_id is the Polymarket market id or Kalshi ticker returned by search; side is the outcome to buy. Returns best bid/ask, depth-weighted average fill, worst consumed level, shares, estimated taker fee, effective average price, and unfilled cash. The budget includes the fee estimate. Venue-side rounding can vary with actual fills, and this tool does not assert cross-venue contract equivalence. Single venue only; to compare both venues for the same contract use compare_executable_quotes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sideNoOutcome to buy, usually 'Yes' or 'No'Yes
platformYes'polymarket' or 'kalshi'
market_idYesPolymarket market id or Kalshi ticker
amount_usdNoAll-in budget in USD, estimated taker fees included

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / amount_usd / description
      Added value: +"All-in budget in USD, estimated taker fees included"
    • addedInput schema / properties / market_id / description
      Added value: +"Polymarket market id or Kalshi ticker"
    • addedInput schema / properties / platform / description
      Added value: +"'polymarket' or 'kalshi'"
    • addedInput schema / properties / side / description
      Added value: +"Outcome to buy, usually 'Yes' or 'No'"
  2. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only assert readOnly and openWorld, so the description carries the behavioral load and does so well: it details the returned metrics, notes the budget is fee-inclusive, warns that venue-side rounding varies with actual fills, and disclaims cross-venue equivalence. These are non-obvious traits an agent needs before relying on the quote.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the core action and keeps the caveats to short trailing sentences; every clause is informative. Slightly dense, but no filler and the routing hint is well placed at the end.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, yet the description still summarizes the returned fields and flags the rounding/equivalence caveats, covering everything needed to call the tool correctly on a four-parameter, single-venue quote operation.

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 already 100%, so baseline is 3, but the description adds meaning beyond it by qualifying 'side' as the outcome to buy and tying market_id to its origin ('Polymarket market id or Kalshi ticker returned by search'). The amount_usd all-in-with-fees semantics are elaborated on the fee-inclusive budget.

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 ('walk the current public order book for an all-in cash-sized BUY quote on one exact contract') and scopes it to a single venue, cleanly separating it from compare_executable_quotes. An agent can identify the operation and its scope without opening the 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?

Explicitly names the alternative tool and the condition that selects it: 'Single venue only; to compare both venues for the same contract use compare_executable_quotes.' It also clarifies where market_id comes from ('returned by search'), removing ambiguity about input sourcing.

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.