Skip to main content
Glama
KaiSign MCP Server

KaiSign MCP Server

Official
by Kai-Sign

decode_transaction

Decodes Ethereum transaction calldata into human-readable function names, parameters, and intent using verified ERC-7730 metadata so users can understand what a transaction will do before signing.

Instructions

Decode transaction calldata using verified ERC-7730 metadata. Prefer clear_sign_payload for signing flows — it returns this decode plus the unified signing verdict, display text, and signing policy in one call.

This tool decodes Ethereum transaction calldata into human-readable format using metadata from the KaiSign registry. It provides:

  • Function name and signature

  • Decoded parameters with labels and formatted values

  • Intent description (e.g., "Swap 1.5 ETH for min 3000 USDC")

  • Metadata-declared command registry decoding

  • On-chain verification of metadata authenticity

Token savings: Cached metadata enables 80%+ token savings on repeated queries to the same contract.

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": {
      "to": "<to>",
      "data": "<data>"
    },
    "name": "decode_transaction"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesTarget contract address (0x...)
dataYesTransaction calldata (0x...)
valueNoTransaction value in wei (optional)
chainIdNoChain ID
skipVerificationNoSkip on-chain verification (faster, uses cached verification)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does reasonably well: it discloses that it performs on-chain verification of metadata authenticity (contextualizing skipVerification), that metadata is cached with 80%+ token savings on repeats, and it enumerates the shape of the decode output. It does not state that the call is read-only/non-submitting or what happens when metadata is missing or unverified.

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?

Purpose and the sibling routing hint are front-loaded, and the bullet list is scannable. The 'Token savings' line is promotional rather than decision-relevant, and the bullets partially restate the opening sentence.

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?

There is no output schema, and the description compensates by enumerating return content: function name and signature, decoded parameters with labels, intent description, command registry decoding, and verification status. What is still missing is failure behavior (missing metadata, invalid calldata) and whether the tool ever errors versus degrading to a raw decode.

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 all five parameters are already documented in the schema, establishing a baseline of 3. The description only indirectly adds meaning by mentioning on-chain verification of metadata authenticity, which frames the skipVerification flag, but adds no format or interaction detail beyond that.

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?

The first sentence names a specific verb and resource ('Decode transaction calldata') and qualifies the mechanism ('verified ERC-7730 metadata'). The second sentence explicitly differentiates it from the sibling clear_sign_payload, so an agent can route without opening either schema.

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

Usage Guidelines4/5

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

It gives an explicit routing rule: for signing flows use clear_sign_payload because it returns this decode plus the signing verdict and display text. That implies decode-only/inspection flows belong here, but relationships to other siblings such as validate_transaction are not addressed.

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