gitlab_repo
Inspect GitLab repositories read-only: list projects, branches, tags, and directory trees; read files; review commits; and compare refs to understand code changes.
Instructions
Read-only inspection of GitLab repositories, branches, directory trees, files, and commits.
Actions:
'projects': List allowlisted GitLab project aliases and permissions.
'refs': List branches and tags for a project.
'tree': List directory files/folders at a ref.
'read_file': Read file content at a ref with pagination (start_line/max_lines).
'commits': View recent commit history with author, date, and commit message.
'compare': Diff two branches/commits with per-file change summaries.
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": {
"action": "<action>"
},
"name": "gitlab_repo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Branch, tag, or commit SHA | |
| sha | No | Specific commit SHA to inspect | |
| kind | No | Ref kind | both |
| path | No | File or directory path | |
| limit | No | Items limit | |
| since | No | ISO date filter start | |
| until | No | ISO date filter end | |
| action | Yes | ||
| search | No | Search filter | |
| to_ref | No | Target ref for compare | |
| project | No | Project alias from gitlab_projects | |
| from_ref | No | Base ref for compare | |
| max_lines | No | Max lines to read | |
| recursive | No | Recursive tree listing | |
| start_line | No | File start line (1-based) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||