Skip to main content
Glama

add_pr_review_comment

Add an inline review comment to a specific file and line in a pull request.

Instructions

Add a review comment to a pull request (inline comment on a specific file/line)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyYesThe comment body text
lineNoThe line number in the diff to comment on
pathYesThe relative path of the file to comment on
repoYes
sideNoWhich side of the diff. Default: RIGHT
ownerYes
commit_idYesSHA of the commit to comment on
pull_numberYes
Behavior2/5

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

No annotations are provided, so the description carries the full burden for disclosing behavioral traits. It only states the action and scope, without mentioning write access requirements, side effects, response format, or what happens when required parameters are invalid. The description adds no transparency beyond the verb 'Add'.

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?

The description is a single, front-loaded sentence that clearly communicates the tool's purpose without any fluff or repetition. Every word earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 8 parameters, no annotations, no output schema, and a mutation action, the description is too sparse. It fails to mention whether a review must exist first, the immediate effect of the comment, or what the API returns. The context is incomplete for an agent to gauge the full impact of invoking the tool.

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 63% (5 of 8 parameters described). The description slightly enhances understanding by mentioning the 'specific file/line' scope, which aligns with path and line parameters. However, it does not compensate for the undocumented standard parameters (owner, repo, pull_number) beyond what is typical.

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?

The description uses a clear action verb 'Add' with a specific resource 'review comment to a pull request' and scopes it as 'inline comment on a specific file/line'. This distinguishes it from sibling tools like submit_pr_review, which handles general review submissions.

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?

The parenthetical 'inline comment on a specific file/line' implies the tool's intended use for line-specific feedback, but it does not explicitly state when to use this tool versus alternatives or any prerequisites. No exclusions or alternative tool names are provided.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/shade-solutions/github-mcp-plus'

If you have feedback or need assistance with the MCP directory API, please join our Discord server