Skip to main content
Glama
wallet-io
by wallet-io

sign_transaction

Sign EVM, SOL, SUI, or other blockchain transactions with a TEE-stored key. Provide keyCode and unsigned tx; optionally supply an address to skip HD derivation.

Instructions

Sign a blockchain transaction using a TEE-stored key. Supports EVM (RLP hex), SOL (base58/base64/hex), SUI, and other chains. keyCode is always required. Optionally provide address to skip HD derivation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
txYesUnsigned transaction. EVM: 0x-prefixed RLP hex. SOL: base58/base64/hex encoded tx.
pathNoBIP44 path (default: m/44'/60'/0'/0/0 for EVM). Only used with keyCode.
chainNoTransaction category. Only EVM and SOL supported. Required for mnemonic keys. Omit for private/secret key types.
addressNoSpecific address to sign with — optional, skips HD derivation when provided
chainIdNoEVM chain ID (e.g. 1=Ethereum, 56=BSC, 137=Polygon, 42161=Arbitrum). Required for EVM.
keyCodeYesKey code (required)
encodingNoSOL transaction encoding (default: base58)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses that keys are TEE-stored and that supplying an address bypasses HD derivation, but it never says whether the signed tx is broadcast or only returned, what the caller gets back, or what permissions/errors apply to a signing operation.

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 sentences, front-loaded with the core action and mechanism. Slightly weakened by the redundant 'keyCode is always required' and the misleading chain-coverage claim, but overall tight.

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 7-parameter, no-annotation, no-output-schema mutation tool, the description covers key resolution and chain input formats but omits the return value, whether broadcasting occurs, and failure/permission behavior. Adequate but with clear gaps for a high-stakes signing operation.

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 baseline is 3 and the schema already documents tx, path, chain, address, chainId, keyCode and encoding. The description mostly restates required-ness and re-explains the address shortcut, and its 'SUI and other chains' claim actively conflicts with the chain enum, so it adds little net clarity.

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?

States a specific verb and resource ('Sign a blockchain transaction') and names the mechanism ('TEE-stored key'), which distinguishes it from the sibling sign_message. However, it claims support for 'SUI, and other chains' while the schema enum only permits EVM and SOL, which muddies the exact scope of the tool.

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?

It gives in-line conditions for parameters (keyCode always required, address skips HD derivation, chain required for mnemonic keys) but never states when to choose this tool over sign_message or the other key-management siblings. Usage is implied by the name rather than guided.

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