Skip to main content
Glama
sand0vvv

mayan-mcp

by sand0vvv

Estimate gas for a built EVM swap

estimate_gas
Read-onlyIdempotent

Estimate gas costs for unsigned EVM swap transactions without signing or sending. Uses transaction data from build_swap to provide gas estimates.

Instructions

Estimate the gas cost of an unsigned EVM transaction produced by build_swap. Read-only: nothing is signed or sent.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYesTransaction target — the "to" field from build_swap.
dataYesCalldata from build_swap.
fromYesAddress that would send the transaction.
valueNoNative value as a hex quantity.0x0
chain_idYesEVM chain id from build_swap.
token_inYesAddress of the input token (zero address for native).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
gas_priceYesGas price in wei, decimal string.
estimated_gasYesGas units, decimal string.
estimated_fee_weiYes
Behavior3/5

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

Annotations already provide readOnlyHint, idempotentHint, destructiveHint=false. The description adds 'read-only: nothing is signed or sent' which reinforces annotations but does not reveal new behavioral traits beyond what annotations indicate.

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?

Two sentences, front-loaded with purpose, no redundant words. Every sentence adds value: purpose and safety.

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?

With 6 parameters and output schema existing, the description covers core purpose and safety. It could mention that this is for use after build_swap, which it does, but lacks some context like why estimate gas (e.g., to set gas limit). Still adequate.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents all parameters. The description does not add extra parameter meaning beyond the schema, meeting the baseline for high coverage.

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 estimates gas cost for an unsigned EVM transaction from build_swap, using specific verb and resource. It distinguishes from sibling tools like build_swap which builds transactions.

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 implies usage context: after build_swap produces a transaction. It mentions read-only nature, but does not explicitly state when to use vs. alternatives or what prerequisites are.

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/sand0vvv/mayan-mcp'

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