add_project_member
Add a user to a GitLab project with a chosen access level. Preview changes with dry run, then confirm to execute.
Instructions
Add a user to a project with a given access level. dry_run=true by default.
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": {
"project_id": "<project_id>",
"user_id": "<user_id>",
"access_level": "<access_level>"
},
"name": "add_project_member"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | Project ID | |
| user_id | Yes | Numeric user ID (resolve from search_users) | |
| access_level | Yes | Access level: 10=Guest, 20=Reporter, 30=Developer, 40=Maintainer, 50=Owner. | |
| expires_at | No | Optional expiration date (YYYY-MM-DD) | |
| dry_run | No | Dry run mode (default: true). When true, returns a preview of the action without executing it. Set to false only after user confirmation. |