Skip to main content
Glama
Lexmata

Bitbucket Cloud MCP Server

by Lexmata

list_pipelines

Retrieve pipeline execution history for a Bitbucket Cloud repository to monitor build status and deployment progress.

Instructions

List pipeline runs for a repository.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workspaceYesThe workspace slug
repo_slugYesThe repository slug
pageNoPage number
pagelenNoResults per page

Implementation Reference

  • MCP tool handler for list_pipelines: parses arguments using Zod schema and delegates to PipelinesAPI.list method.
    case 'list_pipelines': {
      const params = toolSchemas.list_pipelines.parse(args);
      return this.pipelines.list(params);
    }
  • Zod input schema definition for the list_pipelines tool.
    list_pipelines: z.object({
      workspace: z.string().describe('The workspace slug'),
      repo_slug: z.string().describe('The repository slug'),
      page: z.number().optional().describe('Page number'),
      pagelen: z.number().optional().describe('Results per page'),
    }),
  • Tool registration in MCP toolDefinitions array, including name, description, and JSON schema.
      name: 'list_pipelines',
      description: 'List pipeline runs for a repository.',
      inputSchema: {
        type: 'object' as const,
        properties: {
          workspace: { type: 'string', description: 'The workspace slug' },
          repo_slug: { type: 'string', description: 'The repository slug' },
          page: { type: 'number', description: 'Page number' },
          pagelen: { type: 'number', description: 'Results per page' },
        },
        required: ['workspace', 'repo_slug'],
      },
    },
  • PipelinesAPI.list method: performs the Bitbucket API GET request to fetch paginated list of pipelines.
    async list(params: ListPipelinesParams): Promise<PaginatedResponse<BitbucketPipeline>> {
      const { workspace, repo_slug, ...queryParams } = params;
      return this.client.get<PaginatedResponse<BitbucketPipeline>>(
        `/repositories/${workspace}/${repo_slug}/pipelines`,
        queryParams as Record<string, string | number | undefined>
      );
    }
  • TypeScript interface defining parameters for listing pipelines.
    export interface ListPipelinesParams {
      workspace: string;
      repo_slug: string;
      page?: number;
      pagelen?: number;
    }
Behavior2/5

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

No annotations are provided, so the description carries full burden. It states the action ('List') but doesn't disclose behavioral traits such as pagination behavior (implied by parameters but not described), rate limits, authentication requirements, or response format. For a list operation with no annotation coverage, this leaves significant gaps in understanding how the tool behaves.

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 with zero waste. It's front-loaded with the core action and resource, making it easy to parse. Every word earns its place, and there's no redundant or verbose language.

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 no annotations and no output schema, the description is incomplete for a list tool with 4 parameters. It doesn't explain return values, pagination behavior, or error conditions. While the purpose is clear, the lack of behavioral and output context makes it inadequate for full agent understanding.

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 description coverage is 100%, so the schema fully documents all 4 parameters. The description adds no additional meaning beyond implying a repository context, which is already covered by 'repo_slug' in the schema. Baseline 3 is appropriate as the schema does the heavy lifting, but the description doesn't enhance parameter understanding.

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 verb ('List') and resource ('pipeline runs for a repository'), making the purpose unambiguous. It distinguishes itself from sibling tools like 'get_pipeline' (singular) and 'trigger_pipeline' (action). However, it doesn't specify scope (e.g., all runs vs. recent runs), which prevents 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. It doesn't mention prerequisites (e.g., authentication), differentiate from similar tools like 'list_repositories' or 'get_pipeline', or indicate when not to use it (e.g., for single pipeline details). Usage is implied but not explicitly stated.

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