Skip to main content
Glama

sodax_get_solver_quote

Read-only

Retrieve a cross-chain swap quote from SODAX solver on Sonic hub. Specify source and destination token addresses, amount, and quote type to get either input or output amount.

Instructions

Get a swap quote from the SODAX solver. IMPORTANT: tokenSrc/tokenDst must be hub-chain asset addresses — the SODAX hub is Sonic (chainId 146); spoke-chain token addresses are rejected with 'not compatible with the quote service'. Call sodax_get_solver_oracle with chainId='146' to look up valid token addresses. quote_type='exact_input' quotes the destination amount you'd receive; 'exact_output' quotes the source amount you'd need to supply. Returns 'No path found' if the solver can't route between the tokens.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tokenSrcYesREQUIRED: Source token address (the token you're spending). Must be a hub-chain asset address (chainId 146) — look one up via sodax_get_solver_oracle.
tokenDstYesREQUIRED: Destination token address (the token you want to receive). Must be a hub-chain asset address (chainId 146) — look one up via sodax_get_solver_oracle.
amountYesREQUIRED: Amount in the smallest unit of the input token (for exact_input) or output token (for exact_output). String to preserve precision.
quoteTypeNo'exact_input' (default): given input amount, quote output amount. 'exact_output': given output amount, quote input amount required.exact_input
formatNoResponse format: 'json' for raw data or 'markdown' for formatted textmarkdown
Behavior5/5

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

Beyond annotations (readOnlyHint, destructiveHint), the description adds critical behavioral details: token address rejection with specific error message, the need to use hub-chain addresses, and the return of 'No path found' for failed routing. This significantly aids agent decision-making.

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 concise, uses bold 'IMPORTANT' to highlight critical details, and front-loads the purpose. Every sentence contributes meaningful information without redundancy.

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?

The description covers the tool's purpose, token address constraints, quote type meanings, and error behavior. It references a complementary tool (sodax_get_solver_oracle) for context. Given the absence of an output schema, it explains possible return values. Minor omission: no mention of the 'format' parameter, but it is optional with a default.

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 100%, so the description adds value by explaining tokenSrc/tokenDst address constraints and the meaning of quoteType. It provides context beyond the schema, such as the importance of using addresses from sodax_get_solver_oracle.

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 'Get a swap quote from the SODAX solver,' specifying the verb and resource. It distinguishes this tool from siblings by focusing on solver quotes and highlighting constraints unique to this tool.

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 explains when to use the tool (to obtain a swap quote) and provides important prerequisites: token addresses must be hub-chain assets on chainId 146, and it directs users to sodax_get_solver_oracle for valid addresses. It also clarifies the two quote types. While it doesn't explicitly state when not to use it, the guidance is clear for common use cases.

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/gosodax/builders-sodax-mcp-server'

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