Skip to main content
Glama

pr_inline_comments

Read a pull request's inline review comments from repository owners, members, and collaborators—including author, file path, line, and body—without posting anything.

Instructions

A pull request's inline review comments (id, path, line, author, body), only those from the repo's owner, members and collaborators. Read-only: it posts nothing. In a goal run, only as the goal's rules allow; it reads outside text.

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>"
    },
    "name": "pr_inline_comments"
  }
}

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.

Schema Changelog

Changes observed during successful MCP inspections.

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

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose key traits: strictly read-only ('posts nothing'), an authorship filter excluding outside contributors, and that the content is untrusted external text ('it reads outside text'). It leaves out pagination/result limits and any permission requirements, which keeps it below a 5.

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

Conciseness4/5

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

Three compact sentences, front-loaded with what is returned and scoped, then safety, then goal-run constraints. Dense but not padded; the phrases 'it reads outside text' and 'only as the goal's rules allow' are slightly terse for the weight they carry.

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 3-parameter read tool with no annotations and no output schema, the description covers returned fields, authorship scope, read-only safety and goal-run gating. Missing pagination behavior and result-size expectations are the only notable gaps for an agent to call it reliably.

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%, so repo, pr and run_scope are already documented in the schema. The description restates the author-scope filtering and goal-run constraint but adds no new parameter-level syntax or format meaning; 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?

Names a specific resource with its returned fields (inline review comments: id, path, line, author, body) and narrows scope to comments from the repo's owner, members and collaborators. The noun-phrase phrasing has no explicit verb, but 'Read-only: it posts nothing' clarifies the operation, and 'inline review comments' is distinct enough from siblings like resolve_review_thread.

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

Usage Guidelines3/5

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

Adds a conditional: 'In a goal run, only as the goal's rules allow', which tells an agent when the goal-mode path applies. It does not name an alternative tool for thread-level review data (e.g. resolving or listing review threads), so the when-to-use-vs-other-tool decision is only implied.

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