haldir_log_audit_action
Records each tool call to a tamper-evident audit trail using SHA-256 hash chaining and Merkle-tree proofs, so actions remain retroactively verifiable.
Instructions
Log a tool call to the audit trail. The entry is SHA-256 hash-chained and leaf-hashed into the tenant's RFC 6962 Merkle tree so it's retroactively provable.
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": {
"session_id": "<session_id>",
"tool": "<tool>",
"action": "<action>"
},
"name": "haldir_log_audit_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | Yes | Tool name (e.g. 'stripe', 'postgres') | |
| action | Yes | Verb (e.g. 'charge', 'read') | |
| details | No | Arbitrary JSON metadata | |
| cost_usd | No | USD charged by this action | |
| session_id | Yes |