Skip to main content
Glama

Revoke approval

build_revoke
Read-onlyIdempotent

Build an unsigned transaction that sets a token approval back to zero, so that spender can no longer move the token. Needs a key. Returns a call for the wallet owner to sign and send on Robinhood Chain (chain ID 4663). No keyfo tool signs. The answer also has sign_url: a keyfo page where the user checks the transaction and signs it in their own wallet. It stays open for 15 minutes and gets a new quote itself when the price is out of date. Show that link to the user, and never ask them to paste the transaction data anywhere.

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": {
      "wallet": "<wallet>",
      "token": "<token>",
      "spender": "<spender>"
    },
    "name": "build_revoke"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenYesTicker (TSLA, USDG, WETH) or token address.
walletYesThe wallet that gave the approval. It signs and sends.
spenderYesAddress the approval was given to, from stock_approvals.

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?

Annotations already declare read-only, idempotent, non-destructive, so the behavioral bar is lower; the description still adds real value by disclosing the return payload (sign_url), its 15-minute lifetime, automatic re-quoting when stale, and an explicit security instruction not to have the user paste transaction data. The 'gets a new quote itself when the price is out of date' line is slightly confusing for a revoke flow and reads like boilerplate, 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?

The core purpose is front-loaded in the first sentence and the operational guidance follows in a logical order. The passage is somewhat long and includes one tangential sentence about price re-quoting that does little work for a revocation tool.

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, the description carries the return-value burden and does it by identifying sign_url, its expiry, and the signing workflow. It is nearly complete for a three-parameter builder, missing only a fuller picture of the returned object (e.g. whether transaction data is also returned).

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 token, wallet, and spender are all documented already; the description only reinforces relational meaning (wallet is the approval giver that signs, spender is who loses access). It adds no format, validation, or edge-case detail beyond the schema, so 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?

States a precise verb and resource — build an unsigned transaction that resets a token approval to zero — and explains the effect (the spender can no longer move the token). It also separates itself from the rest of the family by noting that no keyfo tool performs the signing step, so an agent knows this is a build-only tool.

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?

Tells the agent what to do with the result: show the sign_url to the user and never ask them to paste transaction data, plus the constraint that a key is required and that signing happens outside keyfo. It stops short of naming a specific alternative to use instead (e.g. reading approvals first via stock_approvals, which is only referenced in the schema), so it gives clear context but no explicit when-not rules.

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