Skip to main content
Glama
Lexmata

Bitbucket Cloud MCP Server

by Lexmata

delete_issue

Remove issues from Bitbucket Cloud repositories to maintain clean project tracking and resolve completed tasks.

Instructions

Delete an issue from a repository.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workspaceYesThe workspace slug
repo_slugYesThe repository slug
issue_idYesThe issue ID

Implementation Reference

  • Handler for the delete_issue tool: parses arguments using the schema, calls the IssuesAPI.delete method, and returns a success message.
    case 'delete_issue': {
      const params = toolSchemas.delete_issue.parse(args);
      await this.issues.delete(params.workspace, params.repo_slug, params.issue_id);
      return { success: true, message: 'Issue deleted' };
    }
  • Zod schema defining the input parameters for the delete_issue tool.
    delete_issue: z.object({
      workspace: z.string().describe('The workspace slug'),
      repo_slug: z.string().describe('The repository slug'),
      issue_id: z.number().describe('The issue ID'),
    }),
  • Registration of the delete_issue tool in the MCP tool definitions array, including name, description, and input schema reference.
    {
      name: 'delete_issue',
      description: 'Delete an issue from a repository.',
      inputSchema: {
        type: 'object' as const,
        properties: {
          workspace: { type: 'string', description: 'The workspace slug' },
          repo_slug: { type: 'string', description: 'The repository slug' },
          issue_id: { type: 'number', description: 'The issue ID' },
        },
        required: ['workspace', 'repo_slug', 'issue_id'],
      },
    },
Behavior2/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. It states the action ('Delete') but doesn't clarify if this is permanent, requires specific permissions, triggers notifications, or what happens on success/failure. For a destructive operation, this lack of detail is a significant gap.

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, direct sentence with zero wasted words, making it easy to parse and front-loaded with the core action. It efficiently conveys the essential purpose without unnecessary elaboration.

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?

Given the tool's complexity (a destructive operation with 3 parameters) and the absence of both annotations and an output schema, the description is insufficient. It doesn't address behavioral aspects like side effects, error handling, or return values, leaving critical gaps for safe and effective use.

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 input schema has 100% description coverage, with clear parameter names and descriptions. The description adds no additional meaning beyond what the schema provides, such as format examples or constraints, so it meets the baseline for high schema coverage without enhancing parameter understanding.

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 ('Delete') and resource ('an issue from a repository'), making the purpose immediately understandable. However, it doesn't differentiate from sibling tools like 'delete_branch' or 'delete_repository' beyond the resource type, which prevents a perfect score.

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 like 'update_issue' or 'list_issues', nor does it mention prerequisites (e.g., needing proper permissions) or consequences (e.g., irreversibility). It's a bare statement of function without contextual advice.

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