Skip to main content
Glama
KaiSign MCP Server

KaiSign MCP Server

Official
by Kai-Sign

validate_transaction

Validates Ethereum transaction calldata against KaiSign Registry, returning verified intent, decoded parameters, and warnings so signing flows can confirm transactions match user intent.

Instructions

Validate a transaction payload against KaiSign Registry. Prefer clear_sign_payload — it wraps this validation and adds payload normalization, display text, and signing policy.

This tool is designed for signing flows:

  1. A transaction builder creates an unsigned transaction payload

  2. This tool validates the transaction against KaiSign's on-chain verified metadata

  3. If verified (source: 'leaf-verified'), the decoded intent is trustworthy

  4. User or policy can approve signing knowing the transaction matches intent

Returns:

  • verified: true if contract has KaiSign-verified metadata

  • source: 'leaf-verified' (trustless on-chain), 'local-metadata', 'unverified', or 'error'

  • intent: Human-readable description of what the transaction does

  • params: Decoded function parameters with labels

  • warnings: Any concerns about the transaction

  • verification: Attestation details (uid, target, metadataHash, revoked status)

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": "validate_transaction"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesTarget contract address (0x...)
dataYesTransaction calldata (0x...)
valueNoTransaction value in wei (default: "0")0
chainIdNoChain ID (default: 8453 for Base)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden and mostly meets it: it discloses the trust model behind the 'source' values ('leaf-verified' = trustless on-chain vs 'local-metadata'/'unverified'/'error'), that warnings may be returned, and what the verification attestation contains. It does not explicitly state that the call is non-mutating (read-only, no state change on registry) nor whether lookups are cached or rate-limited, which for a zero-annotation tool is the main remaining gap.

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?

Front-loaded with the recommendation before the mechanics, and the enumerated flow plus labelled return fields make it scannable. Slightly long, and the Returns block is prose that duplicates what an output schema would carry, but since none exists it is largely earning its space.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, and the description compensates by enumerating the return fields (verified, source, intent, params, warnings, verification) with interpretation of the trust levels. Combined with the full schema coverage on inputs, an agent has everything needed to call and interpret this tool.

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 four parameters (to, data, value, chainId) are already documented with patterns and defaults. The description adds no syntax, format, or edge-case guidance for them, so the schema does the work and baseline 3 applies.

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 ("Validate a transaction payload against KaiSign Registry") and immediately names the sibling that supersedes it. An agent can tell exactly what this tool does and how it differs from clear_sign_payload 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 Guidelines5/5

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

Explicitly says to prefer clear_sign_payload and explains why (normalization, display text, signing policy), which is a concrete when-to-use-this vs when-to-use-the-alternative rule. The numbered 4-step signing flow additionally places the tool in a clear operational context.

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