Skip to main content
Glama
mohitgoel188

MCP Bitbucket

by mohitgoel188

bb_get_pr_diffstat

Read-only

Retrieve per-file and total added/removed line counts for a Bitbucket pull request to quickly assess the scope of changes.

Instructions

Get the diffstat for a pull request: every modified file with its added/removed line counts and a totals summary

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pr_idYesPull request ID
repo_slugNoRepository slug/name; defaults to the repo detected from the current directory's git remote
workspaceNoBitbucket workspace

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.2.0

TDQS

A4.1/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=true, so the safe read-only nature is covered. The description adds useful behavioral context beyond annotations by specifying exactly what the tool returns: per-file added/removed line counts plus a totals summary. There is no contradiction with annotations, and no hidden side effects are suggested.

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?

The description is a single, well-structured sentence that front-loads the core purpose and immediately specifies the output scope. There is no filler, repetition, or unnecessary detail.

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

Completeness5/5

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

For a simple read-only tool with full schema coverage, an output schema, and clear annotations, the description is complete. It tells the agent what the tool returns and the schema covers all parameter details. Nothing essential is missing for correct invocation.

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 schema already documents pr_id, repo_slug, and workspace, including the default behavior for repo_slug. The description adds no additional parameter-level semantics, which is acceptable because the schema carries the full burden. A baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('Get') and a specific resource ('diffstat for a pull request'), and further clarifies what a diffstat is: every modified file with added/removed line counts and a totals summary. This distinguishes it clearly from sibling tools like bb_get_pr_file_diff or bb_get_pr_all_file_diffs, which return file content or diffs rather than aggregate counts.

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?

The description implies when to use this tool—when you need summary counts rather than actual diffs—but it never explicitly names alternatives or states when not to use it. With siblings like bb_get_pr_file_diff and bb_get_pr_all_file_diffs present, explicit routing guidance would have made the usage intent unambiguous.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mohitgoel188/mcp-bitbucket'

If you have feedback or need assistance with the MCP directory API, please join our Discord server