Reference
lg_evals_run: Run an agent's eval suite (dry runs)
Run an agent's eval suite as dry runs on its draft or live version and score them.
- Changes data: yes
- Credential scope:
agents:write(an API key's scopes, or what you allowed when connecting with OAuth) - Assistant level: an assistant at Read and draft or above
Inputs
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | yes | |
body | object (target, version_id, background) | no | |
body.target | "draft" | "current" | no | |
body.version_id | string | no | |
body.background | boolean | no | Queue it (GET /v1/agents/:id/evals lists the result when done) |
Example MCP call
A tools/call request to https://manage.restolayer.com/mcp:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "lg_evals_run",
"arguments": {
"id": "agt_01HZXEXAMPLE",
"body": {
"target": "draft"
}
}
}
}Example REST call
The same thing over REST (POST /v1/agents/:id/evals/run):
curl -s -X POST "https://manage.restolayer.com/v1/agents/agt_01HZXEXAMPLE/evals/run" \
-H "Authorization: Bearer $LG_API_KEY" \
-H "Content-Type: application/json" \
-d '{"target":"draft"}'All tools: MCP tools. Connecting: connect your assistant.