close_pull_request
Close or decline a pull request on GitHub or Bitbucket Cloud, returning the updated state.
Instructions
Close or decline a pull request.
Args: provider: Provider key. repo: Repository identity. pull_request_id: Provider pull-request identifier. raw: Include the provider payload.
Returns: Normalized write-result mapping with the resulting state.
Examples:
Input: {"repo": "o/r", "pull_request_id": "7"}.
Output: {"id": "7", "state": "closed", ...}.
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": {
"provider": "<provider>",
"repo": "<repo>",
"pull_request_id": "<pull_request_id>"
},
"name": "close_pull_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | ||
| repo | Yes | ||
| provider | Yes | ||
| pull_request_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||