Skip to main content
Glama

add_pr_comment

Add a general comment to a pull request or merge request on GitHub or GitLab. Specify the provider, repository, PR number, and comment content.

Instructions

Add a general comment to PR/MR

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
providerYesCode hosting provider
repoYesRepository path
pr_idYesPR/MR number
commentYesComment content
hostNoGitLab host for self-hosted instances
Behavior2/5

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

Annotations indicate readOnlyHint=false and destructiveHint=false, but the description does not elaborate on behavioral traits beyond stating the action. It lacks information about side effects, authorization needs, or idempotency. With no output schema, more detail on what happens after adding would help.

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 description is very short and to the point, but it omits useful context that could be included without bloating. It achieves conciseness but at the cost of completeness.

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?

Given 5 parameters and no output schema, the description does not address what happens after a successful add, such as confirmation or potential limitations. It lacks completeness for a tool with moderate complexity.

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%, with each parameter having a clear description. The tool description adds no extra meaning beyond what is already in the schema, so baseline 3 is appropriate.

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 'Add a general comment to PR/MR' clearly specifies the action (add) and resource (comment on PR/MR). It differentiates from sibling tools like 'add_inline_comment' and 'batch_add_comments' by indicating it's a general comment.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives. There is no mention of prerequisites, context, or exclusions for using this tool over others like 'batch_add_comments' or 'extract_related_prs'.

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/OldJii/code-review-mcp'

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