Record an agent action
record_actionRecord an action an agent took (or was blocked from taking) with tokens, cost and value. Pass idempotency_key to make retries safe. Requires member role.
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": {
"workspace_id": "<workspace_id>",
"agent": "<agent>",
"action_type": "<action_type>",
"target_system": "<target_system>",
"status": "<status>"
},
"name": "record_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | Yes | ||
| model | No | ||
| run_id | No | ||
| status | Yes | ||
| metadata | No | ||
| tokens_in | No | ||
| latency_ms | No | ||
| tokens_out | No | ||
| action_type | Yes | ||
| approval_id | No | ||
| cost_center | No | ||
| compensation | No | ||
| workspace_id | Yes | ||
| minutes_saved | No | ||
| target_system | Yes | ||
| blocked_reason | No | ||
| model_cost_usd | No | ||
| idempotency_key | No | ||
| decision_record_id | No | ||
| value_protected_usd | No | ||
| compensates_action_id | No |