Skip to main content
Glama
mungowang
by mungowang

gitlab_project_get

Read-only

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectYesproject id ('42') or full path ('group/subgroup/app'); a path is URL-encoded for you

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNo
nameNo
pathNo
web_urlNo
archivedNo
visibilityNo
default_branchNo
http_url_to_repoNo
path_with_namespaceNofull path, e.g. group/app - the value to pass as 'project'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

The readOnlyHint annotation already establishes the safety profile, and the description adds genuine behavioral context: it resolves names to the path form other tools expect and exposes default_branch. It stops short of covering error behavior or auth requirements, but that is beyond the typical bar for a simple getter.

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

Conciseness5/5

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

Two tight sentences, with the core action front-loaded and the value proposition following. No filler or redundancy.

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

Completeness4/5

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

For a single-parameter read tool with an output schema already describing return values, the description is essentially complete. It could note the search alternative for discovery, but nothing required for correct invocation is missing.

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

Parameters3/5

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

Schema coverage is 100% and the single 'project' parameter is fully documented as accepting an id or full path with automatic URL-encoding. The description's 'id or path' phrasing merely restates the schema, so baseline 3 is appropriate.

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?

States a specific verb and resource ('Get a project by id or path') and adds the practical intent of resolving a name to a path. It does not explicitly name the adjacent sibling (gitlab_project_search), so differentiation is implied rather than stated.

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

Usage Guidelines4/5

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

Gives clear positive usage context ('turn a project name into the path the other tools take, and to read default_branch'), which tells the agent when this tool is the right entry point. No explicit when-not or named alternative is provided, keeping it short of a 5.

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