Approve a spender (contract) to spend tokens on your behalf. Required before interacting with DEXes, lending protocols, etc.
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.
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:
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:
{
"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.
Free to start. No card required.
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.
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.
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.
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.
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.
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.
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.