Skip to main content
Glama

jira_compare_issue_sets

Compare two JQL result sets field-by-field to identify which fields and values differ between issue groups, such as production versus problem tickets.

Instructions

Compare two JQL result sets field-by-field and report where they differ. Built for environment-to-environment questions: run it on tickets that succeeded in production versus those that did not, and it surfaces which fields and values separate the two groups.

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": {
      "jqlA": "<jqlA>",
      "jqlB": "<jqlB>"
    },
    "name": "jira_compare_issue_sets"
  }
}

Input Schema

NameRequiredDescriptionDefault
jqlAYesFirst set, e.g. 'project = ABC AND fixVersion = "Prod 24.1" AND resolution = Done'
jqlBYesSecond set to compare against
labelANoReadable name for the first setA
labelBNoReadable name for the second setB
maxIssuesNoMax issues sampled per set

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.4.0

TDQS

A3.9/5.0
Behavior3/5

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

No annotations are supplied, so the description must explain behavior. It discloses the comparison method (field-by-field) and what it surfaces (which fields and values separate the groups). However, it omits key behavioral facts, such as how issues are paired across sets, that the operation is read-only with no side effects, and how sampling at maxIssues affects the result.

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?

There are two sentences with no filler. The core comparison behavior comes first, followed by a concrete motivating scenario. Every sentence carries weight and nothing is repeated from the schema.

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?

The description need not explain return values because no output schema exists; even so, it summarizes what the tool reports. With full schema coverage, a complete use case, and a stated comparison method, an agent has enough to decide to call it correctly.

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%, with examples and defaults for jqlA, labelA, and maxIssues. The description adds no syntax or format guidance beyond the schema. It implies that the two JQL inputs define the groups but adds nothing about constraint interactions, such as what happens when the sets overlap or exceed maxIssues.

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 uses a specific verb and resource: 'Compare two JQL result sets field-by-field and report where they differ.' This distinguishes it from the sibling search tools, which only retrieve issues. It does not explicitly name a sibling it replaces or complements, such as jira_search; therefore, it stops 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?

'Built for environment-to-environment questions: run it on tickets that succeeded in production versus those that did not' gives a concrete when-to-use scenario, with an example of the JQL patterns to feed it. It does not state when not to use it, such as for comparing more than two sets or for a single-set analysis.

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