Skip to main content
Glama

build_cancel_race_transaction

Cancel a race market by building a transaction that lets all bettors claim refunds after cancellation.

Instructions

[REQUIRES BAOZI_LIVE=1] Build transaction to cancel a race market. All bettors can claim refunds after cancellation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
reasonYesReason for cancellation
race_marketYesRace market public key
authority_walletYesAuthority wallet (creator or admin)
Behavior3/5

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

With no annotations provided, the description carries the burden of behavioral disclosure. It does reveal a notable side effect (all bettors can claim refunds), and the requirement flag adds context. But it does not mention permissions, reversibility, or what the transaction actually does beyond cancellation, leaving gaps in transparency.

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, focused sentence with a clear precondition and behavior. It is front-loaded with the requirement flag and avoids any filler. Every part earns its place.

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 simple transaction builder with three parameters and no output schema, the description is mostly sufficient. It explains the core action and a key consequence. However, it does not differentiate from sibling tools like build_cancel_market_transaction or build_close_race_market_transaction, which could lead to confusion in a tool-rich context.

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%, with each parameter (race_market, reason, authority_wallet) already described in the schema. The description adds no parameter-specific nuances beyond what the schema provides, so the baseline score of 3 applies.

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 explicitly states 'Build transaction to cancel a race market', which is a specific verb+resource combination. It distinguishes itself from sibling tools like build_cancel_market_transaction by specifying 'race market', and from build_close_race_market_transaction by using 'cancel' rather than 'close'. The additional clause 'All bettors can claim refunds after cancellation' reinforces the purpose.

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?

The description gives a clear prerequisite ('REQUIRES BAOZI_LIVE=1') and explains the consequence (bettors can claim refunds), which helps an agent decide when to use this tool. However, it does not explicitly compare with alternatives or state when not to use it, so it lacks an explicit exclusion.

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