Skip to main content
Glama
Lexmata

Bitbucket Cloud MCP Server

by Lexmata

update_issue

Modify existing Bitbucket Cloud issues by updating title, content, state, priority, assignee, or issue type to track project changes.

Instructions

Update an existing issue.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workspaceYesThe workspace slug
repo_slugYesThe repository slug
issue_idYesThe issue ID
titleNoNew title
contentNoNew content
stateNoNew state
kindNoIssue type
priorityNoPriority level
assigneeNoAssignee UUID

Implementation Reference

  • Handler logic in ToolHandler.handleTool that parses arguments and delegates to IssuesAPI.update
    case 'update_issue': {
      const params = toolSchemas.update_issue.parse(args);
      const { workspace, repo_slug, issue_id, ...updates } = params;
      return this.issues.update(workspace, repo_slug, issue_id, updates);
    }
  • Zod input schema for validating update_issue tool parameters
    update_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'),
      title: z.string().optional().describe('New title'),
      content: z.string().optional().describe('New content'),
      state: z
        .enum(['new', 'open', 'resolved', 'on hold', 'invalid', 'duplicate', 'wontfix', 'closed'])
        .optional()
        .describe('New state'),
      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'),
    }),
  • MCP tool registration including name, description, and JSON input schema
    {
      name: 'update_issue',
      description: 'Update an existing issue.',
      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' },
          title: { type: 'string', description: 'New title' },
          content: { type: 'string', description: 'New content' },
          state: {
            type: 'string',
            enum: ['new', 'open', 'resolved', 'on hold', 'invalid', 'duplicate', 'wontfix', 'closed'],
            description: 'New state',
          },
          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', 'issue_id'],
      },
    },
  • IssuesAPI.update method that constructs the request body and makes the Bitbucket API PUT call to update the issue
    async update(
      workspace: string,
      repo_slug: string,
      issue_id: number,
      updates: {
        title?: string;
        content?: string;
        state?: BitbucketIssue['state'];
        kind?: BitbucketIssue['kind'];
        priority?: BitbucketIssue['priority'];
        assignee?: string;
      }
    ): Promise<BitbucketIssue> {
      const body: Record<string, unknown> = {};
    
      if (updates.title) body.title = updates.title;
      if (updates.content) body.content = { raw: updates.content };
      if (updates.state) body.state = updates.state;
      if (updates.kind) body.kind = updates.kind;
      if (updates.priority) body.priority = updates.priority;
      if (updates.assignee) body.assignee = { uuid: updates.assignee };
    
      return this.client.put<BitbucketIssue>(
        `/repositories/${workspace}/${repo_slug}/issues/${issue_id}`,
        body
      );
    }
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. 'Update an existing issue' implies a mutation operation but doesn't disclose any behavioral traits: no information about permissions needed, whether updates are partial or complete, what happens to unspecified fields, error conditions, or rate limits. This leaves significant gaps for an agent to understand the tool's behavior.

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 extremely concise at just 4 words, with zero wasted language. It's front-loaded with the core action and resource. While it lacks detail, what's present is structured efficiently without redundancy.

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 complexity (9 parameters, mutation operation) and absence of both annotations and output schema, the description is incomplete. It doesn't explain what fields can be updated, what the response looks like, error handling, or any behavioral context needed for a mutation tool. The 100% schema coverage helps with parameters but doesn't compensate for the lack of operational guidance.

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 description adds no parameter information beyond what's already in the schema. Since schema description coverage is 100% (all 9 parameters have descriptions, including 3 with enums), the baseline score of 3 is appropriate. The description doesn't compensate with additional context about parameter relationships or usage patterns.

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 'Update an existing issue' clearly states the action (update) and resource (issue), but it's vague about what specifically gets updated. It doesn't distinguish this tool from sibling tools like 'update_pull_request' or explain what differentiates issue updates from other operations.

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. There's no mention of prerequisites (like needing an existing issue), when not to use it, or how it differs from related tools like 'create_issue' or 'delete_issue' in the sibling list.

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