gitlab_approve_mr
Approve a GitLab merge request by providing project ID and merge request IID, with optional SHA for optimistic locking.
Instructions
Approve merge request by GitLab approval API.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "gitlab_approve_mr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | No | GitLab project ID. Omit this field unless the user explicitly provided a value. When omitted, the current runtime config value is used (WORKFLOW_CODE_PROJECT_ID overrides the built-in default when configured). If the runtime config is still unset, the tool returns a missing-parameter error. Do not infer or auto-generate this value. | |
| mr_iid | No | Merge request IID. | |
| sha | No | Optional expected HEAD SHA for optimistic locking during approval. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Whether the tool call succeeded. | |
| tool | Yes | Tool name. | |
| data | No | GitLab merge request approval payload. | |
| error_type | No | Error type when ok=false. | |
| message | No | Error message when ok=false. |