Summarize a pull request diff
summarize_pull_requestFetch a single GitHub pull request and return a bounded digest of its metadata, description, and truncated diff; the host writes the prose without a language-model call.
Instructions
Fetch one pull request and return a bounded digest of its metadata, description, and diff. Patches are truncated. This tool does not call a language model; the host writes the prose from the digest.
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": {
"owner": "<owner>",
"repo": "<repo>",
"number": "<number>"
},
"name": "summarize_pull_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository name, without the owner | |
| owner | Yes | GitHub user or organization login | |
| number | Yes | Pull request number | |
| fileLimit | No | Maximum files to include. Defaults to 20. | |
| maxPatchChars | No | Total characters of patch text to keep across all files. Defaults to 8000. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| body | Yes | ||
| repo | Yes | ||
| draft | Yes | ||
| files | Yes | ||
| owner | Yes | ||
| title | Yes | ||
| author | Yes | ||
| number | Yes | ||
| baseRef | Yes | ||
| headRef | Yes | ||
| headSha | Yes | ||
| additions | Yes | ||
| deletions | Yes | ||
| bodyTruncated | Yes | ||
| filesTruncated | Yes |