{"serverInfo":{"name":"rohan-zk-shield","version":"0.7.0"},"configSchema":{"type":"object","properties":{"apiKey":{"type":"string","description":"Optional Rohan Protocol API Key. Leave empty for free sandbox access."}}},"tools":[{"name":"rohan_execute_handshake","description":"Executes a confidential zero-knowledge state transition on Midnight Blockchain. Confidential parameters are automatically canonicalized (RFC 8785) and hashed in client RAM—never exposed on-chain or in model logs.","inputSchema":{"type":"object","properties":{"agentId":{"type":"string","description":"Decentralized Identifier (DID) of initiating agent"},"actionSummary":{"type":"string","description":"Public high-level action label"},"confidentialPayload":{"type":"object","description":"OPTIONAL confidential parameters (budgets, deals, PII)"},"counterpartyId":{"type":"string","description":"Optional counterparty agent identifier"},"intent":{"type":"string","description":"Legacy fallback for actionSummary"},"timestamp":{"type":"integer","description":"Signed request timestamp in milliseconds; required with identity."},"identity":{"type":"object","description":"Optional Ed25519 request identity. The signature must bind the generated intent, timestamp, network, contract, and circuit.","properties":{"did":{"type":"string"},"algorithm":{"type":"string","const":"Ed25519"},"signature":{"type":"string","description":"64-byte Ed25519 signature as canonical unpadded base64url."},"nonce":{"type":"string","description":"32 random bytes as canonical unpadded base64url."}},"required":["did","algorithm","signature","nonce"],"additionalProperties":false}}}},{"name":"rohan_get_ledger_state","description":"Reads the current anchored state of the Rohan Protocol smart contract on Midnight Preprod L1. Returns state root, block height, and last mined transaction hash from memory cache.","inputSchema":{"type":"object","properties":{}}},{"name":"rohan_get_transaction_history","description":"Lists historical settlement transactions and receipts anchored on Midnight Preprod L1.","inputSchema":{"type":"object","properties":{"limit":{"type":"integer","description":"Maximum number of historical transactions to return (default: 10, max: 50)."}}}},{"name":"rohan_verify_commitment","description":"Verifies a plaintext confidential payload against its SHA-256 digest using RFC 8785 JSON Canonicalization. Supply the inner payload digest, not the outer on-chain intentHash. Zero gas cost; runs in local memory.","inputSchema":{"type":"object","properties":{"payload":{"type":"object","description":"The plaintext contract, agreement, or intent data to be verified."},"expectedDigest":{"type":"string","pattern":"^(?:sha256:|0x)?[0-9a-fA-F]{64}$","description":"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."}},"required":["payload","expectedDigest"]}}],"resources":[],"prompts":[]}