Skip to main content
Glama
Bitbucket MCP Server

Bitbucket MCP Server

by auliaadil

get_diff

Retrieve diffs for pull requests or between commits by specifying a repository and diff spec, so you can inspect code changes before review or merge.

Instructions

Get the diff for a pull request or between commits

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_slug": "<repo_slug>",
      "spec": "<spec>"
    },
    "name": "get_diff"
  }
}

Input Schema

NameRequiredDescriptionDefault
specYesDiff spec (e.g., "master..feature" or PR ID)
repo_slugYesRepository slug (name)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

B3.2/5.0
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 of behavioral disclosure. It says nothing about authentication needs, private-repository access, whether large diffs are truncated or paginated, or what the response contains — significant gaps for a tool that can return large output.

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 no filler or redundancy. It is efficient, though its brevity leaves information gaps that are penalized in other dimensions rather than here.

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

Completeness3/5

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

With only two fully documented parameters and no output schema, the structural surface is small and adequately covered. However, with no annotations and no mention of diff size handling or access requirements, the description is only minimally complete for a diff-fetching 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 coverage is 100%, so both parameters are already documented in the schema, and the description's mention of PR ID vs. commit range adds only marginal clarity on 'spec'. That matches the baseline 3 when the schema does the heavy lifting.

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 ('Get') and resource ('diff'), and covers both modes of operation (pull request or between commits). It is clearly distinct from the stated siblings such as get_commit and get_pull_request, though it does not explicitly contrast with them.

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?

'for a pull request or between commits' hints at the two use cases, but there is no explicit when-to-use guidance, no mention of when to prefer get_commit or get_pull_request instead, and no stated prerequisites.

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