Skip to main content
Glama
KaiSign MCP Server

KaiSign MCP Server

Official
by Kai-Sign

prepare_sponsored_commit

Builds an unsigned SubmissionSponsor.sponsoredCommit transaction for a smart account to run commit/reveal calls, writes state for the reveal step, and accepts an externally posted EIP-4844 blob hash.

Instructions

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.

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_sponsored_commit"
  }
}

Input Schema

NameRequiredDescriptionDefault
outputNoOptional output path for the submission state file
sponsorNoOptional SubmissionSponsor address override
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

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 disclose key behavior: the transaction is unsigned, a state file is written and later consumed by prepare_sponsored_reveal, and blob posting is out of scope. It does not say whether an existing state file is overwritten, whether init_submission_scope/keystore must exist first, or what the returned payload looks like.

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 sentences, front-loaded with what is produced, then the usage condition, then the cross-tool dependency. Little waste; the only mild ambiguity is referring to 'commit/reveal calls' in a commit-only preparation tool.

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 six-parameter preparation tool with no output schema and no annotations, the description covers the mutation side effect, the blob constraint, and the downstream consumer, which is enough to call it correctly against its siblings. The return payload is left implicit, which is the main remaining 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 six parameters are already documented in the schema and the baseline is 3. The description adds real meaning only for blobHash (the externally-posted case); keystore, metadata, targetAddress, sponsor, and output are not elaborated beyond the schema.

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: prepares an unsigned SubmissionSponsor.sponsoredCommit transaction, and qualifies it as smart-account-callable. The sentence 'Use this when a smart account should execute the commit/reveal calls' implicitly separates it from the direct/EOA siblings, so an agent can route without opening a 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?

Gives a concrete selection condition (smart account should execute the commit/reveal calls) and a constraint that selects an alternative path (the blob must be posted by an EOA/backend; pass blobHash if posted externally). It stops short of naming prepare_direct_commit as the non-smart-account alternative or stating when not to use this tool.

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