Skip to main content
Glama
igorolv

sonar-mcp-server

getIssue

getIssue
Read-onlyIdempotent

Retrieve a SonarQube issue by key with full details, changelog, and status/assignment history. Specify a branch or pull request to scope lookups beyond the default main branch.

Instructions

Get one issue by key. Returns full issue details and changelog, including status and assignment history. Scope explicitly: omitting both branch and pullRequest uses the configured default (usually main). For non-main or PR work, pass the matching ref explicitly; discover it with listProjectBranches / listProjectPullRequests.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
branchNoBranch name; mutually exclusive with `pullRequest`. Omission uses the configured default (usually main). For non-main lookup, pass explicitly; use `listProjectBranches` to discover names.
issueKeyYesIssue key
pullRequestNoPR key; mutually exclusive with `branch`; no default. For PR work, pass explicitly; use `listProjectPullRequests`.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
issueNo
changelogNoFull change history of the issue (transitions, assignments, severity changes, etc.).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false. The description adds critical context beyond that: the default branch behavior, the requirement to pass a ref for non-main work, and the mutual exclusion rule. No contradiction; it enriches the behavioral profile.

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?

Two sentences with zero wasted words. The primary purpose is front-loaded, and the scoping caveat and discovery hints are packed efficiently into the second sentence.

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?

Given the output schema exists, return format need not be repeated. The description covers purpose, scope, parameter interactions, and discovery methods. For a read-only retrieval tool, this is complete.

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

Parameters4/5

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

Schema description coverage is 100%, so the schema already documents each parameter. The description adds meaningful semantics by explaining the default branch, the mutual exclusivity, and how to discover valid values—this goes beyond the schema's basic descriptions.

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?

Clearly states a specific verb ('Get') and resource ('one issue by key'), and describes the return content ('full issue details and changelog'). It distinguishes from sibling listIssues and getIssueSnippets by specifying single-issue retrieval and history inclusion.

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

Usage Guidelines5/5

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

Explicitly explains when to use the default vs. pass refs, names the alternatives (listProjectBranches / listProjectPullRequests) for discovery, and notes the mutual exclusivity of branch and pullRequest. This is strong when-to-use guidance.

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