Skip to main content
Glama

prediction.polymarket_fee_estimate

Read-only

Polymarket's own taker fee (NOT gas, slippage, or AlphaPipeline's own charge) for a hypothetical fill of shares at price, using the official bell-curve formula shares * fee_rate * price * (1 - price). fee_rate is read live from Polymarket's own GET /fee-rate for the exact token_id - never hardcoded, since per-category rates have changed before. Makers pay 0 across every category - this is the taker fee only. Omit price to use the live best book quote for side. Accepts either a raw token_id or a market_slug (+ outcome) to resolve it automatically. Paid in USDC on Base.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sideNo"sell" (default) or "buy" - which side of the book to read price from when price is omitted.
priceNoHypothetical fill price (0-1 exclusive). Omit to use the live best book quote for side.
sharesYesHypothetical fill size, in shares. Must be > 0.
outcomeNo"yes" (default) or "no" - which side to resolve when using market_slug.
token_idNoThe outcome's CLOB token_id / asset_id, if already known.
market_slugNoExact Polymarket market slug, used to resolve token_id automatically.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
priceYes
noticeNo
sharesYes
fee_usdYes
fee_rateYes
token_idYes
base_fee_bpYes
data_sourceYes
market_slugNo
generated_atYes
price_sourceYes
book_snapshot_timeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the readOnly/destructive annotations: it discloses that fee_rate is read live from Polymarket's GET /fee-rate per token_id and never hardcoded, that maker fees are zero across categories, and that settlement is in USDC on Base. These are exactly the operational traits an agent needs that the annotations cannot convey.

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?

The fee-source disclaimer and the formula are front-loaded, and each sentence carries content (formula, live-rate sourcing, maker exclusion, price fallback, id resolution, denomination). It is dense but not padded; slightly more compact than ideal but no filler sentences.

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, so return values need not be described, and annotations already carry the safety profile. Given a read-only 6-param estimator, the description supplies everything else — formula, data source, fallback behavior, id resolution path, and currency — so nothing essential is missing.

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 100%, so the baseline is 3, but the description adds real meaning: price-omission falls back to the live best book quote for side, and token_id can be supplied raw or resolved from market_slug + outcome. Those are behavioral semantics coordinating multiple parameters, above what the schema states individually.

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 (estimate) plus the exact resource (Polymarket's taker fee) and immediately scopes it against adjacent concepts — gas, slippage, and AlphaPipeline's own charge. An agent can tell precisely what quantity this returns 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 Guidelines3/5

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

The 'NOT gas, slippage, or AlphaPipeline's own charge' clause and the 'makers pay 0, taker only' note clarify what the tool computes and excludes, which is useful disambiguation. However, it never routes the agent to a specific sibling (e.g. prediction.exit_capacity_audit or prediction.polymarket_mispricing) or states when this estimate is the right one to call, so usage is implied rather than prescribed.

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.