gitlab_project_get
Retrieve a GitLab project by ID or full path to resolve its canonical path for other tools and read its default branch.
Instructions
Get a project by id or path. Use it to turn a project name into the path the other tools take, and to read default_branch.
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": "<project>"
},
"name": "gitlab_project_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | Yes | project id ('42') or full path ('group/subgroup/app'); a path is URL-encoded for you |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| name | No | ||
| path | No | ||
| web_url | No | ||
| archived | No | ||
| visibility | No | ||
| default_branch | No | ||
| http_url_to_repo | No | ||
| path_with_namespace | No | full path, e.g. group/app - the value to pass as 'project' |