Skip to main content
Glama

search_repositories

Read-only

Search GitLab projects by keyword to find matching repositories when IDs are unknown. Returns paginated results for browsing discovered content.

Instructions

Search for GitLab projects. Use this to discover matching content; choose a typed get or list tool when the target identifier is already known. It is read-only and does not mutate GitLab data; missing resources, invalid identifiers, insufficient permission, and rate limits are returned as errors. When project_id or group_id is accepted, provide the numeric ID or complete URL-encoded path described by the schema; use required identifiers and pagination fields exactly as documented.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoPage number for pagination (default: 1)
queryNoSearch query (alias for 'search')
searchNoSearch query
per_pageNoNumber of items per page (max: 100, default: 20)

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Addedv2.1.18
  2. Removedv2.1.14
  3. Addedv2.1.11
  4. Removedv2.1.10
  5. Changed3 schema fields changedv2.1.9
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / query
      Added value: +{
      +  "description": "Search query (alias for 'search')",
      +  "type": "string"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "search"
      -]
  6. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

Annotations include readOnlyHint=true and openWorldHint=true, so the safety profile is already known. The description adds that it is read-only and does not mutate GitLab data, reinforcing but not contradicting annotations. It also discloses that missing resources, invalid identifiers, insufficient permission, and rate limits are returned as errors, which is valuable beyond annotations. It doesn't describe the response format or pagination details, but the output schema is absent. Given the annotations cover read-only nature, the description adds meaningful error-handling context, warranting a 4.

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

Conciseness4/5

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

The description is moderately concise with three sentences. The first sentence clearly states the purpose, the second adds usage and safety context, and the third covers parameter usage. It is informative without excessive length. Slightly could be trimmed, but it is front-loaded with the core purpose. No redundant wording, though the error disclosure could be considered a bit verbose.

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?

Given the tool has no output schema and only four simple parameters all described in the schema, the description covers the purpose, usage distinction, safety profile, and error behavior. It doesn't cover the structure of the search results, but since there is no output schema and the tool is a discovery search, the description is reasonably complete. The missing explicit exclusions for alternatives is a minor gap, but overall adequate.

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

Parameters4/5

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

Schema description coverage is 100%, so the schema documents all parameters (page, query, search, per_page). The description adds value by explaining the relationship: 'query' is an alias for 'search', and it clarifies that identifiers should be numeric IDs or URL-encoded paths when project_id or group_id are accepted (though those are not parameters in the schema). It also reminds to use required identifiers and pagination fields exactly as documented. This goes beyond the schema's terse descriptions, especially the alias clarification.

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 tool searches for GitLab projects with a specific verb (Search) and resource (GitLab projects). It distinguishes itself from siblings by explicitly mentioning 'typed get or list tool when the target identifier is already known', which contrasts with get_project, list_projects, and other typed tools. However, it doesn't name a specific sibling tool that competes for the same search role (such as a hypothetical search_issues), so it doesn't fully differentiate from all siblings.

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?

Provides clear guidance: use this for discovery when the target identifier is unknown, and choose a typed get or list tool when the identifier is already known. It also instructs on using project_id/group_id with numeric IDs or URL-encoded paths. However, it doesn't explicitly mention when not to use this tool in favor of specific alternatives like list_projects or get_project, nor does it address pagination when to use page/per_page beyond noting they exist.

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/zereight/gitlab-mcp'

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