Record an agent action (audit)
record_actionAppend tamper-evident audit records for agent actions, using hash-chaining to detect any later modifications.
Instructions
Append a tamper-evident audit record for something an agent did. Entries are hash-chained, so any later modification is detectable.
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": {
"agent_id": "<agent_id>",
"action": "<action>",
"resource": "<resource>",
"outcome": "<outcome>",
"rationale": "<rationale>"
},
"name": "record_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| outcome | Yes | What happened, e.g. 'success' or 'error' | |
| agent_id | Yes | ||
| resource | Yes | ||
| rationale | Yes | Why the agent took this action | |
| contains_phi | No | Whether this action touched protected health information |