Skip to main content
Glama
host-mcp-bitbucket

host-mcp-bitbucket

updatePullRequestTask

Updates a pull request task's content or state, automatically fetching the task version on Data Center to handle optimistic concurrency.

Instructions

Update a task on a pull request (content, state). On Data Center, the task version is fetched automatically for optimistic concurrency.

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": {
      "repoSlug": "<repoSlug>",
      "pullRequestId": "<pullRequestId>",
      "taskId": "<taskId>"
    },
    "name": "updatePullRequestTask"
  }
}

Input Schema

NameRequiredDescriptionDefault
stateNoUpdated task state (OPEN or RESOLVED)
taskIdYesTask ID
contentNoUpdated task content
repoSlugYesRepository slug
workspaceNoBitbucket workspace name
pullRequestIdYesPull request ID

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

A4/5.0
Behavior4/5

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

The annotations only mark it as non-read-only, so the description carries the main behavioral burden. The note that Data Center fetches task version automatically for optimistic concurrency is a meaningful, non-obvious detail, though permissions, reversibility, and other side effects are not described.

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?

Two short sentences: the operation is front-loaded, followed by the Data Center concurrency caveat. There is no filler or redundant schema detail.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With full schema coverage and an output schema, the definition is mostly complete, and the concurrency note adds useful context for a mutation tool. It could be stronger by clarifying Cloud versus Data Center behavior or permission requirements.

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 coverage is 100%, so the parameters, including the state enum, are already documented in the schema. The description only repeats content and state and adds no extra parameter semantics beyond that.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: update a task on a pull request, scoped to content and state. This clearly distinguishes it from create, delete, and get task siblings even though it does not name them.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It identifies the operation but gives no explicit when-to-use or when-not-to-use guidance, and it does not name alternatives such as createPullRequestTask or updatePullRequestComment. The context is implied by the task-update wording, making this minimum viable.

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