Skip to main content
Glama
Bitbucket DC MCP Server

Bitbucket DC MCP Server

by lvluu

searchCode

Search code in a Bitbucket repository by text query, optionally scoped by project and paginated, to locate matching files or snippets.

Instructions

Search code in a repository

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "repoSlug": "<repoSlug>",
      "query": "<query>"
    },
    "name": "searchCode"
  }
}

Input Schema

NameRequiredDescriptionDefault
allNoAll pages, max 1000
limitNo
queryYesSearch text
startNo
repoSlugYes
projectKeyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.10.0

TDQS

C2.4/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and delivers almost nothing: no statement of read-only safety, result limits, pagination behavior, or cost/rate characteristics. The only hints about paging ("all pages, max 1000") live in the schema, not in the description.

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

Conciseness3/5

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

The single sentence is front-loaded and free of filler, but it is concise to the point of under-specification rather than efficiently informative. There is no wasted wording, yet very little substance.

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?

With six parameters, no output schema, and no annotations, the definition is too thin for the tool's complexity. An agent cannot predict the return shape, result ordering, pagination bounds, or how required repoSlug and query combine.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 33%, so the description needs to compensate for undocumented parameters and does not. It adds no meaning for all, start, limit, repoSlug, or projectKey, and gives no clue how query text is interpreted.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a clear verb and resource ("Search code in a repository"), so the basic action is identifiable. However, it does not specify what is searched (file content, filenames, symbols), what the query syntax is, or how it differs from siblings like browseFiles or getFileContent that also read repository content.

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?

There is no guidance on when to use this tool versus alternatives, no prerequisites (auth/scopes, project vs repo scoping), and no exclusions. The agent must infer usage entirely from the name.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.