Model registry
The model registry keeps machine learning models and their versions in a project. model_registry.download fetches one file of a model version, for inference, evaluation or a build. Publishing and deleting model versions are not actions of this server.
Sample questions
Section titled “Sample questions”- “Download model.onnx from version 3 of the classifier model in project 42”
How to call it
Section titled “How to call it”- Dynamic, the default surface: call
gitlab_execute_actionwithactionset to the action’s ID, such asmodel_registry.download, and its parameters inparams.gitlab_find_actionfinds an ID from a description of the task. - Meta (
GITLAB_MCP_TOOL_SURFACE=meta): callgitlab_model_registrywithactionset to the action’s name, such asdownload, and its parameters inparams. - Individual (
GITLAB_MCP_TOOL_SURFACE=individual): call the action’s own tool, such asgitlab_download_ml_model_package, with its parameters as the arguments.
Availability
Section titled “Availability”Every tier serves the whole group, on self-managed instances and on GitLab.com alike.
Read-only actions: 1 of 1, the ones a deployment in read-only mode keeps. A token with read_api and not api is served 1 of the 1.
Actions
Section titled “Actions”The description of each action, and of each of its parameters, is the text the server serves for it on the default surface, quoted as served. The token lines say what GitLab 19.4.1 requires of a token for the requests each action sends; on an instance with Admin Mode turned on, an action only an administrator may run also needs admin_mode.
| Action | Individual |
|---|---|
model_registry.download | gitlab_download_ml_model_package |
model_registry.download
Section titled “model_registry.download”Download one artifact file from a project ML model registry package version by project, model version, path (empty for a file at the package root), and filename. Returns: the artifact bytes base64-encoded in content_base64, plus project, model version, path, filename, and decoded size_bytes. See also:
package.list,release.link_create,repository.raw_blob.
- Meta-tool:
gitlab_model_registry, actiondownload - Individual tool:
gitlab_download_ml_model_package - Tier: Free
- Classic or OAuth token:
read_api(orapi) - Fine-grained token: Model Version: Read at project (permissions page)
- Behavior: read-only, idempotent
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
filename | string | yes | Name of the file to download |
model_version_id | string/integer | yes | Model version ID. Either the numeric version ID from the model version URL or a candidate run ID prefixed with candidate: such as candidate:5 |
project_id | string/integer | yes | Project ID or URL-encoded path |
path | string | no | Directory of the file within the model package (such as models or sub/dir). Leave it empty or pass . for a file at the package root |