Skip to main content
Glama
warengonzaga

Relay Protocol MCP Server

by warengonzaga

relay_get_quote

Get an executable quote for bridging tokens between chains or swapping within a chain. Specify token contract addresses (not symbols), chain IDs, and amount in smallest units to view exact output or input amounts.

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)
Behavior3/5

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

No annotations are provided, so the description carries the burden. It explains the tool returns an executable quote and covers token/amount formats, but does not disclose side effects, auth needs, or safety (e.g., read-only nature is implied but not stated). The description adds context but falls short of full behavioral transparency.

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 well-structured with a clear main sentence, followed by examples and bullet points. It is front-loaded and each part serves a purpose. Could be slightly more concise in the examples section, but overall efficient.

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?

Given the tool's complexity (cross-chain bridging, 8 parameters), the description covers purpose, format rules, examples, and trade types. It lacks details on what the quote includes (e.g., fees, slippage), but is otherwise complete for a quote retrieval tool.

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?

The input schema has 100% coverage, so baseline is 3. The description adds value by providing examples, clarifying token and amount formats in smallest units, and explaining tradeType enum values. This goes beyond the schema's property descriptions.

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 gets an executable quote for bridging or swapping tokens. It uses specific verb 'Get an executable quote' and distinguishes from siblings by mentioning cross-chain and same-chain scenarios, and references relay_get_currencies for token addresses.

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 provides explicit usage guidance: always use contract addresses, use relay_get_currencies to find addresses, and gives common examples. However, it does not explicitly state when not to use this tool or suggest alternatives for different tasks.

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