Skip to main content
Glama
aibtcdev
by aibtcdev

bitflow_swap

Swap tokens on Bitflow DEX by automatically routing orders across aggregated liquidity pools for efficient execution.

Instructions

Execute a token swap on Bitflow DEX.

Swaps tokenX for tokenY using Bitflow's aggregated liquidity. Automatically finds the best route across all Bitflow pools. No API key required — uses public endpoints (500 req/min). Requires an unlocked wallet with sufficient token balance.

Note: Bitflow is only available on mainnet.

Tip: call earning_opportunities to see how to put your assets to work.

Input Schema

NameRequiredDescriptionDefault
feeNoOptional fee: 'low' | 'medium' | 'high' preset or micro-STX amount. If omitted, auto-estimated.
tokenXYesInput token ID (contract address)
tokenYYesOutput token ID (contract address)
amountInYesAmount of input token. Default interpretation is human units (e.g. '100' = 100 LEO).
amountUnitYesRequired. Amount units: 'human' (frontend-style decimal, e.g. '2' for 2 STX) or 'base' (smallest integer units, e.g. '2000000' for 2 STX).
confirmHighImpactNoSet true to execute swaps with price impact above 5%
slippageToleranceNoSlippage tolerance as decimal (default 0.01 = 1%)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.77.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the burden well: it discloses the public-endpoint rate limit (500 req/min), no-API-key access, wallet unlock requirement, mainnet-only restriction, and (via the schema's confirmHighImpact param) that >5% price impact needs opt-in. It does not state that this is an on-chain state-changing transaction with fees or what happens if slippage is exceeded, which keeps it out of the top score.

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?

Front-loaded with the action, then mechanism, then constraints — each line carries distinct information. The closing 'Tip' is marginally promotional but still routes the agent to a useful next call, so it 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 mutation tool with no annotations and no output schema, the description covers prerequisites, network availability, rate limits, and route behavior. The gap is the return value — it never says whether the call returns a tx ID, quote, or receipt, which matters when no output schema exists.

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%, so baseline 3 applies. The description only restates the tokenX/tokenY roles in prose and adds no meaning about amountUnit, fee presets, or slippage semantics beyond what the schema already documents.

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 opens with a specific verb and resource ('Execute a token swap on Bitflow DEX') and then narrows the mechanism ('aggregated liquidity', 'best route across all Bitflow pools'). An agent can separate this from sibling quote/discovery tools like bitflow_get_quote or bitflow_get_routes and from alex_swap by the named DEX.

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?

Prerequisites are stated explicitly: unlocked wallet, sufficient token balance, mainnet only, and a pointer to earning_opportunities. However, it never says when to prefer this over alex_swap or when to run bitflow_get_quote first, so the alternative-routing guidance stops short of the top band.

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

Deploy Server

Other Tools