Skip to main content
Glama
Rohan Shield

Rohan Shield

Official

rohan_verify_commitment

Read-onlyIdempotent

Cryptographically audit a plaintext payload or portable audit bundle offline in local memory, checking SHA-256 digests, Ed25519 signatures, and intentHash binding without gas.

Instructions

Cryptographically audits a plaintext payload and/or a portable RohanAuditBundle offline in local memory (0 gas). Provide either expectedDigest with payload, or auditBundle (with optional payload for plaintext verification). Never pass the outer timestamp-salted intentHash as expectedDigest.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "rohan_verify_commitment"
  }
}

Input Schema

NameRequiredDescriptionDefault
payloadNoPlaintext contract, agreement, or confidential data object to verify.
auditBundleNoOptional portable RohanAuditBundle (schema: rohan-audit-bundle/v1) returned by rohan_execute_handshake. Verifies Ed25519 signature, intentHash binding, and payloadDigest.
expectedDigestNoExpected inner SHA-256 digest of the canonicalized payload (from actionSummary digest: sha256:<hash> or auditBundle.payloadDigest). Accepts raw hex, 0x, or sha256: prefixes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.8.2
    • addedInput schema / properties / auditBundle
      Added value: +{
      +  "description": "Optional portable RohanAuditBundle (schema: rohan-audit-bundle/v1) returned by rohan_execute_handshake. Verifies Ed25519 signature, intentHash binding, and payloadDigest.",
      +  "type": "object"
      +}
    • changedInput schema / properties / expectedDigest / description
      Previous value: -"The expected SHA-256 digest of the canonicalized confidential payload (the inner payload digest referenced as digest: sha256:<hash> in actionSummary), not the outer timestamp-salted on-chain intentHash. Accepts raw hex, 0x, or sha256: prefixes."New value: +"Expected inner SHA-256 digest of the canonicalized payload (from actionSummary digest: sha256:<hash> or auditBundle.payloadDigest). Accepts raw hex, 0x, or sha256: prefixes."
    • changedInput schema / properties / payload / description
      Previous value: -"The plaintext contract, agreement, or intent data to be verified."New value: +"Plaintext contract, agreement, or confidential data object to verify."
    • changedInput schema / required
      Previous value: -[
      -  "payload",
      -  "expectedDigest"
      -]New value: +[]
  2. Changed1 schema field changedv0.7.1
    • changedInput schema / properties / expectedDigest / description
      Previous value: -"The 64-character hexadecimal SHA-256 intent commitment (accepts raw hex, 0x, or sha256: prefixes)."New value: +"The expected SHA-256 digest of the canonicalized confidential payload (the inner payload digest referenced as digest: sha256:<hash> in actionSummary), not the outer timestamp-salted on-chain intentHash. Accepts raw hex, 0x, or sha256: prefixes."
  3. Addedv0.7.0

TDQS

A3.8/5.0
Behavior3/5

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

The readOnlyHint/idempotentHint/destructiveHint annotations already establish the safety profile, and 'offline in local memory (0 gas)' adds a useful execution model beyond them, plus a genuine anti-pattern warning. However, with no output schema, the description never says what verification produces — a boolean, a structured report, or a thrown error on mismatch — which is the key behavioral uncertainty for an audit tool.

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: what it does and its execution model first, then the two valid input configurations, then the critical pitfall. No filler, and the most failure-prone detail (intentHash) is placed last for emphasis rather than buried.

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

Completeness3/5

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

For a 3-parameter tool with nested objects and no output schema, the input side is well covered (modes, constraints, digest format caution). The completeness gap is the result side — an agent cannot tell whether success returns a verification report, a hash comparison, or throws on signature failure.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real semantics the schema does not: the mutual-exclusion/composition rules between payload, auditBundle and expectedDigest, and the explicit warning that expectedDigest must not be the outer timestamp-salted intentHash. Only the payload-alone-with-expectedDigest pairing is spelled out precisely; edge combinations still require inference.

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?

The description gives a specific verb and resource: 'Cryptographically audits a plaintext payload and/or a portable RohanAuditBundle'. The 'offline in local memory (0 gas)' clause implicitly separates it from the on-chain siblings (handshake, ledger state, transaction history), but it never names any sibling, so differentiation is inferred rather than stated.

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?

It states concrete calling conditions: pass expectedDigest with payload, or pass auditBundle (optionally with payload for plaintext verification), and it warns against passing the outer timestamp-salted intentHash as expectedDigest. What is missing is explicit routing guidance — when to verify versus when to call rohan_execute_handshake or inspect ledger state.

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