Skip to main content
Glama
KaiSign MCP Server

KaiSign MCP Server

Official
by Kai-Sign

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
ETH_RPC_URLNoEthereum Mainnet RPC URL.Public RPC
BASE_RPC_URLNoBase RPC URL.Public RPC
SEPOLIA_RPC_URLNoSepolia testnet RPC URL.Public RPC
ARBITRUM_RPC_URLNoArbitrum RPC URL.Public RPC
OPTIMISM_RPC_URLNoOptimism RPC URL.Public RPC
KAISIGN_METADATA_DIRNoLocal ERC-7730 metadata directory. Defaults to auto-detecting the repo-local metadata/ directory.auto-detects repo-local metadata/

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
verify_contract_metadataA

Diagnostic: verify one contract's metadata attestation against the on-chain KaiSign Registry. For decoding + safety verdicts on a transaction, prefer clear_sign_payload (it verifies every contract in the call tree automatically).

This tool checks whether a contract has finalized ERC-7730 metadata in the KaiSign Registry SMT on Sepolia. Entries are keyed by (chainId, target), where target is the transaction destination address.

Verification flow:

  1. getLatestSpecForTarget(chainId, target) for the latest finalized, non-revoked UID

  2. getAttestation(uid) and check chainId, target, finalized and not revoked

  3. Compute the SMT leaf locally: keccak256(abi.encode(LEAF_TYPEHASH, chainId, target, metadataHash))

  4. Compare against the registry approvedLeaf(chainId, target, metadataHash)

Returns:

  • verified: true if leaf hashes match

  • source: 'leaf-verified' (success), 'local-metadata' (local file, no on-chain attestation), 'mismatch', or 'error'

  • attestation details including target, metadataHash, finalizedAt, revoked status

decode_transactionA

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.

get_cached_metadataA

Diagnostic: retrieve cached metadata status for a contract.

Use this to check if metadata is cached before making decode calls. Cached metadata provides significant token savings by avoiding re-transmission of full ABI and format definitions.

Returns:

  • Cache status (found/not found)

  • Approximate token count saved

  • Verification status

  • Cache statistics (hit rate, total entries)

clear_cacheA

Diagnostic: clear all cached metadata and verification results. Use sparingly.

prune_expired_cacheA

Diagnostic: remove expired entries from cache. Called automatically but can be triggered manually.

validate_transactionA

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)

put_payload_chunkA

Auxiliary to clear_sign_payload: stage a large transaction payload or calldata in small chunks, then call clear_sign_payload with payloadRef or dataRef.

Use when a single MCP call with full calldata is too large for the MCP proxy/gateway. Send chunks under the client/proxy limit; after complete=true, call:

  • clear_sign_payload({ payloadRef, compact: true }) for full transaction JSON/raw tx chunks

  • clear_sign_payload({ to, dataRef: payloadRef, chainId, value, compact: true }) for calldata-only chunks

clear_sign_payloadA

PRIMARY TOOL — use this for any transaction clear-signing, decoding, or safety question. Clear-signs any transaction payload from a transaction builder: LLM agent, wallet request, router API, custom code, or raw transaction.

Returns a unified signing block { verdict: safe|review|reject, reason, decodedCalls/totalCalls, attestedContracts/totalContracts }, a per-contract registry-attestation summary, a rendered call tree in displayText, and a signing policy. 'review' means fully decoded but registry attestation pending — show to the user; 'reject' means do not sign.

This is the generic pre-sign hook for transaction builders:

  1. Accepts a direct transaction {to,data,value,chainId}, nested {transaction:{...}} / {tx:{...}}, calldata aliases, or rawTx

  2. Normalizes it to the exact original transaction payload that must be signed

  3. Calls KaiSign clear-signing verification and decoding

  4. Returns displayText, intent, verification status, warnings, safe/autonomous decision fields, and signing policy

Builder UX rule: if the user gives only chainId, contracts, and actions, the agent should already know the desired artifact is an unsigned transaction. The user should not need to specify ABI safety instructions, nesting details, or return format. The agent may choose any realistic call path/nesting, but before encoding each call it should use get_function_selectors for the exact target address + chainId. Never guess a selector from model memory. Then call this tool on the final unsigned tx before signing/broadcasting. The final agent output should be the unsigned transaction fields: to, data, value, chainId.

Use this before any signing or broadcasting. Sign the returned transaction only after user/agent policy approval.

get_function_selectorsA

Auxiliary to clear_sign_payload: resolve function selectors from KaiSign local metadata for an exact contract address + chainId (anti-hallucination — never guess selectors from model memory).

Builder UX rule: when a user gives only lightweight input like chainId, contracts, and actions (for example "approve 1000 USDC" and "transfer 10 USDC"), the agent should already know the desired artifact is an unsigned transaction. The user should not need to specify ABI safety instructions, nesting details, or return format. The agent may use the listed contracts to build a realistic batched, routed, nested, or account-abstraction transaction when that is implied by the contract set, but every encoded call must use a function returned by this tool for the exact target address + chainId. If a selector is not returned for the exact address + chainId, do not use it. The final agent output should be the unsigned transaction fields: to, data, value, chainId.

Use this before encoding calldata when an agent or transaction builder only knows a function name like executeBatch(...), swap(...), approve(...), or transfer(...). It returns canonical ABI signatures and computed selectors for that specific contract only, so agents do not hallucinate selectors from training data or reuse a same-named ABI from another contract. For signing flows, still call clear_sign_payload on the final unsigned transaction before signing/broadcasting.

get_clear_sign_promptA

Get a clear signing prompt for user confirmation. Prefer clear_sign_payload — it returns this prompt plus payload normalization and signing policy; this tool is a subset for direct {to,data} input.

This tool provides a formatted display for transaction signing flows:

  1. Takes a transaction payload (to, data, value, chainId)

  2. Verifies the contract against KaiSign on-chain registry

  3. Decodes the transaction intent

  4. Returns formatted display text for user confirmation

Use this when presenting transactions to users for signing. The response includes:

  • displayText: Formatted text ready for display (includes verification badge, intent, warnings)

  • verified: Whether the contract has on-chain verified metadata

  • verificationBadge: "✓ Verified", "⚠ Local Metadata", or "⚠ Unverified"

  • intent: Human-readable description of transaction

  • functionName: The function being called

  • warnings: Any concerns about the transaction

  • transaction: The original transaction payload for signing

init_submission_burnerA

Create an encrypted gas-only burner for sponsored ERC-7730 metadata submissions.

This is the default setup step for the full sponsored submission workflow. It writes an encrypted burner keystore and creates a password file if one does not already exist. Fund the returned submitterAddress with Sepolia ETH only; the SubmissionSponsor supplies the bond token.

After funding, call get_submission_burner_status and then submit_sponsored_metadata.

get_submission_burner_statusA

Check the configured ERC-7730 sponsored-submission burner without decrypting it.

Returns the burner submitter address, sponsor, Sepolia balance, and whether it is funded. Use this before submit_sponsored_metadata.

submit_sponsored_metadataA

Run the full sponsored ERC-7730 metadata submission workflow.

This is the default full-submission path. It posts the EIP-4844 blob from the configured burner EOA, calls SubmissionSponsor.sponsoredCommit, waits for the minimum reveal delay, and calls SubmissionSponsor.sponsoredReveal. It requires a funded Sepolia gas-only burner created by init_submission_burner. A smart account cannot post the blob itself; for smart-account commit/reveal flows use prepare_sponsored_commit and provide an externally posted blob hash.

init_submission_scopeA

Create a keyless public scope manifest for preparing smart-account ERC-7730 submission transactions.

This stores only the submitter address and allowed submission selectors. It does not create or store signing material. Use prepare_sponsored_commit and prepare_sponsored_reveal with the manifest.

get_submission_scope_statusA

Check whether a scoped direct submitter address is eligible for direct ERC-7730 registry submission.

Direct submission is not the default. Use it only when this tool reports eligible=true, meaning the address has Sepolia gas and at least minBond of the permissioned KaiSign bond token. If eligible=false, use the sponsored smart-account/default workflow instead.

prepare_sponsored_commitA

Prepare an unsigned smart-account-callable SubmissionSponsor.sponsoredCommit transaction.

Use this when a smart account should execute the commit/reveal calls. The EIP-4844 blob still must be posted by an EOA or backend; pass blobHash when the blob was posted externally. The tool writes a state file used by prepare_sponsored_reveal.

prepare_direct_commitA

Prepare an unsigned direct registry commitSpec transaction only if the scoped address has the permissioned bond token.

This tool first checks get_submission_scope_status internally. If the address lacks Sepolia gas or minBond of the permissioned bond token, it refuses and tells the caller to use the sponsored smart-account/default path. The EIP-4844 blob still must be posted by an EOA/backend; pass blobHash when already posted.

prepare_direct_revealA

Prepare unsigned direct registry reveal transactions only if the scoped address has the permissioned bond token.

This emits the exact bond-token approval plus revealSpec transaction. It refuses when the scoped address is not eligible, so callers fall back to the sponsored smart-account/default workflow.

prepare_direct_voteA

Prepare unsigned direct Reality.eth VALID vote transactions only if the scoped address has the permissioned bond token.

This emits the exact bond-token approval plus submitAnswerERC20 transaction. It refuses when the scoped address is not eligible, so callers should use the sponsored/default path and avoid direct voting.

prepare_sponsored_revealA

Prepare an unsigned smart-account-callable SubmissionSponsor.sponsoredReveal transaction.

Call this after the sponsored commit transaction is mined and you have its commitmentId. It uses the state file written by prepare_sponsored_commit.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.9/5.0

Scored across 20 tools

Disambiguation3/5

clear_sign_payload is explicitly marked as primary, but decode_transaction, validate_transaction, get_clear_sign_prompt, and verify_contract_metadata substantially overlap with it, especially for signing and decoding tasks. Descriptions help steer agents toward the preferred tool, but several plausible choices remain for the same workflow.

Naming Consistency5/5

All tools use consistent snake_case and begin with clear action verbs such as get_, init_, prepare_, submit_, verify_, clear_, and validate_. There is no mixed camelCase or vague naming, making the convention predictable throughout.

Tool Count3/5

The 20-tool surface is heavy and includes several diagnostic/cache tools plus multiple legacy or subset variants of the signing workflow. The domain is complex enough to justify many operations, but the set feels borderline over-scoped rather than tightly curated.

Completeness4/5

Coverage is broad: clear-signing and decoding, registry verification, cache management, and sponsored/direct submission paths with commit, reveal, and vote preparation. Minor gaps remain around submission lifecycle tracking or post-submission cleanup, but core workflows are covered.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues