Skip to main content
Glama
nexosdata

kalshi-mcp-server

by nexosdata

kalshi_fee_calculator

Calculates Kalshi exchange taker fees under CFTC Rule 40.2 and solves closed-form breakeven prices for cross-venue arbitrage pairs, helping traders compare costs and target net ROI.

Instructions

Calculates CFTC Rule 40.2 exchange taker fees for Kalshi contracts and solves closed-form quadratic breakeven prices for cross-venue arbitrage pairs.

Input Schema

NameRequiredDescriptionDefault
priceNoKalshi contract price in cents (e.g. 52 for 52¢) or dollars (e.g. 0.52).
contractsNoNumber of binary event contracts to trade (default: 100).
primary_priceNoOptional counterpart leg price (e.g. Polymarket YES price in cents or dollars) to solve for the maximum Kalshi NO price that satisfies the target net ROI.
target_roi_pctNoTarget net return on investment percentage required after all exchange fees (default: 0.0%).
primary_fee_centsNoPrimary venue execution fee/gas in cents (default: 0.8¢ for Polygon PoS gas).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It usefully discloses the fee rule (CFTC Rule 40.2) and the closed-form quadratic breakeven method, but it does not state whether the tool is purely computational, what assumptions apply, or how errors or edge cases are handled.

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 a single, front-loaded sentence with no wasted clauses. It combines two related capabilities efficiently and avoids repetition of schema details.

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

Completeness3/5

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

For a five-parameter calculator with no annotations and no output schema, the description explains the broad purpose but not the shape or meaning of the returned results. The rich schema compensates for parameter documentation, but the description still leaves behavioral and output expectations partially inferred.

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 description coverage is 100%, so all five parameters are already well documented in the schema. The description adds context about Kalshi contracts and arbitrage pairs but does not add parameter-level meaning beyond what the schema provides, making the baseline 3 appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource: calculating Kalshi exchange taker fees under CFTC Rule 40.2, plus solving breakeven prices for cross-venue arbitrage. This is clear enough to distinguish from an orderbook or market-search sibling, but it does not explicitly name or contrast against any sibling tool.

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

Usage Guidelines2/5

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

The description implies the calculator is for fee and breakeven calculations, but it gives no explicit when-to-use guidance, prerequisites, or alternatives. An agent must infer the context from the functionality alone.

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