Skip to main content
Glama

rohan_execute_handshake

Executes or previews a confidential handshake commitment on Midnight while keeping sensitive parameters hashed locally, so agents can settle actions without exposing secrets.

Instructions

Executes or locally previews a confidential handshake commitment on Midnight. Usage guidelines:

  • Use for a user-authorized settlement; set dryRun: true only when the user asks to preview, test, or inspect a commitment without on-chain settlement (default false).

  • Do not use for reads, history, status, or audit; use rohan_get_ledger_state, rohan_get_transaction_history, rohan_get_agent_status, or rohan_verify_commitment instead.

  • Keep sensitive values in confidentialPayload, actionSummary generic, and private keys out of tool arguments. Follow recoveryAction on errors; after replay check transaction history, and after signature errors check agent status. Payloads are canonicalized and hashed locally.

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": {
      "actionSummary": "<actionSummary>"
    },
    "name": "rohan_execute_handshake"
  }
}

Input Schema

NameRequiredDescriptionDefault
dryRunNoOnly set true when the user asks to preview, test, or inspect the commitment without settling on-chain. Defaults to false.
intentNoDeprecated alias. actionSummary remains required.
agentIdNoOptional Sovereign Agent DID. Defaults to the local signer's DID and must match it when provided.
actionSummaryYesRequired public high-level action label.
counterpartyIdNoOptional counterparty agent identifier.
confidentialPayloadNoOptional confidential parameters, canonicalized and hashed locally.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.8.3
    • addedInput schema / properties / dryRun
      Added value: +{
      +  "description": "Only set true when the user asks to preview, test, or inspect the commitment without settling on-chain. Defaults to false.",
      +  "type": "boolean"
      +}
  2. Changed9 schema fields changedv0.8.1
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / actionSummary / description
      Previous value: -"Public high-level action label (e.g. 'Vendor Agreement Execution', 'Database Audit Anchor')"New value: +"Required public high-level action label."
    • addedInput schema / properties / actionSummary / minLength
      Added value: +1
    • changedInput schema / properties / agentId / description
      Previous value: -"Decentralized Identifier (DID) of the initiating agent"New value: +"Optional Sovereign Agent DID. Defaults to the local signer's DID and must match it when provided."
    • changedInput schema / properties / confidentialPayload / description
      Previous value: -"OPTIONAL confidential parameters (budgets, deals, PII). Automatically canonicalized via RFC 8785 and hashed in local memory."New value: +"Optional confidential parameters, canonicalized and hashed locally."
    • changedInput schema / properties / counterpartyId / description
      Previous value: -"Optional counterparty agent identifier"New value: +"Optional counterparty agent identifier."
    • addedInput schema / properties / intent / deprecated
      Added value: +true
    • changedInput schema / properties / intent / description
      Previous value: -"Legacy fallback for actionSummary"New value: +"Deprecated alias. actionSummary remains required."
    • changedInput schema / required
      Previous value: -[
      -  "agentId"
      -]New value: +[
      +  "actionSummary"
      +]
  3. Addedv0.7.1

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare the mutation profile (readOnlyHint=false, openWorldHint=true, idempotentHint=false, destructiveHint=false), and the description adds real value on top: dryRun defaulting, local canonicalization/hashing, the confidentialPayload vs actionSummary secrecy split, and error triage via recoveryAction plus post-error follow-ups. It stops short of saying what a successful call returns or guarantees around the on-chain settlement, which leaves one behavioral gap.

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?

The core action sentence is front-loaded, then three compact bullets each carrying a distinct rule (dryRun condition, negative routing, secrecy/error handling). No sentence restates the title or the schema without adding a constraint.

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 6-parameter, non-idempotent, open-world on-chain mutation with no output schema, the definition covers the risky dimensions an agent must know: preview vs settle, secret handling, and error recovery paths. The only meaningful omission is any indication of what a successful settlement returns or how the commitment is confirmed.

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 per-parameter meaning is already documented and the baseline would be 3. The description still adds policy-level semantics the schema does not carry: keep sensitive values in confidentialPayload, keep actionSummary generic, and keep private keys out of arguments entirely.

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 pair (executes / locally previews) and a specific resource (confidential handshake commitment on Midnight), and explicitly separates itself from read/verify siblings by naming them. An agent can route correctly without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use (user-authorized settlement), a precise condition for the dryRun alternative (only when the user asks to preview, test, or inspect), and an explicit when-not list mapping each excluded case to a named sibling tool.

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