upsert_agent_test_plan
Create (no id) or update (id) a fitness test plan of an agent. Required on create: agent_id, name, test_ids (ordered ids of this agent's cases), takt (manuell|taeglich|woechentlich). uhrzeit = local time Europe/Zurich, default 06:30; wochentag 1 = Monday … 7 = Sunday (woechentlich, default 1). pflicht (default true) = counts for «fit». bei_rot = {ticket: bool, nachricht_an_user_ids: [], nachricht_kanal: "mail"}. next_run_at is computed. Admins, planners and agents with the right only.
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": {
"agent_id": "<agent_id>"
},
"name": "upsert_agent_test_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ID of an existing test plan to update; omit to create | |
| name | No | Name of the agent test plan | |
| takt | No | How often the plan runs; required on create | |
| aktiv | No | Whether the entry is active | |
| bei_rot | No | Actions on a red result: {ticket, nachricht_an_user_ids, nachricht_kanal} | |
| pflicht | No | Whether the plan counts towards the agent's fit status; default true | |
| uhrzeit | No | HH:MM local time Europe/Zurich (default 06:30) | |
| agent_id | Yes | ID of the agent | |
| test_ids | No | List of IDs (test) | |
| wochentag | No | Weekday for weekly plans, 1 = Monday to 7 = Sunday; default 1 | |
| beschreibung | No | Free-text description of the test plan |