Skip to main content
Glama

upsert_agent_test

DestructiveIdempotent

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

NameRequiredDescriptionDefault
idNoExisting case to update; omit to create
nameNoShort, e.g. «Laborder: Warum-Frage per WhatsApp»
tagsNoTags (keywords)
aktivNoDefault true
kanalNoChannel the test case runs on; required on create
quelleNoIncident or ticket the case comes from
agent_idYesID of the agent
schritteNoList of steps. Channel whatsapp/webchat/server_job: [{nachricht: "…"}] (a plain string is read as {nachricht}). Channel mcp: [{werkzeug: "tool_name", argumente: {…}}].
als_user_idNoUser the case runs as (must be a member of this tenant)
erwartungenNoChecks, 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.
beschreibungNoFree-text description of what the test case checks
nebenwirkungenNoSide 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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / agent_id / description
      Added value: +"ID of the agent"
    • addedInput schema / properties / beschreibung / description
      Added value: +"Free-text description of what the test case checks"
    • addedInput schema / properties / kanal / description
      Added value: +"Channel the test case runs on; required on create"
    • addedInput schema / properties / tags / description
      Added value: +"Tags (keywords)"
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations mark this as destructive and idempotent, but the description adds substantial unannotated behavior: side-effect modes default to 'simulieren' (nothing is executed, the call is logged), 'echt' calls create artifacts that 'aufraeumen: true' deletes, 'umleiten' redirects mail to a test mailbox, and read-only tools always run for real. It also discloses the required authorisation roles and the whatsapp default for als_user_id.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and create/update semantics are front-loaded, and the telegraphic phrasing packs a lot into few words for a 12-parameter nested tool. Some sentences are dense run-ons and the trailing fragment 'Admins, planners and agents with the right only.' reads awkwardly, but nothing is truly wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, deeply nested upsert with no output schema, the definition covers conditional requirements, step formats, defaults and side-effect semantics thoroughly. The main omission is what the tool returns on success (e.g. the created case id), which matters for a create-and-then-run workflow.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds genuinely new meaning: it states that agent_id, name, kanal and schritte are required on create even though the schema only marks agent_id required, and it explains the plain-string shorthand for schritte alongside the per-channel step shapes. It largely restates the erwartungen/nebenwirkungen text that already appears in the schema, keeping it from a 5.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb pair and resource: 'Create (no id) or update (id) one fitness test case of an agent.' The parenthetical immediately disambiguates the two modes, and the resource ('fitness test case of an agent') is distinct from siblings like upsert_agent_test_plan or run_agent_test_plan.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Tells the agent exactly how to select create vs update (omit id vs supply id) and states who may call it ('Admins, planners and agents with the right only'). It does not explicitly route to siblings such as upsert_agent_test_plan or run_agent_test_plan, so it stops short of naming alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.