Skip to main content
Glama
host-mcp-bitbucket

host-mcp-bitbucket

deletePullRequestTask

Deletes a specified task from a Bitbucket pull request; on Data Center it automatically fetches the task version to handle optimistic concurrency.

Instructions

Delete a task from a pull request. 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": "deletePullRequestTask"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskIdYesTask ID
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

A3.6/5.0
Behavior3/5

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

The readOnlyHint=false annotation already signals a mutating operation, and the description adds genuinely useful behavior: on Data Center the task version is fetched automatically for optimistic concurrency. It does not state that deletion is irreversible, what happens on Cloud (where a version might be required but no version parameter exists), or what the response contains.

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, front-loaded with the action and resource, with the platform nuance second. No filler or redundant restatement of the name.

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?

The tool is simple (one destructive operation on an identified task), an output schema exists so return values need not be explained, and the description covers the one non-obvious behavioral wrinkle. Remaining gaps — irreversibility and permission requirements — are modest for a delete of this scope.

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 repoSlug, pullRequestId, taskId, and workspace; baseline is 3. The description adds context about version handling, but that raises a question rather than resolving one, since no version parameter appears in the schema and the Data Center-only caveat is left unelaborated.

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 uses a specific verb and resource ('Delete a task from a pull request'), which clearly separates it from siblings like deletePullRequestComment, createPullRequestTask, and updatePullRequestTask. It stops short of explicitly naming those alternatives, so it is clear but not maximally differentiated.

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?

Usage is only implied by the verb: remove an existing PR task. There is no explicit when-to-use vs when-not guidance, no mention of prerequisites (e.g. task ownership or permissions), and no pointer to updatePullRequestTask as the alternative when a task should be modified rather than removed.

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