Skip to main content
Glama

Prepare Agent Delegation

agent_prepare_delegation

Create a pending ERC-7710 delegation from the connected WalletChan wallet, defaulting to a 1Shot-compatible relayer with a Base USDC daily spend limit. Stores encrypted payload in agent vault.

Instructions

Create a pending ERC-7710 delegation from the connected WalletChan wallet. Defaults to a 1Shot-compatible relayer delegation with a Base USDC daily spend scope. Stores the unsigned delegation payload encrypted in the agent vault.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainNoConfigured chain name or ID. Defaults to Base when configured.
labelNoOptional delegation label.
amountNoDecimal token/native amount for the spend limit, e.g. 10. Use amountUnits for raw units.
walletIdNoAgent wallet ID. Alternative to profileId.
delegatorNoMain WalletChan account granting authority. Defaults to the first approved WalletChan RPC account.
maxAmountNoAlias for amount.
profileIdNoDelegated agent profile ID, e.g. agent:<walletId>. The alias agent works only when exactly one agent wallet exists.
scopeTypeNoDelegation scope. Defaults to erc20-period-transfer for daily Base USDC limits.
startDateNoUnix timestamp in seconds for periodic scopes. Defaults to now.
amountUnitsNoRaw integer token/native units for the spend limit.
delegateModeNoDelegation target mode. Defaults to oneshot-relayer for agent_oneshot_relay_calls. Use agent-wallet for delegated x402 endpoints that require the local agent wallet address, or custom with delegateAddress.
tokenAddressNoERC-20 token address. Defaults to Base USDC on Base.
tokenDecimalsNoERC-20 decimals. Defaults to 6 for Base USDC.
valueLimitWeiNoOptional native value cap for function-call scope as a decimal wei string.
allowedTargetsNoFor function-call scope, allowed contract targets.
maxAmountUnitsNoAlias for amountUnits.
delegateAddressNoOptional explicit delegate override. Usually omit this: delegateMode=oneshot-relayer resolves the current 1Shot targetAddress automatically.
validForSecondsNoOptional timestamp caveat lifetime in seconds.
allowedSelectorsNoFor function-call scope, allowed 4-byte selectors.
periodDurationSecondsNoPeriod duration for periodic scopes. Defaults to 86400.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations provided, the description carries the full behavioral burden. It usefully discloses that the unsigned payload is stored encrypted in the agent vault (a real side effect), but says nothing about required authority/permissions, reversibility, or that the delegation is inert until a separate signing step, leaving meaningful gaps for a mutation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences with the core action, the default configuration, and the storage side effect front-loaded in that order. No filler or redundancy.

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

Completeness3/5

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

For a 20-parameter, workflow-critical tool with no annotations and no output schema, the description covers the defaults but omits the surrounding workflow (subsequent signature/completion steps) and what the caller gets back. It is serviceable but doesn't fully orient the agent within the delegation lifecycle.

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 100%, so the schema already documents all 20 parameters, including defaults for chain, scopeType, token, and periodDuration. The description merely restates the headline defaults (1Shot relayer, Base USDC daily scope) without adding new parameter meaning, so the baseline 3 applies.

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 (Create), resource (a pending ERC-7710 delegation), and source (the connected WalletChan wallet), which is concrete and unambiguous. It implies this is the first step via 'pending' and 'unsigned', but never names the follow-up siblings (agent_request_delegation_signature, agent_complete_delegation), so differentiation is contextual rather than explicit.

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

Usage Guidelines3/5

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

Usage is implied by the operation itself and by the default-relayer framing, but the description gives no explicit when-to-use guidance, no prerequisites, and no reference to sibling tools that carry the delegation workflow forward. An agent must infer that signing/completion is a separate tool.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.