Skip to main content
Glama

preview_create_market

Preview Solana prediction market creation: validate parameters and show costs without building the transaction. For lab markets, include market_type and timing fields.

Instructions

Preview market creation - validates params and shows costs WITHOUT building transaction. Use before build_create_market_transaction. IMPORTANT: For Lab markets, you MUST provide market_type and the corresponding timing field.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
layerYesMarket layer (lab=community, private=invite-only)
questionYesMarket question (max 200 chars)
event_timeNoISO 8601 event time — REQUIRED for Type A markets
market_typeYesREQUIRED for Lab: "event" (Type A) or "measurement" (Type B)
closing_timeYesISO 8601 when betting closes
measurement_endNoISO 8601 measurement end (optional)
resolution_timeNoISO 8601 when market can be resolved (optional, auto-calculated)
measurement_startNoISO 8601 measurement start — REQUIRED for Type B markets
Behavior4/5

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

With no annotations, the description carries the transparency burden. It clearly states the tool does NOT build a transaction, implying non-mutating behavior, and that it validates parameters. This is valuable behavioral insight, though it could also mention error handling or return details.

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 total: first states purpose and behavior, second gives usage direction. The critical Lab market constraint is highlighted with 'IMPORTANT.' No wasted words; all information is essential.

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 the tool's simplicity and the presence of a detailed schema, the description covers the key usage and behavioral aspects. It does not describe the output format (e.g., cost breakdown, validation errors), but as a preview tool this might be inferable. The Lab market note adds necessary complexity awareness.

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%, but the description adds a cross-parameter rule tying market_type to the corresponding timing field, which is not explicitly stated in any single parameter description. This extra guidance helps disambiguate the conditional requirements for Lab markets.

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 'Preview market creation' with a specific verb and resource, then clarifies 'validates params and shows costs WITHOUT building transaction,' which clearly distinguishes it from the many build_* sibling tools. It also explicitly references build_create_market_transaction as the follow-up, reinforcing its unique role.

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 advises 'Use before build_create_market_transaction,' giving direct sequential context. The IMPORTANT note about Lab markets ('you MUST provide market_type and the corresponding timing field') offers concrete when-to-use guidance beyond generic descriptions.

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/bolivian-peru/baozi-mcp'

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