Skip to main content
Glama

jira_get_backlog_stats

Get aggregated statistics for JIRA issues using JQL. Group by status, type, priority, assignee, or custom pivot fields, with count, sum, avg, and cardinality aggregations.

Instructions

Get aggregated statistics for issues matching a JQL query. Returns counts grouped by status, type, priority, and assignee by default. Supports custom pivoting on any field pair with aggregation actions (count, sum, avg, cardinality) and flexible field filters.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
jqlYesJQL query string (e.g., "project = PROJ")
pivotNoCustom pivot table configuration
sprintNoFilter by sprint ID
boardIdNoFilter by board ID (adds project filter based on board's project)
groupByNoFields to group by. If specified, replaces default aggregations with custom groupedBy results.
assigneesNoFilter by assignees (use "unassigned" for unassigned issues)
issueTypesNoFilter by issue types (e.g., ["Bug", "Story"])
fieldFiltersNoAdditional field-based filters applied via JQL
excludeResolvedNoExclude resolved/done issues (adds "resolution IS EMPTY" to JQL)
Behavior3/5

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

Discloses default grouping, custom pivoting, and aggregation actions. However, it claims 'any field pair' pivoting, which the schema's enum lists contradict—behavioral overstatement. With no annotations, the description carries burden but is partially misleading.

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?

One dense sentence that front-loads the core function and key capabilities without wasted words. Efficient and well-structured.

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?

For a tool with 9 parameters, nested pivot object, and no output schema, the description gives a good overview but omits several filter parameters (sprint, boardId, assignees, etc.). The overstatement reduces reliability, though schema fills most 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 covers 100% of parameters with descriptions, so baseline applies. The description adds context for pivot and fieldFilters, but the 'any field pair' claim is inaccurate given the schema enums, so it adds no real value beyond the schema.

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?

The description states it 'gets aggregated statistics for issues matching a JQL query' and lists default groupings, clearly distinguishing it from raw issue retrieval tools like jira_search_issues. Specific verb and resource make it unambiguous.

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?

The description implies use for statistical aggregation via 'aggregated statistics' and mentions pivoting/filtering, but it does not explicitly contrast with alternative tools or state when not to use it. Clear context, but no exclusions.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SuppleAardvark/jira-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server