Skip to main content
Glama

setup_analyse_agent

Destructive

Prepare the nightly Analyse-Agent for this tenant: provision_agent «Analyse-Agent» (values, skill «Naechtliche Analyse», permissions get_analysepaket/record_ersparnis/save_agent_bericht/fetch_unmut_offen/record_unmut) and a cron schedule row for the tenant's dev-agent runner (dev_agent_session_schedules, default 05:45 Europe/Zurich, engine claude, session key analyse-agent, fresh session every night). Without ausfuehren:true it only returns the plan (agent arguments, runner found, schedule row) and changes nothing. Optional: runner_id, user_id (runner owner; default: found from WhatsApp route / earlier schedules), uhrzeit (HH:MM). Admins (humans) only.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "setup_analyse_agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
uhrzeitNoNightly run time HH:MM (Europe/Zurich); default 05:45
user_idNoID of the user
runner_idNoID of the runner
ausfuehrenNotrue applies the setup; otherwise only the plan is returned

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / ausfuehren / description
      Added value: +"true applies the setup; otherwise only the plan is returned"
    • addedInput schema / properties / runner_id / description
      Added value: +"ID of the runner"
    • addedInput schema / properties / uhrzeit / description
      Added value: +"Nightly run time HH:MM (Europe/Zurich); default 05:45"
    • addedInput schema / properties / user_id / description
      Added value: +"ID of the user"
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Adds substantial behavior beyond annotations: dry-run-by-default semantics, the exact permissions granted, Europe/Zurich scheduling, "engine claude", session key, and "fresh session every night". It does not address what happens if the tool is re-run for an already-configured tenant (duplication vs. overwrite), which is the main risk implied by idempotentHint=false and destructiveHint=true.

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?

Front-loaded with the purpose, then the plan-only caveat, then parameter notes — a sensible order with no filler sentences. The dense parenthetical enumeration and inline German quoted names make it harder to scan than it needs to be, but every clause carries information.

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 multi-step provisioning tool with no output schema, the definition covers what is created, the auth requirement, the default dry-run, and parameter defaults — enough to invoke it safely. The remaining gap is re-run/conflict behavior and a fuller picture of what the returned plan contains.

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 schema already documents all four parameters; the baseline would be 3. The description goes further by explaining the default resolution for user_id (runner owner inferred from the WhatsApp route or earlier schedules) and the timezone for uhrzeit, which the schema text only partially states.

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?

"Prepare the nightly Analyse-Agent for this tenant" gives a specific verb and resource, then enumerates the concrete artifacts created (agent with values, skill «Naechtliche Analyse», five named permissions, and a dev_agent_session_schedules row). Naming provision_agent as an embedded sub-step makes clear this is a composite convenience tool rather than the raw provisioning sibling.

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?

Clear context: use when a tenant needs the nightly Analyse-Agent wired up end-to-end, and "Admins (humans) only" states the caller restriction. It also explains the plan-vs-apply condition. It does not explicitly say when to prefer plain provision_agent or create_agent instead, so an alternative path is only implied.

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.