Skip to main content
Glama

get_quotes

Retrieve cross-chain bridge quotes with expected destination amounts, fees, and estimated times. Compare available routes to find a suitable transfer option.

Instructions

Fetch quotes for a cross-chain token bridge transfer using the Stargate API.

This tool retrieves all available bridge routes, including expected destination amounts, fees, estimated times, and transaction steps for each route. It accepts human-readable amounts (floats) and converts them internally using token decimals. If src_address is not provided, it uses the address derived from the PRIVATE_KEY in .env. If dst_address is not provided, it defaults to src_address.

Parameters:
- src_chain_key (str): Source chain key (e.g., 'ethereum').
- dst_chain_key (str): Destination chain key (e.g., 'polygon').
- src_token (str): Source token contract address (e.g., '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48').
- dst_token (str): Destination token contract address.
- src_amount (float): Human-readable amount to bridge (e.g., 1.0 for 1 USDC).
- dst_amount_min (float): Minimum expected destination amount for slippage (human-readable, e.g., 0.99).
- src_address (Optional[str]): Source wallet address (e.g., '0x...'). If omitted, uses address from PRIVATE_KEY.
- dst_address (Optional[str]): Destination wallet address. If omitted, uses src_address.

Returns:
- str: Concise Markdown-formatted string listing all quotes with key details and steps. If no quotes available, returns an error message in Markdown.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dst_tokenYes
src_tokenYes
src_amountNo
dst_addressNo
src_addressNo
dst_chain_keyYes
src_chain_keyYes
dst_amount_minNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description carries full behavioral burden. It discloses important traits: internal decimal conversion for human-readable amounts, default addresses derived from PRIVATE_KEY, and Markdown return format including error cases. These go beyond schema basics, though it omits permission requirements or side-effect statements.

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 detailed but efficiently structured: a one-line summary, then behavioral notes, then a parameter list, then a returns note. Every sentence adds value, and the parameter explanations are necessary given the tool's complexity. No wasted words.

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 input semantics, defaults, output format, and error handling. It assumes valid chain keys and tokens come from sibling tools (list_chains/list_bridgeable_tokens), which is reasonable. The output schema (string) is addressed by noting Markdown formatting, so return value expectations are set without overspecifying.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, and the description fully compensates. Each parameter is explained with format, examples, and defaults: src_chain_key shows 'ethereum', src_amount is described as human-readable with example, and optional addresses include fallback behavior. This provides far more semantic meaning than the bare schema.

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 opening sentence clearly states 'Fetch quotes for a cross-chain token bridge transfer using the Stargate API,' providing a specific verb (fetch), resource (quotes), and context (bridge transfer). This distinguishes it from siblings like bridge_transfer (execution) and list_chains (chain info), so the purpose is unambiguous and differentiated.

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 as a pre-transfer step by describing retrieval of routes and quotes, but it never explicitly contrasts with bridge_transfer or states when not to use it. There is no guidance on alternatives, only implied context that this is the 'quote' stage before execution.

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/kukapay/stargate-bridge-mcp'

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