Skip to main content
Glama

Get pull request metrics

get-pull-request-metrics-tool
Read-onlyIdempotent

Get pull request activity metrics for the authenticated user's team. Returns PR count, code review count, average quality score, active contributors, and PR size distribution with period-over-period comparison.

Input Schema

NameRequiredDescriptionDefault
periodNoReporting period. Defaults to rolling_30d.rolling_30d

Output Schema

NameRequiredDescriptionDefault
teamYesTeam name.
periodYesHuman-readable period label.
qualityYesCode quality score metrics with deltas.
activityYesPR and review activity metrics with deltas.
size_distributionYesPR size distribution counts (Tiny, Small, Medium, etc.).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and idempotentHint, so safety is covered; the description still adds value by disclosing the return contents and, importantly, that results include period-over-period comparison — a behavioral trait not visible in the annotations or schema. It stops short of noting cost, latency, or empty-data behavior for a team with no PRs.

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?

Two sentences, front-loaded with the verb and scope, followed by an efficient enumeration of returned metrics. Slightly redundant to re-list return values when an output schema exists, but the listing is compact and no sentence is filler.

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?

Since an output schema exists, the return-value enumeration is arguably unnecessary, and what is genuinely missing is routing context: which of the many similarly named PR/metric siblings this replaces and what 'team' means for the authenticated user. Adequate to call correctly, but thin for a tool in a dense sibling cluster.

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 description coverage is 100% and the single 'period' enum already documents all six values and the default, so the description is not required to compensate. The phrase 'period-over-period comparison' hints at how the period argument drives output, but adds no syntax or formatting detail beyond 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 ('Get pull request activity metrics') and scopes it to the authenticated user's team, then enumerates the aggregates returned. This separates it from the per-PR list siblings (get-merged-pull-requests-tool, get-open-pull-requests-tool) at least implicitly, but it never explicitly contrasts with metric siblings like get-dora-metrics-tool or get-my-insights-tool.

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

Usage Guidelines3/5

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

The aggregate-metrics framing implies when to use it (team-level rollup rather than per-PR listing), but there is no explicit 'use this when X, use get-dora-metrics-tool when Y' guidance despite a crowded metric-tool sibling set. Nothing is stated about prerequisites or when not to call it.

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.

Resources