Skip to main content
Glama
host-mcp-bitbucket

host-mcp-bitbucket

createRepository

Creates a new Bitbucket repository in a Cloud workspace or Data Center project, letting you set name, visibility, description, default branch, and fork options.

Instructions

Create a new Bitbucket repository in a workspace (Cloud) or project (Data Center)

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": {
      "name": "<name>"
    },
    "name": "createRepository"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesRepository name
forkableNoAllow forks (Data Center: forkable; Cloud: fork_policy allow_forks/no_forks)
repoSlugNoRepository slug (Cloud only; derived from the name if omitted — Data Center always derives it server-side)
isPrivateNoCreate the repository as private (Cloud default: true; Data Center default: inherits the project visibility)
workspaceNoBitbucket workspace or project key (uses default if omitted)
projectKeyNoProject key the repository belongs to (Cloud: optional, defaults to the workspace's oldest project; Data Center: alias for workspace)
descriptionNoRepository description
defaultBranchNoDefault branch name (Data Center only — ignored on Cloud, where it can only be set once a branch exists)

Output Schema

NameRequiredDescriptionDefault
resultYesTool-specific result payload
statusYesWhether the tool call succeeded
messageYesHuman-readable status message

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

B3.2/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false and destructiveHint=false, so the safety profile is covered structurally. The description adds nothing behavioral beyond that: it doesn't mention required permissions, what happens on duplicate name/slug collisions, whether the call fails or overwrites, or any rate limits — all things a create mutation would benefit from. The Cloud/Data Center split it mentions is largely restated and expanded in the schema.

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?

A single front-loaded sentence with the verb and resource first and the platform qualifier trailing; every word carries information and there is no filler or repetition.

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?

Correcting for supplied richness: an output schema exists (no need to describe returns), the schema documents all 8 parameters at 100% coverage including platform-specific defaults, and annotations cover the mutation safety profile. What remains — permissions and duplicate-name failure modes — is minor for a create tool whose structured data is this complete.

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% and the property descriptions already explain Cloud vs Data Center semantics for workspace, projectKey, repoSlug, isPrivate, defaultBranch and forkable in more detail than the description. The description adds no parameter-specific meaning, so the baseline 3 for fully documented schemas is appropriate.

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?

"Create a new Bitbucket repository" is a specific verb+resource, and the parenthetical "in a workspace (Cloud) or project (Data Center)" adds deployment-scope precision. It does not explicitly contrast with siblings like getRepository or listRepositories, but the resource is unambiguous enough that no confusion arises.

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 states only what the tool does; it gives no when-to-use guidance, no prerequisites (e.g. permission to create in a workspace/project), and no condition under which an agent should prefer it over other creation or repository-listing tools. Only inference from the tool name tells the agent when to reach for it.

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