Skip to main content
Glama
Baneado98

calldata-guardian

by Baneado98

preview_transaction

Decode and safely review any EVM transaction before signing. Get a clear verdict and plain-English details of exactly what the transaction will do, with flags for dangerous actions like unlimited approvals.

Instructions

Decode and explain an EVM transaction BEFORE signing it — the 'what am I about to sign?' check. Give it a chain + the transaction's to / data (calldata) / value and it returns a SAFE / REVIEW / DANGER verdict with a plain-English list of exactly what the transaction will do, flagging the dangerous things a wallet should never sign blindly: unlimited token approvals, EIP-2612 / Permit2 gasless permits, setApprovalForAll on NFTs, transferFrom drains, increaseAllowance top-ups, ownership transfers, multicall bundles that hide an approval, and calls to non-contract / upgradeable targets or approvals to a plain-wallet (EOA) spender. It also reads live on-chain context (is to a contract / proxy? is the spender an EOA?) and resolves token decimals so amounts are human-readable. Read-only; never signs or broadcasts. Use this whenever an agent is about to sign or relay a transaction it didn't fully construct. Chains: ethereum, base, bsc, polygon, arbitrum.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainYesChain: ethereum, base, bsc, polygon or arbitrum.
toYesThe transaction's `to` address (contract or recipient, 0x...).
dataNoThe calldata (0x...). Optional for a pure value transfer.
valueNoNative value in wei (decimal or 0x). Optional, default 0.
Behavior5/5

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

No annotations provided, so description carries full burden. It explicitly states it is read-only, never signs or broadcasts, and describes what it checks (dangerous patterns) and returns (verdict + human-readable list). It also mentions live on-chain context reading.

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 description is a single coherent paragraph that starts with main purpose, then details checks, and ends with usage guidance. It is informative but slightly long; however, every sentence adds value and is well-structured.

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?

No output schema exists, so description must explain return values. It does so by stating it returns a SAFE/REVIEW/DANGER verdict with a plain-English list. It covers all necessary aspects for an agent to decide when to call this tool.

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

Parameters4/5

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

Schema coverage is 100%, baseline 3. The description adds meaning beyond schema: lists supported chains for the chain parameter, explains to as contract/recipient, data as calldata (optional for pure transfer), and value in wei. This enhances understanding.

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 clearly states the tool decodes and explains an EVM transaction before signing, returning a verdict with plain-English list. It specifies inputs (chain, to, data, value) and distinguishes from sibling decode_calldata by focusing on pre-signing safety analysis.

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?

The description explicitly says 'Use this whenever an agent is about to sign or relay a transaction it didn't fully construct.' This provides clear when-to-use guidance, though it does not explicitly state when not to use or compare with siblings.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Baneado98/calldata-guardian'

If you have feedback or need assistance with the MCP directory API, please join our Discord server