Skip to main content
Glama
gaussia-mcp

gaussia-mcp

Official
by gaussialabs

Compute a blind-matching commitment

sealed_commit
Read-only

Computes a blind-matching commitment hash for a job result and generates a secret salt when omitted, enabling publish-before-reveal result verification.

Instructions

Computes a Gaussia blind-matching commitment: keccak256(abi.encode(bytes32 jobId, bytes32 resultHash, address wallet, bytes32 salt)), as defined in SPEC.md with shared test vectors. A node publishes this before seeing the other node's result and reveals the inputs later. If no salt is given, 32 random bytes are generated and returned: keep them secret until the reveal. Offline, nothing is sent or stored.

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": {
      "job_id": "<job_id>",
      "result_hash": "<result_hash>",
      "wallet": "<wallet>"
    },
    "name": "sealed_commit"
  }
}

Input Schema

NameRequiredDescriptionDefault
saltNoSecret salt (omit to generate one): 32 bytes, 0x followed by 64 hex characters.
job_idYesJob ID: 32 bytes, 0x followed by 64 hex characters.
walletYesNode wallet address (0x + 40 hex). Mixed case must be a valid EIP-55 checksum.
result_hashYesHash of the node's result: 32 bytes, 0x followed by 64 hex characters.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.9.2

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnly/no-destructive/no-open-world, and the description corroborates and enriches these: 'Offline, nothing is sent or stored' confirms no side effects, and the omitted-salt path (32 random bytes generated and returned, keep secret until reveal) explains non-obvious behavior that accounts for idempotentHint=false. It also surfaces the security obligation around the salt that an agent could not infer from structured fields.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences: formula first, protocol role second, salt-fallback and side-effect-free guarantee last. Zero filler and the most decision-relevant facts are front-loaded.

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 pure-computation tool with no output schema, the description covers the algorithm, the salt fallback, the secrecy requirement, and the absence of side effects. It only lightly implies the returned value shape (commitment, plus generated salt), which is a minor gap rather than a blocker.

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 coverage is 100% and every parameter, including the salt's 'omit to generate one' behavior, is already documented in the schema. The description echoes the salt-generation behavior and adds a secrecy caveat rather than new format or constraint details, so it sits at the baseline for a fully documented 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 (computes) and resource (a Gaussia blind-matching commitment) and pins it down with the exact preimage formula keccak256(abi.encode(jobId, resultHash, wallet, salt)), so an agent knows precisely what output to expect. The 'publishes before seeing the other node's result, reveals inputs later' framing distinguishes it from a reveal/verify sibling.

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 clear operating condition — call this before seeing the counterparty's result — and implies the reveal happens separately later. It never explicitly names an alternative tool (e.g. verify_reveal) or states exclusions, so it stops short of full when/when-not routing.

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