Skip to main content
Glama

AgentLogic MCP Server

gas_price

Read current gas prices on an EVM chain: gas price in wei and gwei, the latest block's base fee, a priority fee suggestion and a suggested max fee. Price: $0.001 USDC on Base via x402.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "gas_price"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNoChain to read: base (default), ethereum, polygon, arbitrum or optimism.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden and does well: it discloses the full return payload (important since there is no output schema), names the supported chains via the schema, and uniquely surfaces the cost model — $0.001 USDC on Base via x402 — which tells the agent this is a paid, metered call. Gaps remain on caching/freshness guarantees and failure modes for invalid chains.

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?

One dense sentence front-loads what is read and what comes back, followed by a short, separately valuable sentence on cost. No filler, no repetition of the name or title.

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 zero-required-param read tool with no output schema, the description usefully enumerates return fields and discloses pricing, so an agent knows both what it gets and what it pays. Minor omissions are error behavior for an unsupported chain and data freshness, which prevent a full 5.

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 coverage is 100% with a detailed description and default already provided for 'chain'. The description adds only the 'current' (as opposed to historical) qualifier and nothing else about parameter behavior, so the baseline 3 is appropriate.

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?

States a specific verb ('Read') and resource ('current gas prices on an EVM chain') and then enumerates exactly what is returned: gas price in wei and gwei, base fee, priority fee suggestion, max fee. An agent can distinguish this from sibling price/block tools (token_price, block_info) without opening the schema.

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?

Usage is implied by 'current gas prices' — it is clearly a live fee-lookup tool, and the default chain is documented. However there is no explicit when-to-use vs when-not guidance, no pointer to a sibling for historical fees or for non-EVM chains, and no note on what happens if a chain is unsupported.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.