Skip to main content
Glama

upsert_agent_test_plan

DestructiveIdempotent

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

NameRequiredDescriptionDefault
idNoID of an existing test plan to update; omit to create
nameNoName of the agent test plan
taktNoHow often the plan runs; required on create
aktivNoWhether the entry is active
bei_rotNoActions on a red result: {ticket, nachricht_an_user_ids, nachricht_kanal}
pflichtNoWhether the plan counts towards the agent's fit status; default true
uhrzeitNoHH:MM local time Europe/Zurich (default 06:30)
agent_idYesID of the agent
test_idsNoList of IDs (test)
wochentagNoWeekday for weekly plans, 1 = Monday to 7 = Sunday; default 1
beschreibungNoFree-text description of the test plan

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changed
    • addedInput schema / properties / agent_id / description
      Added value: +"ID of the agent"
    • addedInput schema / properties / aktiv / description
      Added value: +"Whether the entry is active"
    • addedInput schema / properties / bei_rot / description
      Added value: +"Actions on a red result: {ticket, nachricht_an_user_ids, nachricht_kanal}"
    • addedInput schema / properties / beschreibung / description
      Added value: +"Free-text description of the test plan"
    • addedInput schema / properties / id / description
      Added value: +"ID of an existing test plan to update; omit to create"
    • addedInput schema / properties / name / description
      Added value: +"Name of the agent test plan"
    • addedInput schema / properties / pflicht / description
      Added value: +"Whether the plan counts towards the agent's fit status; default true"
    • addedInput schema / properties / takt / description
      Added value: +"How often the plan runs; required on create"
    • addedInput schema / properties / test_ids / description
      Added value: +"List of IDs (test)"
    • addedInput schema / properties / wochentag / description
      Added value: +"Weekday for weekly plans, 1 = Monday to 7 = Sunday; default 1"
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Beyond the annotations (destructive, idempotent, not read-only), the description discloses timezone semantics (Europe/Zurich), default values, the computed nature of next_run_at, and permission requirements. It does not explain the practical consequence of destructiveHint=true — that supplying test_ids replaces the plan's ordered case list wholesale — nor whether omitted fields on update are preserved or cleared.

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

Conciseness5/5

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

A single dense paragraph, front-loaded with the create/update discriminator and then the required set, defaults, and permissions in diminishing order of importance. Telegraphed fragments carry real information with no filler sentences.

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?

Eleven parameters, a nested object, and destructive upsert semantics make this a complex tool, and the description covers modes, requireds, defaults, timezone handling, computed fields, and auth. The remaining gap is update semantics for omitted fields and what identifier comes back, which matters given there is no output schema.

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 baseline is 3; the description earns an extra point by adding cross-parameter context the schema cannot express: which fields are jointly required on create, that test_ids are ordered ids of this agent's cases, and that pflicht means 'counts for «fit»'. It also spells out the bei_rot shape and the weekday numbering convention.

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

Purpose4/5

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

Opens with a specific verb+resource ('Create (no id) or update (id) a fitness test plan of an agent') and names the discriminator between the two modes. It is clearly distinct from upsert_agent_test (individual cases) and run_agent_test_plan (execution), though it does not name those siblings explicitly.

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?

Gives a concrete create-vs-update rule (omit id to create, supply id to update), enumerates the fields required on create, and states the authorization scope ('Admins, planners and agents with the right only'). It stops short of saying when to use a different tool, e.g. delete_agent_test_plan for removal or run_agent_test_plan to execute.

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.