Skip to main content
Glama

build_toggle_affiliate_transaction

Build a transaction to activate or deactivate an affiliate, specifying the affiliate code, new active status, and owner wallet. Requires protocol admin signature.

Instructions

[REQUIRES BAOZI_LIVE=1] ADMIN ONLY: Build transaction to activate/deactivate affiliate. Requires protocol admin signature.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesAffiliate code
activeYesNew active status
user_walletYesOwner wallet
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It discloses that this is an admin-only operation requiring a protocol admin signature and a specific environment flag, which are important context. It doesn't detail the transaction's contents or side effects, but as a transaction builder, this is acceptable for the agent to proceed.

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. It places the critical environment requirement in brackets at the start, followed by the admin-only designation and the core purpose. There is no wasted wording.

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?

The tool has no output schema and no annotations, but the description covers the essential conditions (admin, signature, environment flag) and the action. It does not explain what the returned transaction looks like or how it should be used, but given the simplicity of the inputs and the consistency of sibling transaction builders, the description is minimally adequate.

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 provides 100% description coverage for all three parameters (code, active, user_wallet). The description adds no further parameter-level meaning beyond what the schema already states, so the baseline 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 clearly states the tool's function: building a transaction to activate or deactivate an affiliate. The verb 'build' and the resource 'transaction to activate/deactivate affiliate' are specific and unambiguous, distinguishing it from sibling build_*_transaction tools that handle different actions like voting, whitelisting, or market creation.

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 provides crucial usage prerequisites: it requires BAOZI_LIVE=1 and admin access, and it explicitly notes the need for a protocol admin signature. While it doesn't explicitly list alternatives or when-not-to-use conditions, the purpose is specific enough that the intended context is clear.

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