Skip to main content
Glama
Bitbucket DC MCP Server

Bitbucket DC MCP Server

by lvluu

getPullRequestDiff

Retrieve a pull request's diff as unified text to review changes, either for the whole PR or a single file, with configurable context lines.

Instructions

Get the PR diff as unified text (whole PR, or one file)

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": {
      "repoSlug": "<repoSlug>",
      "prId": "<prId>"
    },
    "name": "getPullRequestDiff"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoOne file; omit for all
prIdYes
repoSlugYes
projectKeyNo
contextLinesNoDefault 3

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.10.0

TDQS

C2.7/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 full burden. It does disclose the return format (unified text), which is genuinely useful, but says nothing about permission requirements, whether large diffs are truncated, or how a stream-based sibling differs. For a tool that can return an arbitrarily large blob with no output schema, this leaves significant behavioral gaps.

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 short sentence with no filler, front-loading the verb, the resource, and the return format. It is efficient, though its brevity is partly the cause of the missing usage and parameter context.

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 five parameters, no annotations, no output schema, and low schema coverage, the definition should do considerably more. It omits the meaning of projectKey and contextLines, the auth context, and any guidance about large-diff behavior, so an agent could call it correctly only by guessing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 40%, and the description largely restates what the schema already documents for path ('one file; omit for all'). It adds no meaning for projectKey, prId, or repoSlug, and does not explain contextLines beyond the schema's 'Default 3' or what effect larger values have on the diff.

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 and resource (get the PR diff) plus the output form (unified text) and scope choice (whole PR or one file). It doesn't name the siblings it competes with, notably streamPullRequestDiff and getPullRequestPatch, but the resource is unambiguous.

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?

It says the tool can return either the whole PR diff or a single file's diff, which implies a scope choice but never states when to prefer this over streamPullRequestDiff, getPullRequestPatch, or getPullRequestChanges. There is no when-not guidance and no mention of size or performance trade-offs that would drive the streaming alternative.

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