Skip to main content
Glama

Leash

Prepare token approval

elysium_prepare_approve

Build (not sign) an ERC-20 approve(spender, amount). Use 'max' only if the user explicitly insists — unlimited approvals are flagged with a loud warning. Chains: elysium (default), hyperevm, robinhood.

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": {
      "from": "<from>",
      "token": "<token>",
      "spender": "<spender>",
      "amount": "<amount>"
    },
    "name": "elysium_prepare_approve"
  }
}

Input Schema

NameRequiredDescriptionDefault
fromYes
chainNoelysium (default), hyperevm or robinhoodelysium
tokenYes
amountYes
policyNoOptional Leash policy token (lp1.…) from the /wallets page. With a policy, set from = the agent address: the call is routed through the agent's Safe (Safe.execTransaction) so the Safe pays, and it is refused unless it fits the policy. Limits are enforced by the Leash gateway, not on-chain. The agent is a 1-of-2 Safe owner, so if its key is used directly (outside Leash) it can bypass these limits. An audited on-chain allowance module is planned. Revoking removes the agent as owner on-chain. Per-transaction and optional rolling-24h daily caps apply to native HYPE and to each ERC-20 in the policy's tokenCaps (transfer, transferFrom, approve and increaseAllowance amounts of the call the Safe executes). Approvals above the token's daily cap (or per-tx cap if no daily cap) count as unlimited and are refused unless the cap sets allowUnlimitedApprove; approve(spender, 0) is always allowed. ERC-20 movements on tokens without a cap are refused when uncappedTokens='block' (default for new policies) and allowed uncounted when 'allow' (legacy v1 tokens behave as 'allow'; re-issue them). Undecodable calldata counts native value only.
spenderYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Beyond the annotations, the description discloses an important behavioral fact: the tool builds but does not sign, so the unsigned transaction must be handled elsewhere, and it discloses that unlimited approvals trigger a loud warning. It does not mention the policy-based routing/refusal behavior that the schema documents, but that is covered in structured data.

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?

Three short, front-loaded sentences with no filler: the build-not-sign caveat comes first, then the risk rule, then the chain list. It could be tightened marginally by dropping the chain list, which duplicates the enum.

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 6-parameter tool with no output schema, the description covers the core semantics (build-only, max risk) but says nothing about what the caller receives (unsigned calldata/transaction object) or how the policy path changes the 'from' semantics. The heavy detail lives in the schema, so the definition is adequate but not fully self-sufficient.

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?

With only 33% schema description coverage, the description should carry more weight; it adds real meaning for 'amount' (the 'max' convention and its risk) but merely restates the chain enum that already exists in the schema. The 'from', 'token', and 'spender' parameters receive no explanation of their role or constraints in the description.

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+resource pair ("Build (not sign) an ERC-20 approve(spender, amount)"), which precisely identifies the operation and the supported chains. It does not, however, distinguish itself from close siblings such as elysium_prepare_revoke or elysium_check_approvals, so an agent must infer which preparation tool to pick.

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?

There is a concrete conditional usage rule for the 'max' value ("only if the user explicitly insists"), which is genuinely useful guidance. Missing is any routing guidance relative to alternatives — e.g., when to use prepare_revoke instead of approving zero, or which chain to pick — leaving usage only partially implied.

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