Skip to main content
Glama
PublicDotCom

Public.com MCP Server

Official
by PublicDotCom

preflight_buy_event_contract

Read-only

Prices a DAY limit buy of an event contract without placing the order, returning the limit price used and a preflight cost estimate that includes commission and exchange fees.

Instructions

Price a buy of an event contract (a YES or NO side) without placing it.

Prices a DAY limit buy of the contract. The response holds the limit price used and the preflight estimate, whose estimatedCost includes the commission and exchange fee. Does NOT place an order.

Args: contract_symbol: The contract to buy, from get_event_details, e.g. "KALSHI.KXBTC15M-26OCT201200-00.Y" (".Y" = YES, ".N" = NO). Not the "-EVENTCONTRACT" symbol that get_event_contract_bars takes. quantity: Number of contracts (default "1"); at most 2 decimal places. limit_price: Most to pay per contract, in dollars with whole cents between 0.01 and 0.99 (e.g. "0.55"). If omitted, the contract's current ask is looked up via event_symbol and rounded up to a whole cent. event_symbol: The contract's eventSymbol, e.g. "KALSHI.KXBTC15M-26OCT201200". Required when limit_price is omitted. account_id: Account ID. Optional if PUBLIC_COM_ACCOUNT_ID is set.

Input Schema

NameRequiredDescriptionDefault
quantityNo1
account_idNo
limit_priceNo
event_symbolNo
contract_symbolYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description adds meaningful behavior beyond that: it is a DAY limit buy, the response contains the limit price used and a preflight estimate including commission and exchange fee, and no order is placed. The fallback lookup behavior for limit_price is also disclosed.

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 front-loaded with the core purpose and the no-order guarantee, then provides a compact Args section. Despite being somewhat long, every sentence adds necessary detail given zero schema parameter descriptions.

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?

It is complete for a preflight pricing tool: it explains the operation, the limit-order semantics, the response contents, the no-order guarantee, and every parameter despite the schema having no descriptions. The existence of an output schema means it need not fully detail the return object.

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

Parameters5/5

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

Schema description coverage is 0%, so the description carries the full burden and does so well. It documents all five parameters: contract symbol format and side convention, quantity precision and default, limit price range and fallback behavior, event_symbol dependency when limit_price is omitted, and account_id environment fallback.

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 states a specific verb and resource: price a buy of an event contract on the YES or NO side without placing it. It distinguishes itself from order-placement siblings by explicitly saying it does NOT place an order, and even warns against using the '-EVENTCONTRACT' symbol used by get_event_contract_bars.

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?

It clearly establishes the preflight use case and says no order is placed, which implicitly positions buy_event_contract as the execution alternative. However, it does not explicitly name buy_event_contract or explain exclusions such as when to use preflight_order instead.

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