record_tool_call
Record a tool call by creating a signed RGE envelope with input and output hashes, appending it to the trace's audit chain to enable tamper-evident audit and verification.
Instructions
Capability 4 + 7: record a tool call (input + output hashes) as a signed RGE v0.2 envelope with the mcp_tool_audit block populated. Appends to the trace's audit chain and returns the new envelope's integrity hash. The envelope is persisted under ~/.phionyx/mcp_audit/<trace_id>/.json by default (configurable via PHIONYX_MCP_AUDIT_ROOT).
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": {
"turn_index": "<turn_index>",
"user_text": "<user_text>",
"producer": "<producer>"
},
"name": "record_tool_call"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| turn_index | Yes | ||
| user_text | Yes | ||
| producer | Yes | ||
| trace_id | No | ||
| tool_descriptor_hash | No | ||
| descriptor_change_detected | No | ||
| tool_permission_scope | No | ||
| input_hash | No | ||
| output_hash | No | ||
| approval_state | No | ||
| anomaly_flag | No | ||
| decision | No | release | |
| decision_reason | No | no policy violation | |
| runtime_policy_basis | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||