record_test_result
Record that tests RAN and either passed or failed for a request.
Instructions
Record that tests RAN and either passed or failed for a request.
This is a STRONG signal — distinct from record_outcome which is the agent's self-report. Call this when actual test execution produced a real pass/fail outcome.
Args: request_id: the "request_id" field from the optimize_context response passed: True if all tests passed, False if any failed suite: optional name of the test suite (e.g. "pytest", "cargo test") details: optional short summary of what was tested
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": {
"request_id": "<request_id>",
"passed": "<passed>"
},
"name": "record_test_result"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| suite | No | ||
| passed | Yes | ||
| details | No | ||
| request_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |