Skip to main content
Glama
tugudush
by tugudush

bb_get_context

Fetch a bundled context for a Bitbucket pull request: metadata, diffstat, build/review status, and comment previews. Accepts a PR URL or workspace/repo details, with options for summary or full detail.

Instructions

Get a curated bundle of PR context in a single call: PR metadata, diffstat summary, build/review status, and comment previews. Accepts a Bitbucket PR URL, or workspace/repo with pull_request_id or branch. Use detail_level "full" for PR description, per-file diffstat, and last 20 comments.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoA Bitbucket pull request URL (e.g. https://bitbucket.org/workspace/repo/pull-requests/42). If provided, workspace, repo_slug, and pull_request_id are extracted automatically.
branchNoBranch name to look up the open pull request for. Ignored if pull_request_id is provided.
filterNoJMESPath expression to filter/transform structured response data. Applied before format conversion. Example: "values[].{name: full_name, lang: language}" — see https://jmespath.org for syntax
repo_slugNoThe repository name (required if url is not provided)
workspaceNoThe workspace or username (required if url is not provided)
detail_levelNoControls response verbosity: "summary" (default) returns counts and previews; "full" includes PR description, per-file diffstat, and last 20 comments.
output_formatNoResponse format: "text" (default, human-readable), "json" (structured JSON), or "toon" (Token-Oriented Object Notation — compact tabular format that reduces LLM token consumption by 30-60%)
pull_request_idNoThe pull request ID. If omitted, branch must be provided to look up the open PR.
Behavior4/5

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

With no annotations, the description carries the behavioral burden. It discloses the bundle contents, the effect of detail_level, and the accepted input forms. While it doesn't cover auth or rate limits, it provides essential behavioral context for a data retrieval tool.

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 consists of two sentences, front-loading the core purpose and then providing concise guidance on inputs and detail_level. No filler or repetition.

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?

The description covers the main use cases, input forms, and verbosity control. Given no output schema, it does not detail the response structure, but the high-level contents list suffices. Slight gap: output_format options are left to the schema, but that is acceptable.

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?

Schema coverage is 100%, so baseline is 3. The description adds value by synthesizing parameters into usage patterns (URL or workspace/repo with id/branch) and specifying what detail_level 'full' returns beyond the schema's enum descriptions.

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's purpose: 'Get a curated bundle of PR context in a single call' and lists exactly what's included (PR metadata, diffstat summary, build/review status, comment previews). This distinguishes it from sibling tools that fetch individual components.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description conveys when to use the tool: when you need a consolidated PR context bundle in one call. It also explains alternative input patterns (URL vs workspace/repo + id/branch) and suggests using 'full' detail level for richer output. However, it does not explicitly name sibling alternatives or state when not to use this tool.

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

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