Skip to main content
Glama

build_create_lab_market_transaction

Builds an unsigned transaction to create a Lab market on Solana prediction markets, validating that the market type and required timing (event time or measurement start) are provided.

Instructions

[REQUIRES BAOZI_LIVE=1] Build unsigned transaction to create a Lab (community) market. Validates against v7.2 rules. IMPORTANT: You MUST provide market_type and the corresponding timing field (event_time for Type A, measurement_start for Type B). Without these, creation will be BLOCKED.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
questionYesMarket question (max 200 chars)
event_timeNoISO 8601 event time — REQUIRED for Type A. Betting must close 24h+ before this.
invite_hashNoOptional 64-char hex for invite links
market_typeYesREQUIRED: "event" (Type A — outcome at scheduled moment) or "measurement" (Type B — data over period)
closing_timeYesISO 8601 when betting closes
creator_walletYesCreator wallet public key
resolution_timeNoISO 8601 when market can be resolved (optional)
measurement_startNoISO 8601 measurement start — REQUIRED for Type B. Betting must close BEFORE this.
Behavior5/5

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

With no annotations provided, the description carries full behavioral burden and discloses that the tool builds unsigned transactions, validates against v7.2 rules, and blocks creation when required fields are missing. This is rich context that helps the agent understand side effects and failure modes.

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 three sentences long, front-loaded with the critical requirement, and every sentence adds value. No filler or redundancy.

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?

For a transaction builder with no output schema, the description covers the essential purpose, key constraints, and validation behavior. A minor gap is that it does not explicitly describe the format of the returned unsigned transaction, but 'Build unsigned transaction' makes this implicit.

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?

The input schema already provides 100% description coverage for all eight parameters, including the conditional requirement for event_time (Type A) and measurement_start (Type B). The description reiterates these requirements but does not add new parameter-level meaning beyond emphasizing the importance of the market_type/timing relationship.

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 clearly states the tool's function: 'Build unsigned transaction to create a Lab (community) market,' using a specific verb and resource. It distinguishes itself from sibling market creation tools by explicitly mentioning 'Lab (community)' and by noting v7.2 rule validation.

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 provides a clear prerequisite (BAOZI_LIVE=1) and mandatory combination of market_type with the corresponding timing field, which are essential usage conditions. However, it does not explicitly contrast with alternative market creation tools (e.g., private or race markets), though the 'Lab' label implies the intended scope.

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