Skip to main content
Glama

Get Pull Request Metrics Tool

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

TableJSON Schema
NameRequiredDescriptionDefault
periodNoReporting period. Defaults to rolling_30d.rolling_30d

Output Schema

TableJSON 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

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint and idempotentHint, so the safety profile is covered. The description adds that results include period-over-period comparison, which is genuine behavioral context, but says nothing about which team is resolved, freshness of the data, or any rate/permission constraints.

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 tight sentences with the scope front-loaded and no filler. The return-value enumeration slightly duplicates what the existing output schema already conveys, so it is not maximally economical, but nothing is wasted.

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?

An output schema exists, so return values needn't be spelled out, and the sole parameter is fully documented. What remains missing is disambiguation from sibling PR tools and any statement of whose data ('team') is actually resolved, which keeps it short of a 5.

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' parameter is fully documented with its enum and default. The description adds only the indirect hint of 'period-over-period comparison'; it does not explain period semantics (e.g., current vs previous windows), so the baseline 3 applies.

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 and resource ('Get pull request activity metrics') and scopes it to the authenticated user's team, then enumerates the metric categories returned. It does not distinguish itself from closely related siblings such as get-merged-pull-requests-tool, get-open-pull-requests-tool, or get-dora-metrics-tool, so an agent cannot cleanly separate it from them by description alone.

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?

There is no when-to-use guidance and no named alternative. With ~28 siblings in this family, including several other pull-request metric tools, the agent is left to infer that this is the aggregate-metrics option rather than the list-based ones.

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