Skip to main content
Glama
KaiSign MCP Server

KaiSign MCP Server

Official
by Kai-Sign

prepare_direct_commit

Prepares an unsigned direct registry commit transaction after verifying the scoped address has the required bond token and gas; otherwise directs callers to the sponsored path.

Instructions

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.

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": {
      "metadata": "<metadata>"
    },
    "name": "prepare_direct_commit"
  }
}

Input Schema

NameRequiredDescriptionDefault
outputNoOptional output path for the submission state file
blobHashNoOptional already-posted EIP-4844 versioned blob hash
keystoreNoKeyless scope manifest created by init_submission_scope.kaisign/submission-keystore.json
metadataYesPath to the local ERC-7730 metadata JSON file
targetAddressNoOptional target deployment address when metadata has multiple deployments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

No annotations exist, so the description carries the full burden, and it does substantial work: it discloses the internal get_submission_scope_status check, the refusal behavior and its trigger conditions, that the output is unsigned, and that the EIP-4844 blob must still be posted externally. It stops short of saying what the tool returns or what the referenced submission state file contains.

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 with the precondition front-loaded and a clear escalation path second. Some sentences wrap awkwardly across line breaks, but no wording is 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 mutation-adjacent preparation tool with no annotations and no output schema, the definition covers preconditions, refusal behavior, and the blob-posting constraint. It omits what the caller receives back (raw unsigned tx vs. a written state file, given the 'output' parameter) and whether side-effect files are created, which leaves a modest gap.

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; the baseline is 3. The description adds only one piece of real semantic guidance, telling the caller to pass blobHash when the blob is already posted, which is useful but minor.

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 artifact: 'Prepare an unsigned direct registry commitSpec transaction', with a scope condition. It distinguishes itself from the sponsored path by naming that fallback, though it does not explicitly contrast with prepare_direct_reveal or prepare_direct_vote beyond the word 'commit'.

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?

Gives an explicit precondition ('only if the scoped address has the permissioned bond token') and an explicit when-not rule: if the address lacks Sepolia gas or minBond, the tool refuses and the caller should use the sponsored smart-account/default path. The alternative is described by path rather than by sibling tool name, leaving a small inference step.

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