Skip to main content
Glama
Lexmata

Bitbucket Cloud MCP Server

by Lexmata

get_pipeline

Retrieve details of a specific pipeline run in Bitbucket Cloud to monitor execution status, view logs, and track deployment progress.

Instructions

Get details of a specific pipeline run.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workspaceYesThe workspace slug
repo_slugYesThe repository slug
pipeline_uuidYesThe pipeline UUID

Implementation Reference

  • The MCP tool handler case for 'get_pipeline' that validates arguments with Zod schema and calls PipelinesAPI.get to retrieve pipeline details.
    case 'get_pipeline': {
      const params = toolSchemas.get_pipeline.parse(args);
      return this.pipelines.get(params.workspace, params.repo_slug, params.pipeline_uuid);
    }
  • Zod input schema definition for the 'get_pipeline' tool.
    get_pipeline: z.object({
      workspace: z.string().describe('The workspace slug'),
      repo_slug: z.string().describe('The repository slug'),
      pipeline_uuid: z.string().describe('The pipeline UUID'),
    }),
  • Tool registration in the toolDefinitions export array used by MCP, including name, description, and JSON schema.
    {
      name: 'get_pipeline',
      description: 'Get details of a specific pipeline run.',
      inputSchema: {
        type: 'object' as const,
        properties: {
          workspace: { type: 'string', description: 'The workspace slug' },
          repo_slug: { type: 'string', description: 'The repository slug' },
          pipeline_uuid: { type: 'string', description: 'The pipeline UUID' },
        },
        required: ['workspace', 'repo_slug', 'pipeline_uuid'],
      },
    },
  • PipelinesAPI.get method implementation that performs the HTTP GET request to Bitbucket's pipeline endpoint.
    async get(
      workspace: string,
      repo_slug: string,
      pipeline_uuid: string
    ): Promise<BitbucketPipeline> {
      return this.client.get<BitbucketPipeline>(
        `/repositories/${workspace}/${repo_slug}/pipelines/${pipeline_uuid}`
      );
    }
Behavior2/5

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

With no annotations provided, the description carries full burden but only states it 'gets details' without specifying what details are returned, whether it's a read-only operation, or any behavioral traits like error handling or rate limits. This leaves significant gaps for a tool with three required parameters.

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 a single, efficient sentence that directly states the tool's purpose without unnecessary words. It is appropriately sized and front-loaded, making it easy to parse quickly.

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?

Given the complexity of a tool with three required parameters, no annotations, and no output schema, the description is incomplete. It fails to explain what details are returned, how errors are handled, or any contextual nuances, leaving the agent with insufficient information for reliable use.

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?

The description adds no meaning beyond the input schema, which has 100% coverage with clear parameter descriptions. The baseline score of 3 is appropriate since the schema adequately documents the parameters, but the description doesn't enhance understanding of their semantics or relationships.

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?

The description clearly states the action ('Get details') and resource ('specific pipeline run'), making the purpose understandable. However, it doesn't differentiate from sibling tools like 'list_pipelines' or 'get_pull_request' beyond the resource name, which keeps it from a perfect score.

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?

The description provides no guidance on when to use this tool versus alternatives like 'list_pipelines' or other get_* tools. It lacks context about prerequisites, such as needing a specific pipeline UUID, or exclusions for when not to use it.

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

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