Skip to main content
Glama

decline_pull_request

Declines pull requests that should not be merged and records an optional rejection reason.

Instructions

Decline a pull request that should not be merged.

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": {
      "repository": "<repository>",
      "prId": "<prId>"
    },
    "name": "decline_pull_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
prIdYesPull request ID to decline.
messageNoReason for declining the pull request.
projectNoBitbucket project key (optional if default project configured).
repositoryYesRepository slug containing the pull request.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. It does not disclose that this is a state-changing operation, whether the decline can be undone, whether the optional message is posted as a comment, or what happens to the PR's source branch.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single short sentence with the action front-loaded and no filler. It is efficient, though the terseness comes at the cost of the behavioral detail noted elsewhere.

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 no annotations and no output schema, the description should explain effects, reversibility, and permissions. The schema covers the parameters well, but the operation's consequences are entirely undisclosed.

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 all four parameters are already documented, including the optional message and project fallback. The description adds no meaning beyond the schema, so the baseline of 3 applies.

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 names a specific verb and resource ("Decline a pull request") and adds a qualifier about which PRs it targets ("that should not be merged"), which implicitly contrasts with merge_pull_request. It is clear, though it does not explicitly name the sibling it opposes or describe the resulting state change.

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?

"That should not be merged" implies the condition for use, but there are no explicit when-to-use/when-not rules, no mention of the alternative (merge_pull_request or a comment-only response), and no prerequisites such as permissions or PR state requirements.

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