Skip to main content
Glama

Agent Tools

token_preflight

Token preflight for agents about to swap, list or pay with a token on Base, Ethereum, Optimism, Arbitrum or Polygon: contract and standard check, name, symbol, supply, proxy and owner flags, a 0-100 structural risk score with reasons, plus a simulated ERC20 transfer gas cost in USD. Not a honeypot audit. Price $0.004 USDC per call via x402. Example output: {"token":{"chain":"base","symbol":"USDC","standard":"ERC20","decimals":6},"risk":{"score":30,"level":"medium","reasons":["upgradeable or proxy contract (zeppelinos (legacy unstructured storage))","has an owner address"]},"transfer_gas":{"gas_units":"45415","fees":[{"tier":"standard","est_cost_usd":0

Input Schema

NameRequiredDescriptionDefault
fromNoOptional holder address for a realistic transfer simulation
chainNoDefault base
addressYesToken contract address

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the paid x402 model ($0.004 USDC per call), the exact chain coverage, the meaning of the risk score, and a sample response showing field shapes. It stops short of stating rate limits, failure/error behavior, or what happens for unverified/unrecognized contracts.

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?

The capability statement, limitation, and pricing are front-loaded in the first two sentences, with the example last. The example JSON is illustrative but is cut off mid-object ('est_cost_usd':0) and adds bulk that a tightened, complete snippet would justify better.

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?

With no output schema and no annotations, the description supplies the missing structure via a concrete example output, states pricing and supported chains, and bounds the tool's scope. Enough to call it correctly; only edge-case behavior (unsupported contract, invalid address) is unstated.

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%, so all three parameters are already documented, including the chain enum and 'from' as an optional holder address for realistic transfer simulation. The description only reinforces this indirectly by mentioning the simulated transfer gas cost; it adds no syntax, format, or address-validation detail beyond the schema, so the baseline 3 applies.

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?

The description opens with a concrete verb-plus-resource framing ('Token preflight for agents about to swap, list or pay with a token') and enumerates exactly what is checked: contract/standard, name, symbol, supply, proxy/owner flags, a 0-100 risk score with reasons, and simulated transfer gas. It also pre-empts confusion with the nearest misread ('Not a honeypot audit'), so an agent can distinguish it from token_info and honeypot-style scanners 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives clear triggering context ('about to swap, list or pay with a token') and an explicit exclusion ('Not a honeypot audit'), plus the x402 payment precondition. The gap is that it names no alternative to route to when honeypot coverage is actually needed (e.g., token_info or a dedicated audit), leaving that inference to the agent.

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