Skip to main content
Glama

Base transaction preflight (paid, $0.005)

gas_preflight
Read-onlyIdempotent

PAID $0.005: simulate an unsigned Base transaction with optional msg.sender. Returns success or a decoded revert, gas estimate and an indicative USDC sponsorship estimate. No signing or broadcast; provider failures are not charged.

Input Schema

NameRequiredDescriptionDefault
toYesContract or wallet to call
dataNo0x calldata, up to 16 KiB
fromNoOptional msg.sender
valueNoNative value in wei

Output Schema

NameRequiredDescriptionDefault
_paidNox402 receipt
errorNoRevert details, when reverted
chainIdNoBase chain ID
successNoWhether the call succeeded
returnDataNoReturn data
blockNumberNoSimulation block
gasEstimateNoEstimated gas
sponsorshipEstimateNoIndicative USDC gas estimate

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Beyond the annotations (which already declare readOnly, idempotent, non-destructive), the description adds a real cost model ($0.005), states that provider failures are not charged, and confirms no signing or broadcast occurs. That is genuine behavioral context an agent cannot get from structured fields, though return-shape claims are partly redundant with the output schema.

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, zero filler: cost and action first, then return behavior and the no-charge exception. Every clause carries information.

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?

An output schema exists, so return values need not be spelled out, and billing semantics are covered. What is missing for a 4-parameter, open-world tool is guidance on when this preflight is required versus alternatives and whether it depends on external state such as balances or sponsorship availability.

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 all four parameters are already documented, including 'Optional msg.sender' for `from`. The description's mention of 'optional msg.sender' merely echoes the schema and adds no format, size, or default semantics.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: 'simulate an unsigned Base transaction', plus what it returns. It does not name or contrast with the near-sibling gas_batch_preflight or gas_decode, so sibling differentiation is left to inference.

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?

'No signing or broadcast' implies this is a dry-run step before sending, and the price is front-loaded for cost decisions. But there is no explicit when-to-use versus gas_batch_preflight (batch) or gas_decode, and no stated prerequisites such as chain or account requirements.

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.