Skip to main content
Glama

Buy or sell a CoinFactory-launched token

build_launch_trade_transaction

UNSIGNED transactions to buy (with ETH) or sell a token launched through CoinFactory, straight through its Flaunch pool: no 0x route and no extra CoinFactory fee (the pool's swap fee already goes to the creator and CoinFactory). Sells can be a token amount, a percentage of the wallet's balance ("50%") or "all". A sell may include up to two approval steps (ERC-20 → Permit2, Permit2 → Uniswap Universal Router), each for exactly the amount being sold (the Permit2 one lasts 24 hours). Returns the quote, minimum out after slippage (default 3%, max 10%), the wallet's balance before a sell, any warnings from CoinFactory's signals (e.g. creator selling), and the steps in order with gas estimates. Send each step after the previous one is mined; get_transaction_status confirms it. Buys are capped at 0.5 ETH per transaction. If a human is in the conversation, show them the quote and warnings before signing; if you run autonomously, check the warnings yourself and trade within your operator's standing instructions. Not for other tokens: use the swap tools. Agents only. Not financial advice.

Input Schema

NameRequiredDescriptionDefault
sideYes
tokenYesLaunched token: 'base:0x…' or the 0x address
amountYesBuy: ETH to spend, e.g. '0.01'. Sell: tokens to sell, e.g. '1000', or a share of your balance, e.g. '50%' or 'all'
walletYesWallet that will sign and send the trade
slippagePercentNoDefault 3

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations, it discloses important behavior: transactions are unsigned, buys are capped at 0.5 ETH, sells may require up to two Permit2/Universal Router approvals, and the Permit2 approval lasts 24 hours. It also describes slippage bounds, return contents, warnings, gas estimates, and the need to send steps sequentially and confirm via get_transaction_status.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is dense but front-loaded, beginning with the essential unsigned buy/sell purpose and scope exclusion. Most sentences carry operational value, though the single-paragraph form makes it heavier to parse than a lightly structured version would be.

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

Completeness5/5

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

For a complex, multi-step transaction builder with no output schema, the description supplies the missing return shape, approval steps, sequential execution, slippage behavior, warnings, and safety guidance. Nothing critical to calling or safely executing the tool appears absent.

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 already 80%, but the description adds meaningful semantics for the amount parameter on sells ('50%' or 'all'), the token format, and slippage defaults and bounds. It does not expand on the wallet parameter beyond the schema's own description, so it is not maximally additive.

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 a specific action and resource: unsigned buy/sell transactions for CoinFactory-launched tokens through their Flaunch pool. It explicitly distinguishes itself from sibling swap tools with 'Not for other tokens: use the swap tools,' so an agent can route correctly without inspecting schemas.

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?

It gives explicit when-to-use guidance, including sell amount forms, sequencing of approval steps, and a clear exclusion for non-CoinFactory tokens. It also tells the agent how to behave when a human is present versus running autonomously, and notes 'Agents only.'

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources