Skip to main content
Glama

Get pull request findings

get_findings
Read-only

List MergeSafe's findings on the latest review of a pull request. Each has severity (P0 most severe .. P3), title, problem, file, line, status, blocking and comment_url, the inline comment on GitHub that holds the full explanation and a prompt for fixing it. Loop: for each blocking finding, check the claim against the file as it stands now; if it holds, fix it and add a regression test; run the tests; commit and push; then call request_review. A finding of type question (needs_decision) asks whether a behavior is intended, with its severity_if_unintended; it does not block. It needs a decision, not just a fix, and it is likely a human one. Not intended: fix it (the fix answers it). Intended: say so on its thread; evidence helps (the PR's ticket, the PR description, a test, a doc or a file:line). Unsure: leave it open, or ask whoever owns the change.

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": {
      "repo": "<repo>",
      "pr_number": "<pr_number>"
    },
    "name": "get_findings"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYesThe repository as "owner/name".
pr_numberYesThe pull request number.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description adds substantial context beyond that: it enumerates the returned fields, defines the severity scale (P0 most severe through P3), explains that 'blocking' distinguishes actionable findings, and details the special 'question' (needs_decision) type with its severity_if_unintended and non-blocking nature. That is exactly the behavioral nuance the annotations cannot convey.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded in the first sentence, which is good, but the remainder blends tool description with an agent workflow script (verify/fix/test/commit/push) and three sentences of decision guidance for question-type findings. The content is substantive rather than filler, yet it is dense and mixes concerns that arguably belong in a workflow prompt, making the definition longer than a list tool strictly requires.

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?

There is no output schema, and the description compensates well by enumerating the returned fields and explaining severity, blocking, and the question subtype. For a read-only two-parameter tool whose annotations cover the safety profile, this is nearly complete; only behavior for an empty result or a PR with no review is unspecified.

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% for both parameters (repo as 'owner/name', pr_number as an integer minimum 1), so the schema already carries the full parameter burden. The description adds no format, default, or edge-case detail about repo or pr_number beyond what the schema states, so 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?

The opening sentence gives a specific verb and resource ('List MergeSafe's findings') with a clear scope ('latest review of a pull request'), so an agent knows exactly what it retrieves. It stops short of explicitly distinguishing itself from the sibling get_session_findings, so the scope difference (PR vs. session) must be inferred from the name alone.

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 spells out a concrete follow-up loop: for each blocking finding, verify the claim against current code, fix, add a regression test, run tests, commit and push, then call request_review. It also gives decision rules per finding state (not intended / intended / unsure), which is strong conditional guidance. It does not state when to prefer this over get_session_findings, which keeps it from a 5.

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.