Critical Risk →

approve_token_spending

Approve a spender (contract) to spend tokens on your behalf. Required before interacting with DEXes, lending protocols, etc.

How to control approve_token_spending ↓

What approve_token_spending does on EVM MCP Server

AI agents use approve_token_spending to commit financial operations through EVM MCP Server — usually the final step of a payment, billing, or trading workflow. A call moves real money.

Critical Risk

Why approve_token_spending needs a policy

Approving token spending grants an external contract the ability to transfer tokens from the user's wallet, which is a financial authorization action. Misuse (e.g., approving a malicious contract or setting an unlimited allowance) can result in complete loss of funds. This directly commits a financial obligation/permission, making it Financial category with critical severity due to the potential for total asset loss.

From the tool's definition Approve a spender (contract) to spend tokens on your behalf. Required before interacting with DEXes, lending protocols, etc.

Documented attack patterns abuse exactly the kind of access approve_token_spending gives an agent:

How to control approve_token_spending

PolicyLayer is an MCP gateway — it sits between your AI agents and EVM MCP Server, and nothing reaches the server without passing your rules. This is the rule we recommend for approve_token_spending:

policy.json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "approve_token_spending": {
      "deny_if": [
        {
          "conditions": [],
          "on_deny": "Requires human approval."
        }
      ]
    }
  }
}

Any call to approve_token_spending is blocked until a human approves it. The rest of the server keeps working.

  1. Create a free account and register EVM MCP Server — nothing to install.
  2. Add this policy — paste it, or build it visually.
  3. Point your MCP client (Claude, Cursor, anything) at your gateway URL.
GATE THIS TOOL →

Free to start. No card required.

Related tools and policies

Go deeper

Questions about approve_token_spending

What does the approve_token_spending tool do? +

Approve a spender (contract) to spend tokens on your behalf. Required before interacting with DEXes, lending protocols, etc. It is categorised as a Financial tool in the EVM MCP Server MCP Server, which means it involves financial transactions. Block by default and require explicit approval.

How do I enforce a policy on approve_token_spending? +

Register the EVM MCP Server MCP server in PolicyLayer and add a rule for approve_token_spending: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches EVM MCP Server. Nothing to install.

What risk level is approve_token_spending? +

approve_token_spending is a Financial tool with critical risk. Critical-risk tools should be blocked by default and only enabled with explicit human approval.

Can I rate-limit approve_token_spending? +

Yes. Add a rate_limit block to the approve_token_spending rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.

How do I block approve_token_spending completely? +

Set action: deny in the PolicyLayer policy for approve_token_spending. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.

What MCP server provides approve_token_spending? +

approve_token_spending is provided by the EVM MCP Server MCP server (mcpdotdirect/evm-mcp-server). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

Enforce policy on every EVM MCP Server tool call.

Start from EVM MCP Server, add the rest of your stack, and see everything your agents can call. Then put policy on all of it.

Free to start. No card required.

25 EVM MCP Server tools catalogued and risk-classified — across an index of 43,000+ MCP servers.

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.