Skip to main content
Glama
warengonzaga

Relay Protocol MCP Server

by warengonzaga

relay_get_quote

Get executable quotes for bridging tokens between blockchain networks or swapping tokens within the same chain using contract addresses.

Instructions

Get an executable quote for bridging tokens between chains or swapping within a chain. Always use TOKEN CONTRACT ADDRESSES, not symbols. Use relay_get_currencies to find token addresses.

Common Examples: • Bridge USDC Ethereum→Optimism: user="0x123...", originChainId=1, destinationChainId=10, originCurrency="0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", destinationCurrency="0x0b2c639c533813f4aa9d7837caf62653d097ff85", amount="1000000", tradeType="EXACT_INPUT" • Bridge USDC Ethereum→Base: originChainId=1, destinationChainId=8453, destinationCurrency="0x833589fcd6edb6e08f4c7c32d4f71b54bda02913" • Same-chain swap on Ethereum: originChainId=1, destinationChainId=1, different token addresses

Token Format: Always use contract addresses (checksummed preferred) Amount Format: Smallest unit - "1000000"=1 USDC, "1000000000000000000"=1 ETH

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
userYesUser wallet address
recipientNoRecipient wallet address (defaults to user address)
originChainIdYesSource chain ID (e.g., 1 for Ethereum, 10 for Optimism, 8453 for Base)
destinationChainIdYesDestination chain ID
originCurrencyYesSource token contract address (e.g., "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48" for USDC on Ethereum)
destinationCurrencyYesDestination token contract address (e.g., "0x0b2c639c533813f4aa9d7837caf62653d097ff85" for USDC on Optimism)
amountYesAmount in smallest unit (e.g., "1000000" = 1 USDC with 6 decimals, "1000000000000000000" = 1 ETH)
tradeTypeNoTrade type: EXACT_INPUT (specify input amount), EXACT_OUTPUT (specify exact output), EXPECTED_OUTPUT (expected output)
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It effectively describes key behavioral traits: it's a quote tool (not an execution tool), requires token contract addresses (not symbols), and specifies amount formatting conventions. However, it doesn't mention rate limits, authentication needs, or error conditions, which would be helpful for a tool with 8 parameters.

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 well-structured and front-loaded with the core purpose, followed by critical usage guidelines, practical examples, and formatting rules. Every sentence serves a clear purpose: the first states what the tool does, the second provides key usage rules, the examples demonstrate parameter usage, and the final sections clarify formatting requirements.

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 complex tool with 8 parameters, no annotations, and no output schema, the description does an excellent job covering usage context, parameter semantics, and examples. The main gap is the lack of information about what the quote output contains (since there's no output schema), but given the tool's purpose and the detailed input guidance, this is a minor omission.

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 significant value beyond the schema by providing concrete examples with specific parameter values, clarifying token format requirements ('Always use contract addresses'), and explaining amount formatting conventions. This practical guidance helps users understand how to properly format inputs.

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 the tool's purpose: 'Get an executable quote for bridging tokens between chains or swapping within a chain.' It specifies the exact action (get quote) and resource (tokens), and distinguishes it from sibling tools like relay_get_currencies (which finds token addresses) and relay_swap_multi_input (which likely executes swaps).

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?

The description provides explicit guidance on when to use this tool: 'Always use TOKEN CONTRACT ADDRESSES, not symbols. Use relay_get_currencies to find token addresses.' It names a specific alternative tool (relay_get_currencies) for token address lookup, clearly delineating responsibilities between tools.

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/warengonzaga/relay-protocol-mcp-server'

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