Skip to main content
Glama

evm_set_approval_for_all

Approve or revoke an operator's permission to manage all NFTs in a specified contract on supported EVM chains.

Instructions

Approve or revoke operator permissions to manage all NFTs

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": {
      "chain": "<chain>",
      "contractAddress": "<contractAddress>",
      "operator": "<operator>",
      "approved": "<approved>",
      "privateKey": "<privateKey>"
    },
    "name": "evm_set_approval_for_all"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainYes
approvedYesTrue to approve, false to revoke
operatorYesOperator address to approve/revoke
privateKeyYesPrivate key of NFT owner
contractAddressYesNFT contract address

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full behavioral burden. It does not disclose that this is a blockchain write transaction requiring gas, that approval grants broad control over all NFTs in the contract, or that the owner private key is used to authorize the change.

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 definition is a single front-loaded sentence with no wasted wording. Its brevity is appropriate, though it leaves important behavioral context unstated.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a five-parameter mutation tool involving a private key and no annotations, so the description should provide more security and execution context. It does not explain gas requirements, transaction irreversibility, or the risk of granting broad NFT management permissions.

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 description coverage is 80%, with descriptions for approved, operator, privateKey, and contractAddress. The phrase 'all NFTs' adds useful scope context for contractAddress, but the description does not otherwise expand parameter meaning beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb pair (approve or revoke) and resource (operator permissions to manage all NFTs), making the scope clear. It implicitly distinguishes itself from single-NFT approval or approval-check tools, though it does not name those siblings explicitly.

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

Usage Guidelines2/5

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

There is no explicit guidance on when to use this tool versus alternatives such as evm_approve_nft or evm_is_approved_for_all. The approve/revoke framing implies usage, but the agent must infer the selection criteria entirely.

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