Skip to main content
Glama

Owner tx: allow or revoke an operator

prepare_set_operator
Read-only

Returns an UNSIGNED transaction {chainId, to, data, value} plus simulation — an eth_call of exactly it from from (ok, or the revert decoded by name) — warnings and next. This server signs nothing: the sender signs and sends it with their own wallet and pays the gas. Owner only. An operator may rebalance (allocate, recenter, move, claim, reinvest) inside the manager's pools and can never withdraw. To hand a manager to an operator agent, allow the address of the local envelop-mcp-lp server's operator wallet.

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": {
      "chainId": "<chainId>",
      "manager": "<manager>",
      "operator": "<operator>",
      "allowed": "<allowed>",
      "from": "<from>"
    },
    "name": "prepare_set_operator"
  }
}

Input Schema

NameRequiredDescriptionDefault
fromYesThe address that will send the transaction — the manager owner (ownerOf(1)). The simulation runs from it.
allowedYestrue adds the operator, false revokes it
chainIdYesEVM chain id: 8453 Base, 42161 Arbitrum, 130 Unichain (1 = Ethereum mainnet, your gas)
managerYesManager NFT contract address
operatorYesThe operator address to allow or revoke (for an agent: the operator wallet of the local envelop-mcp-lp server)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the readOnlyHint annotation, the description discloses the exact return payload, that a simulation eth_call is run from `from` with reverts decoded by name, and that `warnings` and `next` accompany the result. It also states the server never signs and the caller pays gas, and scopes operator power (rebalance only, never withdraw). This is unusually rich behavioral context for a prepare-style tool.

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?

Return shape is front-loaded, followed by the no-signing guarantee, the owner restriction, and the operator semantics — a sensible ordering with little waste. The parenthetical describing the simulation is slightly dense and could be split, but no sentence is filler.

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?

There is no output schema, so the description carries the full burden of explaining the return value, and it does so precisely (transaction fields, simulation status/revert name, warnings, next). Combined with the owner-only constraint and operator capability scope, an agent has everything needed to call and interpret this tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds meaning the schema does not: what an operator is actually permitted to do (allocate, recenter, move, claim, reinvest; never withdraw) and who `from` must be (the owner). That materially informs how to choose `operator` and `allowed`.

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 outcome: it returns an UNSIGNED transaction {chainId, to, data, value} for allowing or revoking an operator, with the title clarifying the allow/revoke duality. It clearly distinguishes itself from any send path by stating 'This server signs nothing', which implicitly separates it from execution siblings. It does not explicitly name a sibling alternative, keeping it short of a 5.

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?

It gives clear context: 'Owner only' and a concrete scenario ('To hand a manager to an operator agent, allow the address of the local envelop-mcp-lp server's operator wallet'), which tells the agent when to call it with allowed=true. Revocation is only implied via the `allowed` flag, and no explicit when-not or named alternative tool is offered.

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