Record agent action
record_agent_actionAppend one signed tool_call -> tool_result pair to a tamper-evident ledger. Call it after any consequential tool invocation — a payment, an outbound email, a write into a customer system — so there is a hash-chained record of what the agent asked for and what came back, signed at write time. Pass a stable run_id to keep an entire agent run in one chain, and parent_sha256 to link records explicitly; read the result back with get_provenance_chain. Returns { record_id, content_sha256, signature, recorded_at, verify_url }. Requires a Kamy API key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | Yes | Name of the tool that was invoked. | |
| run_id | No | Your identifier for this agent run. Reuse it across records to build one chain. | |
| server | Yes | Identifier of the MCP server (or tool provider) the call went to, e.g. 'kamy'. | |
| status | No | Outcome of the call. Defaults to ok. | |
| tool_call | No | The request you sent — typically the arguments object, verbatim. | |
| latency_ms | No | Wall-clock duration of the call. | |
| tool_result | No | The result you received back, verbatim. | |
| parent_sha256 | No | content_sha256 of the previous record in this run, to link the chain explicitly. |