Skip to main content
Glama

KPI trend by month

get_kpi_trend
Read-only

Retrieve month-by-month trends for a selected quality KPI, optionally filtered by service or period, to track performance changes over time.

Instructions

Month-by-month series for one KPI. Metrics: mttr_hours, mtta_minutes, mttd_minutes, incidents, customer_detected_pct, deploys_per_week_per_service, lead_time_hours, change_failure_rate_pct, defects_created, escape_rate_pct, open_defects_end_of_month.

Input Schema

NameRequiredDescriptionDefault
metricYes
periodNoWindow to cover (default: all)
serviceNoLimit to one service/component, e.g. 'checkout'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds the meaningful trait of monthly granularity for a single metric, but says nothing about default period behavior, how far back the series goes, or what a 'series' contains.

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

Conciseness3/5

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

Front-loaded and short, which is good, but the entire second sentence is a verbatim copy of the schema enum — pure redundancy that occupies most of the description without adding information.

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

Completeness3/5

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

No output schema exists, so the description carries some burden for explaining what comes back; 'month-by-month series' gives a hint but not the shape (list of periods? values?). With only three simple params and read-only annotations, it is minimally viable but leaves gaps.

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

Parameters3/5

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

Schema coverage is 67% and the description's metric list merely duplicates the enum already present in the schema, adding no new meaning. The 'one KPI' phrasing reinforces single-metric selection, but period and service semantics are left entirely to the schema.

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?

States a specific verb+resource: a month-by-month time series for a single KPI. The scope ('one KPI', monthly granularity) is clear, though it never names which sibling to prefer (get_mttr, get_dora_metrics) for the same underlying metrics.

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

Usage Guidelines2/5

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

No when-to-use / when-not-to-use guidance and no mention of alternatives, despite siblings like get_mttr and get_dora_metrics covering overlapping metrics. The agent must infer that this tool is for trending a metric over time rather than a point-in-time snapshot.

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