comment_on_pr
Post a security summary comment on a GitHub pull request or GitLab merge request to communicate scan results or gate decisions.
Instructions
Post a security summary comment on a GitHub PR or GitLab merge request.
Credentials come from environment variables only: GITHUB_TOKEN for GitHub, or GITLAB_TOKEN (+ optional GITLAB_URL) for GitLab.
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>",
"pr_number": "<pr_number>",
"body": "<body>"
},
"name": "comment_on_pr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| provider | Yes | 'github' or 'gitlab'. | |
| repo | Yes | For GitHub, 'owner/name'. For GitLab, the numeric project ID or URL-encoded 'group/project' path. | |
| pr_number | Yes | PR number (GitHub) or merge request IID (GitLab). | |
| body | Yes | Markdown comment body (e.g. a scan summary or gate result). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |