Skip to content
sonarqube-mcp
sonarqube-mcp

Tools

Everything sonarqube-mcp exposes to your AI client: tools, resources and prompts.

23 capabilities23 tool
Automated heuristic

Tool docs quality: B — 23 tools graded

Average 70/100 for how clearly each description tells an AI client what the tool does, what it needs, and what it changes. It is not a security audit.

  • Grade A: 6
  • Grade B: 7
  • Grade C: 10
  • Grade D: 0
  • Grade F: 0
How grades work
  • Posts a comment on an issue. Two calls make two comments.

    Description quality grade C, 55/100 · 3 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: passed20/20

      Length is in a useful range.

    • Starts with what it does: passed15/15

      Opens with an action verb.

    • Mentions its inputs: not passed0/20

      Say what the tool needs, for example “by issue number” or “takes a file path”.

    • Explains side effects: not passed0/15

      This looks like a write action. Say what changes, and whether it can be undone.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.

  • Assigns an issue to a login, or clears the assignee. me assigns to the token's own account.

    Description quality grade C, 55/100 · 3 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: passed20/20

      Length is in a useful range.

    • Starts with what it does: passed15/15

      Opens with an action verb.

    • Mentions its inputs: not passed0/20

      Say what the tool needs, for example “by issue number” or “takes a file path”.

    • Explains side effects: not passed0/15

      This looks like a write action. Say what changes, and whether it can be undone.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.

  • Applies one transition, assignment and/or comment to up to 500 issues at once. SonarQube answers with counts and names no issue, so an illegal transition comes back as ignored.

    Description quality grade C, 55/100 · 3 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: passed20/20

      Length is in a useful range.

    • Starts with what it does: passed15/15

      Opens with an action verb.

    • Mentions its inputs: not passed0/20

      Say what the tool needs, for example “by issue number” or “takes a file path”.

    • Explains side effects: not passed0/15

      This looks like a write action. Say what changes, and whether it can be undone.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.

  • What SonarQube is doing with the project right now: analyses queued or running, and the last one that finished, each with the branch or pull request it was for and any error. Call it after a CI build — a green scanner step only means the re

    Description quality grade C, 55/100 · 3 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: passed20/20

      Length is in a useful range.

    • Starts with what it does: not passed0/15

      Open with an action verb, for example “Search issues…” or “Creates a label…”.

    • Mentions its inputs: not passed0/20

      Say what the tool needs, for example “by issue number” or “takes a file path”.

    • Explains side effects: passed15/15

      Looks read-only, so no disclosure is required. Saying “read-only” still helps.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.

  • Reads named metrics for a project, directory or file. missingMetrics says what was not measured, newCodeValue carries the new-code number, and ratings come back as A–E.

    Description quality grade B, 70/100 · 2 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: passed20/20

      Length is in a useful range.

    • Starts with what it does: passed15/15

      Opens with an action verb.

    • Mentions its inputs: not passed0/20

      Say what the tool needs, for example “by issue number” or “takes a file path”.

    • Explains side effects: passed15/15

      Looks read-only, so no disclosure is required. Saying “read-only” still helps.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.

  • One file's per-line coverage: the lines tests never executed, the partially covered ones, the new-code lines and the duplicated ones. The source text is deliberately not returned.

    Description quality grade C, 55/100 · 3 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: passed20/20

      Length is in a useful range.

    • Starts with what it does: not passed0/15

      Open with an action verb, for example “Search issues…” or “Creates a label…”.

    • Mentions its inputs: not passed0/20

      Say what the tool needs, for example “by issue number” or “takes a file path”.

    • Explains side effects: passed15/15

      Looks read-only, so no disclosure is required. Saying “read-only” still helps.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.

  • One hotspot in full: the risk, what an attacker could do, how to make it safe, the review history, and canChangeStatus.

    Description quality grade C, 55/100 · 3 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: passed20/20

      Length is in a useful range.

    • Starts with what it does: not passed0/15

      Open with an action verb, for example “Search issues…” or “Creates a label…”.

    • Mentions its inputs: not passed0/20

      Say what the tool needs, for example “by issue number” or “takes a file path”.

    • Explains side effects: passed15/15

      Looks read-only, so no disclosure is required. Saying “read-only” still helps.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.

  • One issue in full: comments, the secondary locations that explain a data-flow finding, and availableTransitions — what transitionIssue will accept for it. Pass the projectKey and the same scope the search used.

    Description quality grade B, 75/100 · 2 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: passed20/20

      Length is in a useful range.

    • Starts with what it does: not passed0/15

      Open with an action verb, for example “Search issues…” or “Creates a label…”.

    • Mentions its inputs: passed20/20

      The description mentions what the tool takes.

    • Explains side effects: passed15/15

      Looks read-only, so no disclosure is required. Saying “read-only” still helps.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.

  • One issue's history: who changed its status, resolution or assignee, when, and from what. Read it before re-deciding something a reviewer already decided.

    Description quality grade C, 55/100 · 3 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: passed20/20

      Length is in a useful range.

    • Starts with what it does: not passed0/15

      Open with an action verb, for example “Search issues…” or “Creates a label…”.

    • Mentions its inputs: not passed0/20

      Say what the tool needs, for example “by issue number” or “takes a file path”.

    • Explains side effects: passed15/15

      Looks read-only, so no disclosure is required. Saying “read-only” still helps.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.

  • One time series per metric over the analysis history: whether something is getting better or worse, rather than what it is now.

    Description quality grade C, 65/100 · 2 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: passed20/20

      Length is in a useful range.

    • Starts with what it does: not passed0/15

      Open with an action verb, for example “Search issues…” or “Creates a label…”.

    • Mentions its inputs: not passed0/20

      Say what the tool needs, for example “by issue number” or “takes a file path”.

    • Explains side effects: passed15/15

      Looks read-only, so no disclosure is required. Saying “read-only” still helps.

    • Gives usage guidance: passed10/10

      Includes when or how to use it.

  • Reads the gate verdict for a project, branch or pull request. failingConditions is the pre-filtered list of what is actually wrong, with thresholds and measured values.

    Description quality grade B, 70/100 · 2 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: passed20/20

      Length is in a useful range.

    • Starts with what it does: passed15/15

      Opens with an action verb.

    • Mentions its inputs: not passed0/20

      Say what the tool needs, for example “by issue number” or “takes a file path”.

    • Explains side effects: passed15/15

      Looks read-only, so no disclosure is required. Saying “read-only” still helps.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.

  • Explains one rule: what it flags, why it matters and how to fix it, with the HTML converted to text and code fenced. Call it once per rule, not once per issue; pass an issue's ruleContext as context to get only that framework's fix.

    Description quality grade B, 70/100 · 2 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: passed20/20

      Length is in a useful range.

    • Starts with what it does: passed15/15

      Opens with an action verb.

    • Mentions its inputs: not passed0/20

      Say what the tool needs, for example “by issue number” or “takes a file path”.

    • Explains side effects: passed15/15

      Looks read-only, so no disclosure is required. Saying “read-only” still helps.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.

  • Lists the analysed branches with each one's last analysis date, issue counts and gate status, and which is the main branch.

    Description quality grade B, 70/100 · 2 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: passed20/20

      Length is in a useful range.

    • Starts with what it does: passed15/15

      Opens with an action verb.

    • Mentions its inputs: not passed0/20

      Say what the tool needs, for example “by issue number” or “takes a file path”.

    • Explains side effects: passed15/15

      Looks read-only, so no disclosure is required. Saying “read-only” still helps.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.

  • The same metrics for every component under a project or directory, one row per file, sortable by a metric — this is how to answer "which files are worst?".

    Description quality grade C, 55/100 · 3 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: passed20/20

      Length is in a useful range.

    • Starts with what it does: not passed0/15

      Open with an action verb, for example “Search issues…” or “Creates a label…”.

    • Mentions its inputs: not passed0/20

      Say what the tool needs, for example “by issue number” or “takes a file path”.

    • Explains side effects: passed15/15

      Looks read-only, so no disclosure is required. Saying “read-only” still helps.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.

  • Lists the files and directories SonarQube analysed, each with its component key and project-relative path. Turns a file on disk into a key, and confirms a file was analysed at all.

    Description quality grade A, 90/100 · 1 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: passed20/20

      Length is in a useful range.

    • Starts with what it does: passed15/15

      Opens with an action verb.

    • Mentions its inputs: passed20/20

      The description mentions what the tool takes.

    • Explains side effects: passed15/15

      Looks read-only, so no disclosure is required. Saying “read-only” still helps.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.

  • The metric catalogue with what each key measures and whether higher is better. Call it instead of guessing a key — a key that does not exist is a silently missing measure, not an error.

    Description quality grade A, 85/100 · 1 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: passed20/20

      Length is in a useful range.

    • Starts with what it does: not passed0/15

      Open with an action verb, for example “Search issues…” or “Creates a label…”.

    • Mentions its inputs: passed20/20

      The description mentions what the tool takes.

    • Explains side effects: passed15/15

      Looks read-only, so no disclosure is required. Saying “read-only” still helps.

    • Gives usage guidance: passed10/10

      Includes when or how to use it.

  • Lists the projects in the configured organization with the key every other tool takes as projectKey. Start here when the key is unknown: it is not the repository name.

    Description quality grade A, 90/100 · 1 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: passed20/20

      Length is in a useful range.

    • Starts with what it does: passed15/15

      Opens with an action verb.

    • Mentions its inputs: passed20/20

      The description mentions what the tool takes.

    • Explains side effects: passed15/15

      Looks read-only, so no disclosure is required. Saying “read-only” still helps.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.

  • Lists the analysed pull requests with their gate status and new-code issue counts. Each entry's key is what the other tools take as pullRequest.

    Description quality grade A, 90/100 · 1 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: passed20/20

      Length is in a useful range.

    • Starts with what it does: passed15/15

      Opens with an action verb.

    • Mentions its inputs: passed20/20

      The description mentions what the tool takes.

    • Explains side effects: passed15/15

      Looks read-only, so no disclosure is required. Saying “read-only” still helps.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.

  • Searches security hotspots — security-sensitive code awaiting a human decision — with each one's vulnerability probability. SonarQube Cloud is migrating hotspots into issues tagged former-hotspot; once a project is migrated this returns not

    Description quality grade B, 70/100 · 2 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: passed20/20

      Length is in a useful range.

    • Starts with what it does: passed15/15

      Opens with an action verb.

    • Mentions its inputs: not passed0/20

      Say what the tool needs, for example “by issue number” or “takes a file path”.

    • Explains side effects: passed15/15

      Looks read-only, so no disclosure is required. Saying “read-only” still helps.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.

  • Searches issues, newest first, each with its file path, line, message, rule and clean-code impacts. Defaults to the outstanding work (OPEN, CONFIRMED). Filters include the SCM authors who wrote the code and SonarQube's own fixableByAgent cl

    Description quality grade A, 90/100 · 1 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: passed20/20

      Length is in a useful range.

    • Starts with what it does: passed15/15

      Opens with an action verb.

    • Mentions its inputs: passed20/20

      The description mentions what the tool takes.

    • Explains side effects: passed15/15

      Looks read-only, so no disclosure is required. Saying “read-only” still helps.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.

  • Records a hotspot review: REVIEWED with SAFE or FIXED, or TOREVIEW to put it back on the list, with a justification comment.

    Description quality grade C, 55/100 · 3 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: passed20/20

      Length is in a useful range.

    • Starts with what it does: passed15/15

      Opens with an action verb.

    • Mentions its inputs: not passed0/20

      Say what the tool needs, for example “by issue number” or “takes a file path”.

    • Explains side effects: not passed0/15

      This looks like a write action. Say what changes, and whether it can be undone.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.

  • Counts issues grouped by rule, file, directory, severity, quality, status, tag, language, assignee, author or security standard (OWASP Top 10 2021, CWE, SonarSource category) in one call, instead of paging toward the API's 10,000-result cei

    Description quality grade B, 80/100 · 1 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: passed20/20

      Length is in a useful range.

    • Starts with what it does: passed15/15

      Opens with an action verb.

    • Mentions its inputs: not passed0/20

      Say what the tool needs, for example “by issue number” or “takes a file path”.

    • Explains side effects: passed15/15

      Looks read-only, so no disclosure is required. Saying “read-only” still helps.

    • Gives usage guidance: passed10/10

      Includes when or how to use it.

  • Applies a triage transition — accept, confirm, falsepositive, reopen, resolve, unconfirm — with an optional comment. Reversible and recorded in the issue's changelog.

    Description quality grade A, 90/100 · 1 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: passed20/20

      Length is in a useful range.

    • Starts with what it does: passed15/15

      Opens with an action verb.

    • Mentions its inputs: passed20/20

      The description mentions what the tool takes.

    • Explains side effects: passed15/15

      The description says what the tool changes.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.