Skip to main content
Glama
Bitbucket DC MCP Server

Bitbucket DC MCP Server

by lvluu

getCommitDiff

Retrieve a commit's diff as unified text for the entire commit or a specified file, so you can inspect code changes without cloning the repository.

Instructions

Get a commit diff as unified text (whole commit, 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>",
      "commitId": "<commitId>"
    },
    "name": "getCommitDiff"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.10.0

TDQS

B3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose the one behavior that matters most here, that the result is unified text rather than structured JSON. It says nothing about size limits or truncation on large diffs, permission requirements, or behavior when path does not exist in the commit, all of which an agent needs before calling.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence that names the resource and the return format with zero filler. Nothing could be removed without losing information.

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?

For a 5-parameter tool with no annotations, no output schema, and one parameter (projectKey) undocumented in both schema and description, the definition is under-specified. The stated output format helps, but an agent still lacks the context needed to supply repoSlug/projectKey correctly or to anticipate large or truncated diffs.

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 40%, below the threshold where the schema can carry the load. The description's only parameter-related content ('whole commit, or one file') merely restates the schema's own path description, and it adds nothing for commitId, repoSlug, or the entirely undocumented projectKey.

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 and resource ('Get a commit diff') and clarifies the scope alternative ('whole commit, or one file'). It is distinguishable from getPullRequestDiff because the resource is a commit, not a PR, though it does not explicitly contrast with the close sibling getCommitChanges.

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 or when-not-to-use guidance and no named alternative. An agent must infer from the name whether to prefer getCommitChanges, getCommit, or getPullRequestPatch, and the description offers nothing to resolve that choice.

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