Skip to main content
Glama

simulate_revoke

Prove a revoke before signing by simulating the zero-amount revocation against live node state. Re-reads the grant to confirm removal, then returns calldata without broadcasting.

Instructions

Prove a revoke BEFORE it is signed. Builds the one transaction that removes a single approval — ERC-20 approve(spender, 0), NFT setApprovalForAll(operator, false), or a grant held inside Permit2 — then runs it against live state on the node and re-reads the grant in the same simulated block, so 'works' is measured, not assumed. Nothing is signed, sent or broadcast: the calldata comes back for a wallet or an offline signer, and the amount is hard-coded to zero. Read-only. Use check_approvals first to find which grant to remove; use this to prove that removing it will actually work.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindNoEVM only: approval (ERC-20, default) | nft_operator | permit2. A Permit2 grant survives zeroing the ERC-20 approval to Permit2, so it must be revoked as permit2
chainYesethereum | bsc | polygon | base | arbitrum | avalanche | solana | tron
ownerYesthe wallet that holds the grant: EVM 0x…, TRON T…, or Solana base58
tokenYestoken contract (EVM, TRON); on Solana, the token ACCOUNT that holds the delegate, not the mint
spenderNothe spender or NFT operator to cut off (EVM, TRON); not used on Solana, where the delegate is read from the account

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.2.0

TDQS

A4.7/5.0
Behavior5/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 does so thoroughly. It discloses that nothing is signed, sent, or broadcast, that the amount is hard-coded to zero, that it runs against live state in the same simulated block, and that it is read-only. This fully compensates for the missing annotation layer.

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 dense and front-loaded, with the core purpose in the first sentence. Minor redundancy exists: 'Read-only.' repeats the earlier 'Nothing is signed, sent or broadcast', so a small deduction is warranted, but every other sentence earns its place.

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?

The definition covers purpose, workflow, safety, and parameter interplay well, and the schema covers all parameter semantics. However, there is no output schema and the description only says 'the calldata comes back' without specifying the return shape or how simulation failure is reported, leaving a modest gap.

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%, so the baseline is 3, but the description adds meaning beyond the schema by explaining the concrete transactions behind kind values ('approve(spender, 0)', 'setApprovalForAll(operator, false)', Permit2) and by stating the amount is hard-coded to zero, which tells the agent no amount parameter is needed.

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 specific verb and resource: 'Prove a revoke BEFORE it is signed' and then details exactly which approvals it builds (ERC-20, NFT operator, Permit2). It also differentiates itself from siblings by positioning check_approvals as the discovery step and simulate_revoke as the proof step.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Explicit workflow guidance is provided: 'Use check_approvals first to find which grant to remove; use this to prove that removing it will actually work.' It also clarifies the Permit2 case where a different kind must be chosen, and states the read-only, nothing-broadcast constraint that frames when this tool is appropriate.

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

Deploy Server

Other Tools