Skip to main content
Glama

Publish repository package

gitlab_publish_repository_package
Idempotent

Publish a package file to a specific GitLab project repository by providing project ID, package name, version, and file name; validates required inputs and returns package details.

Instructions

Publish a repository package for a specific project.

Args: **kwargs: Additional parameters for the request (e.g., project_id, package_name, package_version, file_name).

Returns: Response: A wrapper containing the original response and a Package model.

Raises: MissingParameterError: If the project_id, package_name, package_version, or file_name is missing. ParameterError: If invalid parameters are provided.

Input Schema

NameRequiredDescriptionDefault
refNo
pageNo
sortNo
selectNo
statusNo
group_idNo
per_pageNo
file_nameNo
max_pagesNo
package_idNo
project_idNo
package_nameNo
package_typeNo
api_parametersNo
package_versionNo
include_versionlessNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv27.3.13

TDQS

C2.8/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare idempotentHint=true, destructiveHint=false, and openWorldHint=true, so the safety profile is known. The description adds error behavior (MissingParameterError, ParameterError) and return structure (wrapper with Package model), but it does not explain operational side effects, permissions, or what publishing actually does (e.g., upload a file vs. create a package record).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is reasonably front-loaded and uses a structured docstring format, but the '**kwargs' line is vague and the Args/Returns/Raises boilerplate could be tighter. It is not overly long, but some sentences add little value.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with 16 parameters, 0% schema coverage, and no output schema, the description is incomplete. It mentions returns and errors but leaves most parameter meanings and the publish operation's behavior undocumented, making it hard for an agent to call correctly without guessing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 16 parameters. The description only names four example parameters (project_id, package_name, package_version, file_name) without explaining their semantics or the other twelve parameters (ref, page, sort, select, status, group_id, per_page, max_pages, package_id, package_type, api_parameters, include_versionless). It does not compensate for the schema gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: 'Publish a repository package for a specific project.' This distinguishes it from read-only siblings like gitlab_download_repository_package, but it does not explicitly mention those alternatives or the scope of the publish operation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is given on when to use this tool versus alternatives, nor on prerequisites such as permissions or package types. Usage is only implied by the tool name and the word 'publish'.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools