record_tool_outcome
Record tool-call outcomes directly, creating a new record on first call and appending to a rolling window thereafter. Throws a conflict error on concurrent writer mismatch.
Instructions
v2.1.0 — Record a single tool-call outcome directly via ToolAffordanceManager (bypasses ToolCallObserver). Creates the record on first call; appends to rolling window on subsequent. Throws "conflict" on concurrent writer mismatch.
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": {
"toolName": "<toolName>",
"outcome": "<outcome>"
},
"name": "record_tool_outcome"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| outcome | Yes | ||
| toolName | Yes | ||
| durationMs | No | Wall-clock duration. Optional. | |
| errorMessage | No | Required when outcome is failure or partial (ranked in commonFailureModes). |