Skip to main content
Glama

Leash

Prepare token transfer

elysium_prepare_token_transfer

Build (not sign) an ERC-20 transfer in human units (e.g. '10.5'), simulate it, and return a signing link. 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>",
      "to": "<to>",
      "amount": "<amount>"
    },
    "name": "elysium_prepare_token_transfer"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYes
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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations only flag it as non-read-only, non-idempotent and open-world; the description adds the crucial behavior that it does NOT move funds, that it simulates the transaction, and that it returns a signing link rather than submitting. What is missing is what a failed simulation produces and how the Safe/policy routing (documented only in the param) affects execution.

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?

Two short sentences, front-loaded with the key verb and the '(not sign)' caveat, then the chain list. No filler or repetition of the title.

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 six-parameter, no-output-schema preparation tool this covers the essentials — what is built, units, chains, and the returned signing link — but leaves failure modes, whether simulation blocks on revert, and the Safe-routing implications unaddressed at the description level.

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 only 33%, so the description must carry weight. It usefully clarifies that 'amount' is in human units with a concrete example ('10.5') and enumerates the chain values, but 'from', 'token' and 'to' receive no added meaning, and the critical interaction between 'policy' and 'from' is left to the schema.

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?

States a specific verb and resource ('Build ... an ERC-20 transfer'), scopes the stage explicitly with '(not sign)', and names the return artifact (signing link). The 'ERC-20' qualifier implicitly separates it from the native-transfer and approve siblings without needing to name them.

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?

The description conveys the workflow slot (prepare, then sign elsewhere) and notes human units, which implies 'use this before signing, not instead of signing.' However it never states when to prefer elysium_prepare_native_transfer, prepare_approve or prepare_swap, and gives no prerequisites such as a funded Safe or a required policy.

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