Skip to main content
Glama

Leash

Prepare contract call

elysium_prepare_contract_call

Build (not sign) an arbitrary contract call from a human-readable ABI fragment and args, 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>",
      "to": "<to>",
      "abi": "<abi>"
    },
    "name": "elysium_prepare_contract_call"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYes
abiYes
argsNo
fromYes
chainNoelysium (default), hyperevm or robinhoodelysium
valueNoHYPE to send0
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 already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false and openWorldHint=true; the description adds genuinely new behavior by clarifying that the call is simulated and returned as a signing link rather than executed or signed, which tells the agent no on-chain state changes here. It does not disclose what happens on simulation failure or what the returned link/payload looks like, leaving some behavioral gaps.

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?

Two short sentences, front-loaded with the core action and the critical 'not sign' caveat before the chain enumeration. The trailing chain list largely duplicates the enum and default in the schema, a small amount of redundancy, but overall there is no filler.

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?

For a 7-parameter mutation-adjacent tool with no output schema, the description covers the full pipeline (build → simulate → signing link) and names the default chain, which is most of what an agent needs. The gaps are the roles of 'from'/'to'/'value' and interaction with the policy routing, which are documented only inside the schema's policy description.

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 43%, so the description needs to compensate. It does explain that 'abi' is a human-readable ABI fragment (not raw JSON) and that args accompany it, which is real added meaning; but 'from', 'to' and 'value' are never explained in the description, and the chain line merely repeats the enum and default already in 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 precise verb chain (build, simulate, return signing link) on a specific resource (arbitrary contract call) built from a human-readable ABI fragment and args. The '(not sign)' qualifier and the chain list distinguish it from the specialized prepare_* siblings that handle approve/swap/transfer, so an agent can pick it without inspecting the schema.

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 word 'arbitrary' implies this is the tool for calls not covered by the specialized prepare_* siblings, and 'not sign' sets a clear boundary on what the tool will not do. However, no sibling is named and there is no explicit 'use elysium_prepare_swap instead when…' routing, so the agent must infer the alternative from the sibling list.

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