Skip to main content
Glama

Base Tx Preflight

Validate tx input

preflight_validate

Free: checks from/to/data/value formatting and whether 'to' is a contract on Base, before you pay.

Input Schema

NameRequiredDescriptionDefault
toYes
dataNo
fromNo
valueNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses that the call is free and read-only in effect, what it inspects, and that it targets Base specifically — genuinely useful facts not present in structured fields. It stops short of saying what the result looks like (pass/fail shape, error reasons) or what happens on an invalid address, which matters for a validation tool.

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?

One compact sentence with the cost qualifier front-loaded, then the checks, then the timing rationale. Nothing is redundant. The only weakness is that brevity edges toward terseness — 'before you pay' is a little elliptical about what payment is being referred to.

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

Completeness3/5

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

For a four-parameter tool with no annotations, no output schema, and no parameter descriptions, the definition should say more about the result of validation and about acceptable input formats. It covers the what and the why-plus-when adequately, so an agent can decide to call it, but not fully how to interpret or shape the call.

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 0%, so the description must compensate. It does name all four parameters (from/to/data/value) and tells the agent they are checked for formatting, which is more than the bare schema offers. But it never states expected formats — hex address form, 0x-prefixed calldata, or whether value is wei or a decimal string — leaving the agent to guess what input will pass.

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 pair: it validates the formatting of the to/from/data/value fields and checks whether 'to' is a contract on Base. That is concrete enough to distinguish it from a quoting tool, and the 'before you pay' clause implies the ordering relative to preflight_quote, though it never names the sibling explicitly.

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?

The phrase 'before you pay' implies this is a pre-transaction sanity check that precedes a quote or send, which is useful sequencing context. However, it never states when NOT to use it, never names preflight_quote as the alternative, and gives no prerequisites such as a required chain or address format.

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