Skip to main content
Glama

kennzahlen_nachrechnen

DestructiveIdempotent

Admins only (humans): recompute the daily agent metrics snapshot for THIS tenant now, for the days up to yesterday (Europe/Zurich) — the nightly job only covers yesterday plus 3 days. Optional: ab (YYYY-MM-DD, first day) or tage (number of days ending yesterday, default 7); at most 32 days per call, go in steps for longer. Writes a new version only where numbers changed (older versions are kept, each with erfasst_am). Returns which days got a new version.

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": "kennzahlen_nachrechnen"
  }
}

Input Schema

NameRequiredDescriptionDefault
abNoFirst day to recompute, YYYY-MM-DD
tageNoNumber of days ending yesterday (default 7, max 32)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare the write/idempotent/destructive flags; the description adds what the annotations cannot: admin-only access, a 32-day cap per call, version-only-where-changed semantics, retention of older versions with their erfasst_am timestamp, and the return content. The versioned-write explanation is consistent with idempotentHint=true and does not contradict destructiveHint=true, which is simply the conservative write flag.

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?

The high-value constraints — admin-only, this tenant, time window, 32-day cap, versioning behavior — are packed into three front-loaded sentences with no filler. The em-dash clause explains the motivation without padding.

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

Completeness5/5

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

There is no output schema, and the description compensates by stating what is returned ('which days got a new version'). Combined with the timezone, cap, versioning and retention details, an agent has everything needed to invoke this rewrite tool correctly.

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 both parameters are already documented. The description still adds value by clarifying that 'ab' is the first day, that 'tage' counts backwards from yesterday (not from today), and that long ranges must be split into calls. That is real semantic gain beyond the schema, though the schema already carries the default and max.

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?

Uses a precise verb ('recompute') plus a specific resource ('the daily agent metrics snapshot for THIS tenant') and pins the time window ('days up to yesterday, Europe/Zurich'). It is easily distinguished from the read-only metrics tool and from the nightly job it is compensating for.

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 clear trigger: use it because the nightly job only covers yesterday plus 3 days, and it states the admin-only audience. It also says how to handle ranges beyond 32 days ('go in steps'). It stops short of naming an explicit read-only alternative or stating when NOT to use it, so it is strong context rather than a full when/when-not pair.

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.