Skip to main content
Glama
host-mcp-bitbucket

host-mcp-bitbucket

getPullRequestDiffStat

Read-only

Retrieve diff statistics for a Bitbucket pull request, including files changed and lines added or removed, to assess code changes before review.

Instructions

Get diff statistics for a pull request (files changed, lines added/removed)

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

Input Schema

NameRequiredDescriptionDefault
allNoFetch all pages
pageNoPage number
pagelenNoNumber of items per page
repoSlugYesRepository slug
workspaceNoBitbucket workspace name
pullRequestIdYesPull request ID

Output Schema

NameRequiredDescriptionDefault
resultYesTool-specific result payload
statusYesWhether the tool call succeeded
messageYesHuman-readable status message

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.6/5.0
Behavior3/5

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

The readOnlyHint=true annotation already establishes this as a safe read, and the description usefully enumerates what the statistics contain (files changed, lines added/removed). It does not, however, mention the paginated nature of the response or that the default page size may truncate results, which matters for a 6-parameter endpoint exposing page/pagelen/all.

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 with the resource and verb first and the return contents in parentheses. No filler, no restatement of the tool name alone, and nothing an agent would need to skip.

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

Completeness4/5

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

With an output schema present the description need not explain the returned structure, and with full schema coverage the parameters are self-documenting, so the definition is nearly complete for a read-only statistics endpoint. The only missing piece is a hint about paging behavior or a pointer to getPullRequestDiff for full patch content.

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 all six parameters including workspace, repoSlug, pullRequestId, page, pagelen and all are already documented inline; the baseline of 3 applies. The description adds no extra meaning such as defaults or paging semantics beyond what the schema provides.

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 diff statistics for a pull request") and clarifies the payload with "files changed, lines added/removed", which implicitly separates it from the sibling getPullRequestDiff that returns the raw diff. It stops short of naming that sibling explicitly, so the differentiation is inferred rather than stated.

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 phrase "diff statistics" implies when to reach for this tool (summary metrics rather than patch content), but there is no explicit when-to-use guidance, no prerequisites (auth/scopes), and no named alternative such as getPullRequestDiff or getPullRequestPatch. Usage is implied only.

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