Skip to main content
Glama

execute_api_call

Call any public Relay API endpoint with full parameters to access advanced features like slippage, fees, and route details not available in dedicated tools.

Instructions

Call any public Relay API endpoint with full parameters and get the raw, unfiltered response.

Use get_api_schema first to discover endpoints and their parameter schemas, then use this tool to call them. This gives you access to all API features that the dedicated tools simplify away — for example:

  • Full /quote/v2 params: slippageTolerance, appFees, includedSwapSources, useExternalLiquidity, topupGas, maxRouteLength, etc.

  • Full response data: detailed fee breakdowns, route objects, slippage details, protocol data, swap impact

  • Endpoints without dedicated tools: /price (lightweight pricing), /currencies/v2, /execute/* (with pre-signed data)

  • Advanced /requests/v2 query params: sortBy, sortDirection, includeOrderData, referrer, includeChildTxs

For common operations (simple quotes, token search, chain status), prefer the dedicated tools — they validate inputs, resolve chain names/token symbols, and format responses. Use this tool when you need parameters or response fields those tools don't expose.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyNoRequest body (for POST/PUT requests). Pass the full JSON object as documented in the API schema.
pathYesAPI endpoint path (e.g. '/quote/v2', '/chains', '/requests/v2'). Must start with '/'.
methodNoHTTP method.GET
paramsNoQuery parameters as key-value string pairs (for GET requests or additional query params).
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 explains that the tool returns raw, unfiltered responses and lists example parameters and response fields (fee breakdowns, route objects, etc.). While it omits details on authentication, rate limits, or error handling, it adequately describes the tool's behavior as a generic API caller.

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 front-loaded with the core purpose, followed by usage guidelines and concrete examples. While it is somewhat lengthy, every sentence adds value—explaining when to use the tool, how to prepare, and what to expect. No redundant phrases, but it could be slightly more concise.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (generic API caller with 4 parameters, no output schema), the description is complete. It explains the tool's role relative to siblings, provides examples of endpoints and parameters, and describes the response as 'raw, unfiltered' without needing to detail every possible output. No apparent gaps.

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%, but the description adds context beyond the schema. For the 'body' parameter, it says 'Pass the full JSON object as documented in the API schema,' and for 'params,' it specifies 'key-value string pairs.' It also provides concrete examples like '/quote/v2' for path, which clarifies usage beyond the schema 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's purpose: calling any public Relay API endpoint and returning raw, unfiltered responses. It distinguishes itself from sibling tools by noting that dedicated tools are for common operations, while this one provides access to full parameters and response fields those tools don't expose.

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 explicitly tells when to use this tool (for endpoints or parameters not covered by dedicated tools) and when not to (for common operations like simple quotes). It also advises first using get_api_schema to discover endpoints and schemas, providing clear context for appropriate usage.

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/pedromcunha/relay-mcp'

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