Skip to content

Tool Reference ​

GitLab MCP Server provides 66 tools across 27 registry groups.

GitLab Duo (USE_DUO=true) ​

ToolActionsDescription
browse_duo_sessionsagents_and_flows, list, getDiscover project agents and flows; inspect session progress, answers and created objects
manage_duo_sessionstart, send_inputExplicitly start CI execution or answer, approve or reject a waiting session

Commands can change GitLab and consume credits. Read-only mode removes them. See Duo sessions for version support, prerequisites, pagination, bounded output and ambiguous-write recovery.

Architecture ​

Action-based tools follow the CQRS pattern:

  • browse_* — Read-only query operations
  • manage_* — Write/command operations

Each CQRS tool accepts an action parameter selecting the specific operation. Helpers such as get_profile have their own input schemas and may not accept action.

Tool Categories ​

Core (Always Available) ​

ToolTypeDescription
browse_projectsQueryFind, browse, or inspect projects
manage_projectCommandCreate, fork, update, delete, archive, transfer projects
browse_namespacesQueryExplore groups and namespaces
manage_namespaceCommandCreate, update, delete groups
browse_commitsQueryExplore commit history
browse_eventsQueryTrack activity feeds
browse_usersQuerySearch users
browse_todosQueryView todo notifications
manage_todosCommandMark todos done/restore
manage_contextMixedManage session context

Iterations (USE_ITERATIONS=true, default: enabled) ​

ToolTypeDescription
browse_iterationsQueryList and get group iterations (Premium)

Releases (USE_RELEASES=true, default: enabled) ​

ToolTypeDescription
browse_releasesQueryBrowse project releases
manage_releaseCommandCreate/update releases

Refs (USE_REFS=true, default: enabled) ​

ToolTypeDescription
browse_refsQueryBrowse branches and tags
manage_refCommandCreate/protect branches and tags

Protected-tag listing, protection and unprotection are available on every GitLab tier. For branch and tag protection, allowed_to_* access lists are available in EE: role entries (access_level) work on Free EE, while individual user/group grants require Premium or Ultimate and the appropriate project membership. Code-owner approval requires Premium or Ultimate.

Protection changes are checked against the returned GitLab entity. If GitLab ignores a requested access entry, unprotect_access_level or code-owner setting, the result includes not_applied with the setting name (including the input array index), requested value and required capability. Other changes may already have taken effect; inspect the returned protection before retrying. Fully applied responses retain their usual shape. CE callers can use create_access_level, push_access_level and merge_access_level for role-based protection. The standalone unprotect_access_level parameter requires EE too; it is checked against the returned unprotect_access_levels, including when CE ignores it.

These capabilities are verified against GitLab 16.0 sources: protected tags, EE access-list parameters, role and licensed user/group grants, and code-owner approval.

Members (USE_MEMBERS=true, default: enabled) ​

ToolTypeDescription
browse_membersQueryBrowse team members
manage_memberCommandAdd/remove team members

Search (USE_SEARCH=true, default: enabled) ​

ToolTypeDescription
browse_searchQuerySearch across GitLab

For global or group searches, blobs needs Advanced Search or exact code search; commits, notes and wiki_blobs need Advanced Search. Availability depends on the instance configuration and the search target, not just its licensed tier. When GitLab rejects one of these scopes as unavailable, the tool explains how to use action: "project" with project_id and the same scope instead. Project search remains available without a cross-project search backend. The tool does not retry the request or automatically search additional projects.

Labels (USE_LABELS=true, default: enabled) ​

ToolTypeDescription
browse_labelsQueryList and get labels
manage_labelCommandCreate, update, delete labels

Merge Requests (USE_MRS=true, default: enabled) ​

ToolTypeDescription
browse_merge_requestsQueryList, get, diffs, compare MRs
browse_mr_discussionsQueryList discussions and draft notes
manage_merge_requestCommandCreate, update, merge MRs
manage_mr_discussionCommandComment, thread, reply, resolve
manage_draft_notesCommandCreate, publish, delete drafts

Files (USE_FILES=true, default: enabled) ​

ToolTypeDescription
browse_filesQueryTree listing, file content, download attachments
manage_filesCommandCreate, update, upload files

CI/CD Variables (USE_VARIABLES=true, default: enabled) ​

ToolTypeDescription
browse_variablesQueryList and get variables
manage_variableCommandCreate, update, delete variables

Work Items (USE_WORKITEMS=true, default: enabled) ​

ToolTypeDescription
browse_work_itemsQueryList and get issues/epics/tasks
manage_work_itemCommandCreate, update, delete, link and reorder work items

Use manage_work_item with action: "reorder", the issue's global id, and beforeId and/or afterId to change manual card order. Neighbours use global work item IDs, not project-local IIDs. The server resolves the issue's project and finds an accessible project or ancestor-group board internally; no boardId is required. The operation changes GitLab's shared issue-relative order, without changing lists, labels or hierarchy. It is a write and respects read-only mode and action/project restrictions. GitLab remains authoritative for board and issue permissions.

json
{"action":"reorder","id":"123","beforeId":"456"}

Webhooks (USE_WEBHOOKS=true, default: enabled) ​

ToolTypeDescription
browse_webhooksQueryList project/group webhooks
manage_webhookCommandCreate, update, delete, test webhooks

Snippets (USE_SNIPPETS=true, default: enabled) ​

ToolTypeDescription
browse_snippetsQueryList personal/project/public snippets
manage_snippetCommandCreate, update, delete snippets

Integrations (USE_INTEGRATIONS=true, default: enabled) ​

ToolTypeDescription
browse_integrationsQueryList active project integrations
manage_integrationCommandUpdate, disable integrations

Wiki (USE_GITLAB_WIKI=true, default: enabled) ​

ToolTypeDescription
browse_wikiQueryList and get wiki pages
manage_wikiCommandCreate, update, delete wiki pages

For manage_wiki updates, omit title to preserve the page's current slug and URL when changing content or format, including nested pages. An explicit title renames the page and can change its URL: a leaf-only title stays in the current directory, while a title containing / supplies the full destination path.

Milestones (USE_MILESTONE=true, default: enabled) ​

ToolTypeDescription
browse_milestonesQueryList, get, issues, MRs, burndown
manage_milestoneCommandCreate, update, delete, promote

Pipelines (USE_PIPELINE=true, default: enabled) ​

ToolTypeDescription
browse_pipelinesQueryList pipelines, jobs, logs
manage_pipelineCommandCreate, retry, cancel pipelines; play, retry, cancel jobs

Tools by Use-Case ​

For workflow-oriented documentation with examples:

Tool Comparison by Role ​

Which tools matter most for each role:

ToolDeveloperDevOpsTeam LeadPM
browse_merge_requests★★★★★★★★
manage_merge_request★★★★★★★—
manage_mr_discussion★★★—★★★—
browse_pipelines★★★★★★—
manage_pipeline★★★★——
browse_variables★★★★——
manage_variable—★★★——
browse_files★★★★★—
manage_files★★★——
browse_commits★★★★—
browse_work_items★★★★★★★★★
manage_work_item★★★★★★★★★
browse_milestones★—★★★★★★
manage_milestone——★★★★★
browse_labels★—★★★★★
manage_label——★★★★★
browse_members★★★★★★★
manage_member—★★★★—
browse_webhooks—★★★★—
manage_webhook—★★★★—
browse_integrations—★★★★—
browse_releases★★★★★★
manage_release★★★★★★★
browse_refs★★★★★★—
browse_search★★★★★★

★★★ = Primary tool  |  ★★ = Frequently used  |  ★ = Occasionally  |  — = Rarely needed

See role-based prompts for workflows tailored to each role.

Query vs Command Comparison ​

CategoryQuery (browse_*)Command (manage_*)
Projectsbrowse_projects (search, list, get)manage_project (create, fork, update, delete, archive, transfer)
Namespacesbrowse_namespaces (list, get, verify)manage_namespace (create, update, delete)
Merge Requestsbrowse_merge_requests (list, get, diffs, compare)manage_merge_request (create, update, merge, approve)
Discussionsbrowse_mr_discussions (list, drafts, draft)manage_mr_discussion (comment, thread, suggest, resolve)
Pipelinesbrowse_pipelines (list, get, jobs, logs)manage_pipeline (create, retry, cancel)
Jobs— (via browse_pipelines)manage_pipeline (play_job, retry_job, cancel_job)
Variablesbrowse_variables (list, get)manage_variable (create, update, delete)
Filesbrowse_files (tree, content, download_attachment)manage_files (single, batch, upload)
Work Itemsbrowse_work_items (list, get, list_discussions)manage_work_item (create, update, delete, link, reorder)
Milestonesbrowse_milestones (list, get, issues, burndown)manage_milestone (create, update, delete, promote)
Labelsbrowse_labels (list, get)manage_label (create, update, delete)
Iterationsbrowse_iterations (list, get)—
Releasesbrowse_releases (list, get, assets)manage_release (create, update, delete, links)
Refsbrowse_refs (branches, tags, protection)manage_ref (create, delete, protect)
Membersbrowse_members (list, get)manage_member (add, remove, update)
Webhooksbrowse_webhooks (list, get)manage_webhook (create, update, delete, test)
Integrationsbrowse_integrations (list, get)manage_integration (update, disable)
Wikibrowse_wiki (list, get)manage_wiki (create, update, delete)
Snippetsbrowse_snippets (list, get)manage_snippet (create, update, delete)
Usersbrowse_users (search, get)—
Todosbrowse_todos (list)manage_todos (done, done_all, restore)

Detailed Documentation ​

For complete parameter documentation, action matrices, and example requests, see the auto-generated Full API Reference.

Generate locally:

bash
yarn list-tools --export --toc > docs/tools/api-reference.md

Released under the Apache 2.0 License.