Skip to main content
Glama
ttpears

GitLab MCP Server

by ttpears

Search Labels

search_labels
Read-onlyIdempotent

Find and filter labels in GitLab projects or groups using text search, with options for pagination and credential management.

Instructions

Search for labels in a project or group, with optional text filtering

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fullPathYesFull path of the project or group (e.g., "group/project-name" or "group")
isProjectYesWhether the path is a project (true) or group (false)
searchNoOptional search term to filter labels
firstNoNumber of labels to retrieve
afterNoCursor for pagination
userCredentialsNoYour GitLab credentials (optional - uses shared token if not provided)
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the agent knows this is a safe, repeatable read operation. The description adds the 'optional text filtering' context, which is useful but doesn't provide rich behavioral details like pagination behavior, rate limits, or authentication requirements beyond what the schema already covers.

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?

The description is a single, efficient sentence that states the core purpose without unnecessary words. It's appropriately sized for a search tool and front-loads the essential information. Every word earns its place.

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

Completeness3/5

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

Given the tool's moderate complexity (6 parameters, search functionality) and excellent annotation coverage, the description is minimally adequate. However, without an output schema, the description doesn't explain what the search returns (e.g., label objects with IDs, names, colors) or how results are structured, leaving a significant gap for the agent to understand the tool's full behavior.

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?

With 100% schema description coverage, the input schema already documents all 6 parameters thoroughly. The description mentions 'optional text filtering' which corresponds to the 'search' parameter, but adds no additional semantic context beyond what the schema provides. The baseline score of 3 is appropriate when the schema does the heavy lifting.

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 clearly states the action ('search for labels') and resource ('in a project or group'), with the optional text filtering adding specificity. However, it doesn't explicitly differentiate this tool from other search tools like search_issues or search_merge_requests, which prevents a perfect score.

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?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention sibling tools like search_issues (which might also involve labels) or explain the relationship between searching labels versus other search operations. There's no context about prerequisites or when this tool is appropriate.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ttpears/gitlab-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server