Skip to main content
Glama

Leash

Prepare revoke approval

elysium_prepare_revoke

Builds (not signs) a revoke: ERC-20 approve(spender, 0), NFT setApprovalForAll(operator, false) with kind 'nft', or Permit2.approve(token, spender, 0, 0) with kind 'permit2'. Never blocked by the risk check. Chains: elysium (default), hyperevm, robinhood.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "from": "<from>",
      "token": "<token>",
      "spender": "<spender>"
    },
    "name": "elysium_prepare_revoke"
  }
}

Input Schema

NameRequiredDescriptionDefault
fromYes
kindNoerc20
chainNoelysium (default), hyperevm or robinhoodelysium
tokenYes
policyNoOptional Leash policy token (lp1.…): routes the call through the agent's Safe, same rules as other prepare tools.
spenderYes

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?

The annotations only declare that this is a non-read-only, non-idempotent, open-world call; the description adds the crucial fact that it builds but does not sign, and that the risk check does not gate it. Those are real behavioral facts an agent cannot derive from the annotation set. It does not say what the output is (calldata? unsigned tx?) or what happens if no approval exists, which keeps it short of a 5.

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?

Two dense sentences, front-loaded with the core purpose, then the variant mapping, then the risk-check caveat and chains. Almost every clause carries information. The trailing chain list duplicates the schema's enum/default, so one clause could be trimmed.

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?

With no output schema and a six-parameter transaction-builder, the description covers what is constructed, that no signature is produced, which chains are valid, how each kind resolves, and that risk checks do not block it. That is the full set of decision-relevant facts for invoking it correctly; the remaining per-parameter address details are self-evident from the schema patterns.

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 coverage is only 33%, and only chain and policy carry descriptions in the schema. The description does add genuine meaning for 'kind' by mapping each enum value to the exact call it produces, which is valuable. But it says nothing about from, token, or spender — the three required parameters — beyond restating the address pattern, and it repeats the chain list verbatim rather than adding new information. For a low-coverage schema, the required parameters needed more.

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?

States a specific verb and resource up front ('Builds (not signs) a revoke') and enumerates exactly what is produced for each variant: approve(spender, 0), setApprovalForAll(operator, false), Permit2.approve(token, spender, 0, 0). That precision, plus the parenthetical ruling out signing, lets an agent distinguish this from the approve and generic contract-call siblings without opening a 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?

Gives clear context for when to call it (to zero out an existing approval) and one important behavioral qualifier — 'Never blocked by the risk check' — plus supported chains. It stops short of naming an alternative, such as leash_prepare_revoke_agent or elysium_prepare_approve, or saying when the revoke should be built through the policy/Safe path instead.

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