Skip to main content
Glama
aashari

Atlassian Bitbucket MCP Server

by aashari

bb_search

Search Bitbucket repositories, code, pull requests, or content using a query. Filter results by scope, language, or file extension. Supports pagination and requires Bitbucket credentials. Returns search results in Markdown format.

Instructions

Searches Bitbucket for content matching the provided query. Use this tool to find repositories, code, pull requests, or other content in Bitbucket. Specify scope to narrow your search ("code", "repositories", "pullrequests", or "content"). Filter code searches by language or extension. Filter content searches by contentType. Only searches within the specified workspaceSlug and optionally within a specific repoSlug. Supports pagination via limit and cursor. Requires Atlassian Bitbucket credentials configured. Returns search results as Markdown.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentTypeNoContent type for content search (e.g., "wiki", "issue"). Equivalent to --content-type in CLI.
cursorNoPagination cursor for retrieving the next set of results. For repositories and pull requests, this is a cursor string. For code search, this is a page number. Use this to navigate through large result sets.
extensionNoFilter code search by file extension. Equivalent to --extension in CLI.
languageNoFilter code search by language. Equivalent to --language in CLI.
limitNoMaximum number of results to return (1-100). Use this to control the response size. Useful for pagination or when you only need a few results.
queryYesSearch query text. Required. Will match against content based on the selected search scope. Equivalent to --query in CLI.
repoSlugNoOptional: Repository slug to limit search scope. Required for `pullrequests` scope. Example: "project-api". Equivalent to --repo in CLI.
scopeNoSearch scope: "code", "content", "repositories", "pullrequests". Default: "code". Equivalent to --type in CLI.code
workspaceSlugNoWorkspace slug to search in. If not provided, the system will use your default workspace. Example: "myteam". Equivalent to --workspace in CLI.
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure and does so effectively. It mentions authentication requirements ('Requires Atlassian Bitbucket credentials configured'), pagination behavior ('Supports pagination via limit and cursor'), and output format ('Returns search results as Markdown'). It also clarifies the search scope limitation ('Only searches within the specified workspaceSlug').

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is appropriately sized and front-loaded with the core purpose in the first sentence. Each subsequent sentence adds useful information about parameters, authentication, and output. There's minimal redundancy, though the sentence about filtering could be slightly more concise.

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?

Given the tool's complexity (9 parameters, search functionality) and lack of output schema, the description does a good job covering key aspects: purpose, usage context, authentication, pagination, and output format. It could be slightly more complete by mentioning error cases or rate limits, but it's largely adequate for the agent to understand and use the tool.

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 schema description coverage is 100%, so the schema already documents all parameters thoroughly. The description adds some context about what the parameters do (e.g., 'Specify scope to narrow your search') but doesn't provide significant additional semantic value beyond what's in the schema descriptions. This meets the baseline expectation when schema coverage is high.

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 with specific verbs ('searches Bitbucket for content matching the provided query') and resources ('repositories, code, pull requests, or other content'). It distinguishes itself from sibling tools like bb_get_repo or bb_ls_prs by emphasizing its search functionality across multiple content types rather than retrieving specific items.

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 provides clear context for when to use this tool ('to find repositories, code, pull requests, or other content in Bitbucket') and mentions scoping options. However, it doesn't explicitly state when NOT to use it or name specific alternatives among the sibling tools (e.g., when to use bb_get_repo instead for direct repository retrieval).

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

Related 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/aashari/mcp-server-atlassian-bitbucket'

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