Skip to main content
Glama
Bitbucket DC MCP Server

Bitbucket DC MCP Server

by lvluu

compareRefs

Lists commits present in the target ref but missing from the source ref, enabling comparison of branches, tags, or commits in Bitbucket.

Instructions

List commits in 'to' that are not in 'from'.

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>",
      "from": "<from>",
      "to": "<to>"
    },
    "name": "compareRefs"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesBranch, tag or commit
allNoAll pages, max 1000
fromYesBranch, tag or commit
limitNo
startNo
repoSlugYes
projectKeyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.10.0

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 disclosure burden, and it says nothing about read-only safety, default page size, ordering of returned commits, or what happens when 'from' is not an ancestor of 'to'. The presence of limit/start/all parameters implies pagination, but the description never confirms or explains that behavior.

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 and no repetition of the tool name or schema. It is compact rather than padded, though it is arguably too short given the parameter surface.

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 seven-parameter tool with no annotations and no output schema, one sentence is not enough: pagination controls, repository addressing (repoSlug/projectKey), and the shape of the returned commit list are all undocumented. The core set-difference semantic is conveyed, but an agent cannot call this correctly on a large repo without guessing about paging.

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 43%, so the description needs to compensate and only partly does: it gives real directional meaning to 'from' and 'to' (which the schema describes only as "Branch, tag or commit" for both, with no indication of which side is subtracted). It says nothing about projectKey, repoSlug format, limit, start, or all (capped at 1000), leaving four of seven parameters unexplained anywhere.

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?

Names a specific verb+resource ("List commits") and pins down the result set with a directional qualifier ("in 'to' that are not in 'from'"). It does not distinguish itself from plausible siblings like getCommitDiff or getCommitChanges, which is the only reason it falls short of 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 guidance on when to call this instead of a diff or single-commit tool, no stated prerequisites, and no mention of when the result would be empty or meaningless. The agent must infer the use case entirely from the one-line semantics.

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