upsert_agent_test
Create (no id) or update (id) one fitness test case of an agent. Required on create: agent_id, name, kanal, schritte. List of steps. Channel whatsapp/webchat/server_job: [{nachricht: "…"}] (a plain string is read as {nachricht}). Channel mcp: [{werkzeug: "tool_name", argumente: {…}}]. Checks, all optional: werkzeuge_pflicht[], werkzeuge_verboten[], antwort_enthaelt[], antwort_enthaelt_nicht[], antwort_regex, max_zeichen, max_sekunden, ki_kriterium (an AI judge decides ok/not ok). Unknown keys are rejected. Side effects of tools with external effect: {standard: "simulieren"|"echt" (default simulieren — nothing is executed, the call is logged), werkzeuge: {tool: "simulieren"|"umleiten"|"echt"}, umleiten_an: test mailbox for mail-like tools in mode umleiten, aufraeumen: true deletes what an "echt" call created}. Read-only tools always run for real. als_user_id = in whose name the case runs (whatsapp default: the tenant's fitness test user). quelle = incident/ticket the case comes from. 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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Existing case to update; omit to create | |
| name | No | Short, e.g. «Laborder: Warum-Frage per WhatsApp» | |
| tags | No | Tags (keywords) | |
| aktiv | No | Default true | |
| kanal | No | Channel the test case runs on; required on create | |
| quelle | No | Incident or ticket the case comes from | |
| agent_id | Yes | ID of the agent | |
| schritte | No | List of steps. Channel whatsapp/webchat/server_job: [{nachricht: "…"}] (a plain string is read as {nachricht}). Channel mcp: [{werkzeug: "tool_name", argumente: {…}}]. | |
| als_user_id | No | User the case runs as (must be a member of this tenant) | |
| erwartungen | No | Checks, all optional: werkzeuge_pflicht[], werkzeuge_verboten[], antwort_enthaelt[], antwort_enthaelt_nicht[], antwort_regex, max_zeichen, max_sekunden, ki_kriterium (an AI judge decides ok/not ok). Unknown keys are rejected. | |
| beschreibung | No | Free-text description of what the test case checks | |
| nebenwirkungen | No | Side effects of tools with external effect: {standard: "simulieren"|"echt" (default simulieren — nothing is executed, the call is logged), werkzeuge: {tool: "simulieren"|"umleiten"|"echt"}, umleiten_an: test mailbox for mail-like tools in mode umleiten, aufraeumen: true deletes what an "echt" call created}. Read-only tools always run for real. |