Skip to main content
Glama

get_agent_kennzahlen

Read-only

Read the daily agent metrics snapshot (runs ok/failed, handoffs done/partial/failed/open >24h, agent todos completed, fitness green/red, tokens by type and model incl. cache read/write, cost in CHF from the price table, lab orders/reports and lead times where the lab module is on) for a date range, summed per day, week (ISO), month or year. Required: von, bis (YYYY-MM-DD, Europe/Zurich, inclusive). Optional: agent_id, ablauf (laborder|bericht|offerte|lead|plan|problem|sonstiges), kanal (takt|uebergabe|whatsapp|manuell…), kennzahl, gruppierung (tag|woche|monat|jahr, default tag), nach_modell (default false: token rows summed over models). Every number comes with belege (ids of runs, handoffs, todos, token rows) and the result states datenstand (latest erfasst_am). abgeleitet holds success rate, cache hit rate, mean lead time, cost and tokens per order. Read-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": {
      "von": "<von>",
      "bis": "<bis>"
    },
    "name": "get_agent_kennzahlen"
  }
}

Input Schema

NameRequiredDescriptionDefault
bisYesLast day, YYYY-MM-DD, inclusive
vonYesFirst day, YYYY-MM-DD (Europe/Zurich)
kanalNoOnly this channel (e.g. takt, uebergabe, whatsapp, manuell)
ablaufNoOnly this workflow type (e.g. laborder, bericht, offerte)
agent_idNoID of the agent
kennzahlNoOnly this metric name (e.g. fitness_fit)
gruppierungNoPeriod to sum per; default tag
nach_modellNotrue splits token rows per model; default false

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / ablauf / description
      Added value: +"Only this workflow type (e.g. laborder, bericht, offerte)"
    • addedInput schema / properties / agent_id / description
      Added value: +"ID of the agent"
    • addedInput schema / properties / gruppierung / description
      Added value: +"Period to sum per; default tag"
    • addedInput schema / properties / kanal / description
      Added value: +"Only this channel (e.g. takt, uebergabe, whatsapp, manuell)"
    • addedInput schema / properties / kennzahl / description
      Added value: +"Only this metric name (e.g. fitness_fit)"
    • addedInput schema / properties / nach_modell / description
      Added value: +"true splits token rows per model; default false"
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover readOnlyHint and openWorldHint, yet the description adds genuinely new behavioral facts: every number carries belege (id provenance), the result reports datenstand, and abgeleitet holds derived rates. That provenance and freshness reporting is exactly the kind of context annotations cannot express. It stops short of a 5 only because pagination/limits and size of the response are unaddressed, and it mildly repeats 'Read-only' already implied by readOnlyHint.

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?

The scope and required parameters are front-loaded and every clause carries information; nothing is padding. It is, however, a single very long parenthetical sentence, and the enumerated metric list could be trimmed without losing decision-relevant content.

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?

This is an 8-parameter read tool with no output schema, so the description must carry return-shape information, and it does: belege, datenstand, and abgeleitet are spelled out along with the summed-per-period semantics. An agent has everything needed to call it correctly and interpret the result.

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?

With 100% schema coverage the baseline is 3, but the description goes further: it expands ablauf with values absent from the schema (lead, plan, problem, sonstiges), clarifies nach_modell's effect on token rows, and restates the grouping default. The added meaning for kennzahl and the filter interactions justifies a 4.

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?

The description opens with a specific verb+resource ('Read the daily agent metrics snapshot') and enumerates exactly what the snapshot contains (runs, handoffs, todos, fitness, tokens, cost, lab data) plus aggregation levels. It never names a sibling, so it does not actively steer the agent away from kennzahlen_nachrechnen or get_agent_report, which is why it falls short of a 5.

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?

It states required parameters (von, bis), their format and timezone, and the optional filters with defaults (gruppierung default tag, nach_modell default false). Usage context is clear, but there is no explicit when-to-use-versus-when-not guidance or reference to an alternative tool for recomputing rather than reading.

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.