Skip to main content
Glama

Cloud executor: the Mandate to sign

executor_prepare
Read-only

Free. Builds the EIP-712 Mandate the manager's OWNER signs to let the cloud executor run it: manager, strategy and its sha256, operations and USDC a day, expiry. Checks the manager (type from its implementation) and that the strategy fits it. Also says whether the executor is already the manager's operator — if not, the owner first sends setOperator(operator, true) (prepare_set_operator). Sign typedData with eth_signTypedData_v4 within 10 minutes, then executor_subscribe.

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>",
      "strategy": "<strategy>"
    },
    "name": "executor_prepare"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoHow long the mandate runs (default 90)
chainIdYes8453 Base, 42161 Arbitrum, 130 Unichain, 1 Ethereum
managerYesThe manager address
strategyYesenvelop/follow-price (Volatile), envelop/compound (Stable), or a Think Tank id think-tank/<slug> (list_strategies)
maxOpsPerDayNoOperations a day the executor may send (default 6, or the strategy's own lower budget)
maxUsdcPerDayNoUSDC a day it may charge the manager's credit (default 2)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior3/5

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

Annotations only declare readOnlyHint=true and openWorldHint=true, and the description correctly frames this as a free, local build of typed data (consistent with read-only). Beyond that it discloses valuable behavior: the manager-type check against its implementation, validation that the strategy fits the manager, and the operator-status check with a gating alternative. It does not describe the returned payload shape or failure modes, though the sequencing hints cover most of what an agent needs.

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?

Dense and front-loaded: cost, then what it builds, then validation, then the pre-req, then the signing window and next step. Slightly telegraphic phrasing ("operations and USDC a day") and the parenthetical back-references add small friction, but almost nothing is wasted.

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?

Covers the full lifecycle around a typed-data builder: prerequisites, validation performed, the signature method and expiry, and the follow-up tool, which is what matters for a 6-param tool with no output schema. Missing only the concrete shape of `typedData` and what happens on manager/strategy mismatch.

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 already 100%, so the baseline is 3; the description adds meaning by tying parameters into one semantic bundle — the strategy's sha256 is hashed into the mandate, and both ops/day and USDC/day become the mandate's on-chain limits, which the schema alone does not convey. It does not elaborate on `days` or the chain list beyond what the schema states.

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?

Specific verb and resource: builds the EIP-712 Mandate the manager's OWNER signs, and enumerates exactly what the mandate encodes (manager, strategy + sha256, ops/USDC per day, expiry). It is clearly distinguishable from prepare_set_operator, executor_subscribe, and executor_terms.

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

Usage Guidelines5/5

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

Explicit sequencing: if the executor is not already the manager's operator, the owner must first send setOperator via prepare_set_operator; after signing, call executor_subscribe. It also states the 10-minute signing window and the exact signing method (eth_signTypedData_v4), so an agent knows both when and in what order to use it.

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