Skip to main content
Glama
mcp-bitbucket

mcp-bitbucket

by n11techhub

bitbucket_get_pull_request_diff

Retrieve the diff for a Bitbucket pull request to review changed code and analyze modifications before merging or commenting.

Instructions

Gets the diff for a Bitbucket pull request

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>"
    },
    "name": "bitbucket_get_pull_request_diff"
  }
}

Input Schema

NameRequiredDescriptionDefault
prIdYesPull request ID
projectNoBitbucket project key
repositoryYesRepository slug
contextLinesNoNumber of context lines

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.2

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 full behavioral burden, and it discloses nothing beyond the one-line purpose. It does not say whether the result is a unified diff, whether large diffs are truncated or paginated, whether it is safe/read-only, or whether auth scopes are needed.

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, front-loaded with verb and resource, with zero filler. It is efficient, though its brevity borders on under-specification rather than ideal conciseness.

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 no output schema, the description should at least characterize the returned artifact (diff text format, size/truncation behavior), and it says nothing. For a tool with four parameters and no annotations, this is too thin to fully inform a correct call.

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%, so the input schema already documents repository, project, prId, and contextLines. The description adds no meaning beyond the schema (it does not even mention the contextLines knob or that project is optional), so the baseline 3 applies.

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?

States a specific verb+resource combination ("Gets the diff for a Bitbucket pull request"), so an agent knows exactly what is returned at a high level. It does not distinguish itself from adjacent siblings such as bitbucket_get_pull_request_details or bitbucket_get_file_content, which is the only thing keeping it from a 5.

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, no mention of when to prefer this over fetching whole file content or PR details, and no stated prerequisites (authentication, permissions on the repository). The agent must infer everything about selection and preconditions.

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