Skip to main content
Glama
Upendrasengar

bitbucket-server-mcp

compare_refs

Read-onlyIdempotent

Compare two Git refs and retrieve commits present in the target but missing from the source. Allows pagination and custom field selection.

Instructions

Compare two refs and list commits accessible from to but not from from. Supports custom field selection via the fields param ('*all' for full raw response, 'id,message,author.name' for a custom subset).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toNoTarget ref (commits reachable from here are included).
fromNoSource ref (commits reachable from here are excluded).
limitNoNumber of commits to return (default: 25, max: 1000).
startNoStart index for pagination (default: 0).
fieldsNoComma-separated fields to return (dot notation for nested paths). Omit for a curated default; use '*all' for the full raw API response.
projectNoProject key. Defaults to BITBUCKET_DEFAULT_PROJECT.
repositoryYesRepository slug.
Behavior4/5

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

Annotations already indicate safe read-only and idempotent behavior. The description adds the core logic of commit comparison and details field selection, which provides behavioral context beyond the annotations.

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 two sentences, front-loaded with the primary purpose, and provides param details without extraneous information. Every sentence earns its place.

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

Completeness3/5

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

While the description covers the main purpose and field selection, it lacks explanation of pagination parameters (limit, start), default project behavior, and repository requirement. The schema documents these, but the description could be more complete for a tool with 7 parameters and no output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 100% schema coverage, baseline is 3. The description adds meaningful value by explaining the `to`/`from` ref semantics and providing concrete `fields` examples ('*all', custom subset), which clarifies usage beyond the schema.

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 clearly states the tool compares two refs and lists commits accessible from `to` but not from `from`, with a specific verb and resource. This uniquely identifies its function among siblings like list_commits or get_commit.

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 explains what the tool does but does not provide explicit guidance on when to use it over alternatives (e.g., list_commits). The use case is inferable but not stated, leaving ambiguity in tool selection.

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

Install Server

Other Tools

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/Upendrasengar/bitbucket-server-mcp'

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