Skip to main content
Glama

resolve_review_thread

Marks pull request review threads as resolved using inline comment IDs after you push addressing changes; posts nothing and respects open PR collaborator and goal-run rules.

Instructions

Marks the review threads of a pull request resolved, given the ids of inline review comments in them, once you have pushed a change that answers those comments. Only threads started by the repo's owner, members or collaborators on an open pull request; it posts nothing. In a goal run, only as the goal's rules allow.

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": "<pr>",
      "comment_ids": "<comment_ids>"
    },
    "name": "resolve_review_thread"
  }
}

Input Schema

NameRequiredDescriptionDefault
prYesThe pull request number
repoYesThe repo as owner/name (from git remote get-url origin)
run_scopeNoA goal run passes its run id here; anyone else leaves it out.
comment_idsYesIds of inline review comments you read and addressed with a change you pushed; the thread each belongs to is resolved

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.32.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / comment_ids / items / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / pr / maximum
      Added value: +9007199254740991
  2. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

No annotations supplied, so the description carries the full load and does well: it discloses the key side effect ("it posts nothing"), the permission-shaped eligibility restriction, and the goal-run constraint. It stops short of failure behavior — what happens if some comment ids belong to ineligible or already-resolved threads — and says nothing about idempotency.

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?

Three tight sentences, verb first, then precondition, then eligibility and side-effect notes. No restated name, no filler; every clause carries actionable information.

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?

For a mutation tool with no annotations and no output schema, this covers preconditions, eligibility, side effects, and goal-run conditions well. The remaining gap is post-call behavior — partial success across up to 50 comment ids and what the call returns — which the absence of an output schema makes worth a sentence.

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 coverage is 100%, so all four parameters are already documented, including the thread-per-comment-id mapping. The description reinforces intent (ids of comments "you read and addressed with a change you pushed") and hints at run_scope's goal-run usage, but adds little syntax or constraint detail 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?

States a specific verb and resource ("Marks the review threads of a pull request resolved") and immediately clarifies the input mapping — comment ids identify the threads to resolve. That distinguishes it cleanly from a read-only sibling such as pr_inline_comments.

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?

Gives a clear precondition ("once you have pushed a change that answers those comments") and eligibility limits (owner/member/collaborator-started threads, open PRs only, goal-run gating). It never names an alternative tool or an explicit when-not-to-call case beyond eligibility, so routing is left partly to inference.

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