Skip to main content
Glama

Gas Optimization

gas.optimize
Read-onlyIdempotent

Gas price optimization advisor: analyzes recent block patterns to recommend the best time to transact. Includes savings estimate. Use when deciding when to submit a transaction based on recent fee patterns. It is advisory and read-only; use gas.tracker for the current quote and gas.predict for a standalone forecast.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainNoEVM chain (default: base)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainYesBlockchain queried
currentCostNo
recommendationsNoGas optimization suggestions

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, so the safety profile is partly redundant with 'advisory and read-only'. The description nonetheless adds useful behavioral context, the 'analyzes recent block patterns' mechanism and that the result 'includes savings estimate', which is not in the annotations.

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?

Three tight sentences, purpose front-loaded, followed by usage and routing. Every sentence earns its place with no filler.

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?

An output schema exists, so return values need not be explained, and the description still notes the included savings estimate. Combined with annotations covering the safety profile and a single well-documented parameter, nothing an agent needs to invoke it correctly is missing.

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% for the single 'chain' parameter (EVM chain, default base), and no enum is present. The description adds no syntax or format detail beyond the schema, so the baseline 3 applies when the schema carries full parameter burden.

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 and resource ('Gas price optimization advisor: analyzes recent block patterns to recommend the best time to transact') and explicitly distinguishes itself from gas.tracker and gas.predict. An agent can tell what it does and how it differs from siblings without opening any schema.

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?

Gives explicit when-to-use ('Use when deciding when to submit a transaction based on recent fee patterns') and names two alternatives with their distinct roles ('use gas.tracker for the current quote and gas.predict for a standalone forecast'). The routing decision is fully specified.

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.

Resources