Skip to main content
Glama
aibtcdev
by aibtcdev

alex_get_swap_quote

Retrieve a swap quote from ALEX DEX to determine the expected output amount for swapping one token to another using full contract IDs on mainnet.

Instructions

Get a swap quote from ALEX DEX.

Returns the expected output amount for swapping tokenX to tokenY. Use full contract IDs for tokens (e.g., 'SP102V8P0F7JX67ARQ77WEA3D3CFB5XW39REDT0AM.token-wstx-v2').

Note: ALEX DEX is only available on mainnet.

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

Input Schema

NameRequiredDescriptionDefault
tokenXYesInput token contract ID
tokenYYesOutput token contract ID
amountInYesAmount of tokenX to swap (in smallest units)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.77.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It discloses mainnet-only availability and the expected-output return, but does not state that it is read-only / does not execute a swap, nor does it cover quote expiry, fees, slippage, auth needs, or rate limits.

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 compact and front-loaded with the core purpose and return value. The mainnet note earns its place; the earning_opportunities tip is slightly tangential but not disruptive.

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?

For a three-parameter quote tool with no annotations and no output schema, it covers purpose and availability but underspecifies the return structure and quote behavior. Details such as output fields, fees, route, and quote validity are missing.

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 description coverage is 100%, so the baseline is 3. The description adds useful meaning beyond the schema by specifying full contract IDs for tokens and giving a concrete example, though amountIn units remain documented only in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: 'Get a swap quote from ALEX DEX' and explains it returns the expected output amount for swapping tokenX to tokenY. Clear, but it does not explicitly contrast itself with sibling tools such as alex_swap or other quote tools.

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?

Mentions mainnet-only availability and implies use before a swap, but never states when to choose this over alex_swap, bitflow_get_quote, or pillar_direct_quote. The earning_opportunities tip is tangential and not usage guidance for this tool.

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