Skip to main content
Glama

add_comment_inline

Attach an inline comment to a specific added or removed line in a pull request diff, with optional threaded replies.

Instructions

Add an inline comment to a specific line in a pull request diff.

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": {
      "repository": "<repository>",
      "prId": "<prId>",
      "text": "<text>",
      "filePath": "<filePath>",
      "line": "<line>",
      "lineType": "<lineType>"
    },
    "name": "add_comment_inline"
  }
}

Input Schema

NameRequiredDescriptionDefault
lineYesLine number (1-based) to attach the comment to.
prIdYesPull request ID to comment on.
textYesComment text (Markdown supported).
projectNoBitbucket project key (optional if default project configured).
filePathYesPath to the file in the repository.
lineTypeYesLine type (ADDED or REMOVED).
parentIdNoParent comment ID for threaded replies.
repositoryYesRepository slug containing the pull request.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the entire behavioral burden, and it discloses none: no mention of required permissions, what happens if the line number does not exist in the diff, whether the comment is immediately published, or what is returned. For a write operation with 8 parameters, one sentence of behavioral context is a significant gap.

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?

A single front-loaded sentence with zero filler, and the key qualifier "inline... line in a pull request diff" appears immediately. It is efficient, though the brevity reflects under-specification rather than disciplined economy.

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 6 required parameters, no annotations, and no output schema, the description needs to do real work and instead stops at the one-line purpose. Nothing addresses error conditions, diff-position validation, or how the optional project and parentId parameters change behavior, leaving the agent to rely entirely on the schema.

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 every parameter including enum values and the threading semantics of parentId documented inline, so the baseline of 3 applies. The description adds no parameter-level meaning beyond the schema — it does not, for example, explain the ADDED/REMOVED interaction with line numbering.

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 description gives a specific verb ("Add") and a precise resource ("inline comment to a specific line in a pull request diff"), which naturally separates it from the general add_comment sibling. However, it never names that sibling or explicitly contrasts the two, so the differentiation is inferential rather than stated.

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?

There is no when-to-use guidance at all: nothing tells the agent to prefer this over add_comment for line-anchored feedback, no prerequisite context (e.g., needing a PR diff already fetched), and no note on when a threaded reply via parentId is appropriate. The word "inline" implies the use case but leaves selection between siblings to guesswork.

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