Skip to main content
Glama

txpreflight__guard

One-call go/no-go for a Base transaction: simulate it and check token allowance/balance, so you know before signing whether it will succeed. Price: $0.01 per call in USDC on Base (eip155:8453), paid with x402 in params._meta["x402/payment"]. HTTP: GET https://api.firstmention.uk/s/txpreflight/guard

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": "txpreflight__guard"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNo
dataNo
fromNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedInput schema / properties / owner
      Removed value: -{
      -  "type": "string"
      -}
    • removedInput schema / properties / spender
      Removed value: -{
      -  "type": "string"
      -}
    • removedInput schema / properties / token
      Removed value: -{
      -  "type": "string"
      -}
  2. Added

TDQS

A3.5/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden, and it does disclose two things that materially change agent behaviour: the call costs $0.01 USDC on Base and payment must be supplied in params._meta["x402/payment"]. It still omits what the success/failure signal looks like and what happens when from/to/data are absent.

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 compact sentences plus an endpoint line, with the core purpose front-loaded and the cost/payment mechanics immediately after. No filler and nothing restated from the schema or title.

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 3-parameter, zero-annotation, no-output-schema paid tool, the description covers the cost model well but leaves the essentials thin: what the go/no-go result contains, required-vs-optional semantics when the schema marks nothing required, and how it differs from the many sibling simulation tools. The x402 payment instruction referencing a non-schema _meta field is the most concrete gap an agent would hit at call time.

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

Parameters2/5

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

Schema description coverage is 0% and all three parameters (to, data, from) are bare untyped strings with no explanation of expected address/calldata formats or which are effectively required. The only parameter-adjacent detail given points at params._meta["x402/payment"], a field that does not exist anywhere in the input schema, so it adds confusion rather than meaning.

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?

Uses a specific verb pair (simulate + check allowance/balance) against a specific resource (a Base transaction) and states the decision it enables: go/no-go before signing. It is clear on its own, but it never distinguishes itself from near-identical siblings such as txpreflight__preflight, txpreflight__verify, chainread__simulate, or chainread__verdict.

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?

"so you know before signing whether it will succeed" implies the correct moment to call it, which is more than nothing. However, in a namespace packed with overlapping preflight/simulate/verdict tools, giving no when-not condition and naming no alternative leaves the agent guessing between several plausible siblings.

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