Skip to main content
Glama
Lexmata

Bitbucket Cloud MCP Server

by Lexmata

create_issue

Create new issues in Bitbucket Cloud repositories to track bugs, enhancements, proposals, or tasks with specified titles, descriptions, types, and priorities.

Instructions

Create a new issue in a repository.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workspaceYesThe workspace slug
repo_slugYesThe repository slug
titleYesIssue title
contentNoIssue content/description
kindNoIssue type
priorityNoPriority level
assigneeNoAssignee UUID

Implementation Reference

  • Main handler for the create_issue tool in ToolHandler.handleTool method. Parses input using Zod schema and delegates to IssuesAPI.create.
    case 'create_issue': {
      const params = toolSchemas.create_issue.parse(args);
      return this.issues.create(params);
    }
  • Zod input schema for create_issue tool used for validation in the handler.
    create_issue: z.object({
      workspace: z.string().describe('The workspace slug'),
      repo_slug: z.string().describe('The repository slug'),
      title: z.string().describe('Issue title'),
      content: z.string().optional().describe('Issue content/description'),
      kind: z.enum(['bug', 'enhancement', 'proposal', 'task']).optional().describe('Issue type'),
      priority: z
        .enum(['trivial', 'minor', 'major', 'critical', 'blocker'])
        .optional()
        .describe('Priority level'),
      assignee: z.string().optional().describe('Assignee UUID'),
    }),
  • Registration of the create_issue tool in the toolDefinitions array, including name, description, and JSON inputSchema for MCP.
    {
      name: 'create_issue',
      description: 'Create a new issue in a repository.',
      inputSchema: {
        type: 'object' as const,
        properties: {
          workspace: { type: 'string', description: 'The workspace slug' },
          repo_slug: { type: 'string', description: 'The repository slug' },
          title: { type: 'string', description: 'Issue title' },
          content: { type: 'string', description: 'Issue content/description' },
          kind: {
            type: 'string',
            enum: ['bug', 'enhancement', 'proposal', 'task'],
            description: 'Issue type',
          },
          priority: {
            type: 'string',
            enum: ['trivial', 'minor', 'major', 'critical', 'blocker'],
            description: 'Priority level',
          },
          assignee: { type: 'string', description: 'Assignee UUID' },
        },
        required: ['workspace', 'repo_slug', 'title'],
      },
    },
  • IssuesAPI.create method that constructs the request body and makes POST to Bitbucket API to create the issue.
    async create(params: CreateIssueParams): Promise<BitbucketIssue> {
      const { workspace, repo_slug, title, content, kind, priority, assignee } = params;
    
      const body: Record<string, unknown> = {
        title,
      };
    
      if (content) {
        body.content = { raw: content };
      }
    
      if (kind) body.kind = kind;
      if (priority) body.priority = priority;
      if (assignee) {
        body.assignee = { uuid: assignee };
      }
    
      return this.client.post<BitbucketIssue>(`/repositories/${workspace}/${repo_slug}/issues`, body);
    }
  • TypeScript interface defining CreateIssueParams used in API and tool.
    export interface CreateIssueParams {
      workspace: string;
      repo_slug: string;
      title: string;
      content?: string;
      kind?: 'bug' | 'enhancement' | 'proposal' | 'task';
      priority?: 'trivial' | 'minor' | 'major' | 'critical' | 'blocker';
      assignee?: string;
    }
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It states this creates a new issue but doesn't mention whether this requires specific permissions, what happens on success/failure, whether it's idempotent, or any rate limits. For a mutation tool with zero annotation coverage, this leaves significant behavioral gaps.

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 that states the core purpose without any wasted words. It's appropriately sized and front-loaded with the essential information.

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?

For a mutation tool with 7 parameters, no annotations, and no output schema, the description is insufficiently complete. It doesn't address behavioral aspects like permissions, side effects, or error conditions, nor does it explain what happens after creation or how to handle the result.

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 already documents all 7 parameters thoroughly with descriptions and enums. The description adds no parameter information beyond what's in the schema, so it meets the baseline of 3 but doesn't provide additional semantic context.

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 action ('Create') and resource ('new issue in a repository'), making the purpose immediately understandable. However, it doesn't differentiate from sibling tools like 'update_issue' or specify what distinguishes creating an issue from other creation tools like 'create_pull_request' or 'create_branch'.

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. With sibling tools like 'update_issue', 'delete_issue', and 'list_issues', there's no indication of prerequisites, when this is appropriate versus updating existing issues, or what context requires issue creation.

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