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
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Repository name | |
| forkable | No | Allow forks (Data Center: forkable; Cloud: fork_policy allow_forks/no_forks) | |
| repoSlug | No | Repository slug (Cloud only; derived from the name if omitted — Data Center always derives it server-side) | |
| isPrivate | No | Create the repository as private (Cloud default: true; Data Center default: inherits the project visibility) | |
| workspace | No | Bitbucket workspace or project key (uses default if omitted) | |
| projectKey | No | Project key the repository belongs to (Cloud: optional, defaults to the workspace's oldest project; Data Center: alias for workspace) | |
| description | No | Repository description | |
| defaultBranch | No | Default branch name (Data Center only — ignored on Cloud, where it can only be set once a branch exists) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Tool-specific result payload | |
| status | Yes | Whether the tool call succeeded | |
| message | Yes | Human-readable status message |