Skip to main content
Glama

Get build status

get_build_status
Read-onlyIdempotent

Check if a commit or pull request passed build checks by querying Bitbucket's build statuses. Returns FAILED, INPROGRESS, STOPPED, SUCCESSFUL, or NO_STATUSES.

Instructions

Answer "is this commit green?" in one call, using Bitbucket's commit build statuses (Pipelines results plus anything else that posts a status). Pass commit (a SHA) or pr_id; with neither, it uses the current checkout's HEAD. verdict is FAILED / INPROGRESS / STOPPED / SUCCESSFUL / NO_STATUSES. NO_STATUSES means nothing posted a status — check list_pipelines before concluding a build did not run.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repoNoBitbucket repo slug.
pr_idNoPull request id.
commitNoCommit SHA. Defaults to the checkout's HEAD.
workspaceNoBitbucket workspace (slug).
Behavior5/5

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

Annotations already declare readOnlyHint, openWorldHint, idempotentHint, and destructiveHint false, so the safety profile is covered. The description adds valuable behavior: the exact verdict enum values and the meaning of NO_STATUSES, which is not in the schema. This extends beyond annotation coverage.

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 dense but well-structured: purpose first, then usage, then verdict values, then the NO_STATUSES caveat. Every sentence contributes essential information, and the most critical usage points are front-loaded.

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?

With no output schema, the description explains the verdict values and their semantics. It also addresses the common pitfall of interpreting NO_STATUSES. For a simple read-only status lookup, it covers everything needed to call the tool correctly and interpret the result.

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 clarification that commit and pr_id are mutually exclusive options, and that omitting both uses HEAD — a nuance not fully captured by the schema alone (schema only mentions commit defaults to HEAD). This pushes it to 4.

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 immediately answers 'is this commit green?' and explicitly states the mechanism (Bitbucket commit build statuses). It distinguishes itself from siblings by referencing list_pipelines as an alternative for the NO_STATUSES case, making its purpose unique and clear.

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

Usage Guidelines5/5

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

Provides explicit instructions on how to select the target: pass commit or pr_id, and defaults to HEAD if neither is given. It also tells the agent when to fall back to list_pipelines (when verdict is NO_STATUSES), giving clear usage context.

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

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