Reference
List test runs
Recent test runs with pass and fail counts.
| REST | GET /api/v1/agents/{agent_id}/tests |
| MCP tool | list_test_runs |
| Classification | Read (changes nothing) |
| Scope | agents:read |
| Minimum role on the agent | editor |
| Confirmation | Not needed |
| Retry safety | Safe to retry with the same input |
| Success status | 200 |
What it does
Recent test runs with pass and fail counts.
Side effects
None. It only reads.
Inputs
| Name | Type | Required | In | Description |
|---|---|---|---|---|
agent_id | string | yes | path | The agent id (agt_...), from list_agents. |
limit | integer | no | query | At most 50. Default 10. |
Example
curl "https://covo.lanaai.io/api/v1/agents/agt_4edc89bb2964/tests?limit=5" \
-H "Authorization: Bearer $COVO_TOKEN"{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "list_test_runs",
"arguments": {
"agent_id": "agt_4edc89bb2964",
"limit": 5
}
}
}Response
Returns an object with items. This is a real response, shortened to two items per list.
{
"items": [
{
"id": "68c583c0-3bb6-42d3-85b4-193ea6eeca79",
"revision": 7,
"passed": 1,
"failed": 0,
"client": {
"name": "docs-examples",
"interface": "rest"
},
"created_at": "2026-10-07T20:14:41.959Z"
}
]
}Over MCP the same object comes back as the tool result, in structuredContent and as JSON text.
Errors
| Status | Code | Meaning |
|---|---|---|
| 401 | unauthorized | No token, or it is unknown, revoked or expired. OAuth apps refresh or reconnect. |
| 403 | account_suspended | The account that owns the token is paused. |
| 403 | insufficient_scope | The token lacks agents:read. |
| 404 | agent_not_found | Unknown agent, or not reachable with this token. |
| 400 | bad_request | An input is invalid; field names it. |
| 429 | rate_limited | Wait Retry-After seconds. |