Skip to main content
Glama
XCP
by XCP

compose_dispenser

Compose a transaction that creates, opens, or closes a dispenser to automatically sell tokens for BTC.

Instructions

Compose a transaction to create, open, or close a dispenser. Dispensers automatically sell tokens for BTC.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
assetYesAsset to dispense
statusNo0=open, 10=close
addressYesSource Bitcoin address
inputs_setNoComma-separated UTXOs to use as inputs (txid:vout)
open_addressNoOpen dispenser on a different address
give_quantityYesRaw integer amount of asset per dispense. For divisible: human amount * 10^8. Use 0 when closing.
mainchainrateYesBTC price per dispense (in satoshis). Use 0 when closing.
sat_per_vbyteNoFee rate in satoshis per virtual byte (e.g. 1, 5.5, 0.15). Check get_fee_estimate for current market rates.
escrow_quantityYesRaw integer total amount to load into dispenser. For divisible: human amount * 10^8. Use 0 when closing.
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, and the description adds that it 'Compose a transaction' and that dispensers automatically sell tokens for BTC. However, it does not disclose return format, broadcasting requirements, or side effects beyond composition.

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 two sentences, front-loaded with the main purpose and a contextual note. Every word earns its place; no redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 9 parameters and no output schema, the description lacks guidance on how to compose for different statuses (open vs close), return value expectations, or prerequisites. The schema covers parameter meanings, but overall contextual completeness is limited.

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 of the 9 parameters having a description. The tool description does not add parameter-specific semantics but the schema provides sufficient detail, 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 states 'Compose a transaction to create, open, or close a dispenser,' which clearly identifies the tool's function and scope. It distinguishes itself from sibling composition tools by specifically targeting dispensers and listing the three operations.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage for creating, opening, or closing dispensers but does not explicitly compare with alternatives like compose_dispense or mention when not to use it. No exclusion or alternative guidance is provided, so the agent must infer from the tool name.

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/XCP/mcp-server'

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