Skip to main content
Glama

List GitLab repositories

list_gitlab_repositories
Read-only

List the GitLab repositories a connection’s user is a Developer or more of. With search, GitLab’s 100 closest matches on name, path or group path — search rather than list a large account. Pass a repository’s id (or path) as repository to a GitLab preview_workflow_setup, or as repositoryId to list_repository_branches.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "connectionId": "<connectionId>"
    },
    "name": "list_gitlab_repositories"
  }
}

Input Schema

NameRequiredDescriptionDefault
searchNo
connectionIdYesFrom list_gitlab_connections

Output Schema

NameRequiredDescriptionDefault
repositoriesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover safety (readOnlyHint, destructiveHint=false, openWorldHint), so the bar is lower, and the description still adds substantive behavior: results are permission-filtered to Developer-and-above, and `search` returns GitLab's '100 closest matches' rather than a complete list. The result cap is exactly the kind of context annotations cannot express.

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 dense sentences, zero filler. The permission scope leads, the search caveat follows, and the downstream handoff closes — each sentence carries distinct, load-bearing information.

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?

An output schema exists, so return values need not be explained, and the description covers scope, the search escape hatch, and downstream usage. What remains ambiguous is whether the 100 matches is a hard cap with no pagination and whether ordering is relevance-based — minor for a read-only list tool but worth noting.

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 coverage is 50% and the undocumented parameter is precisely the one the description explains: `search` matches on name, path, or group path with a 100-result ceiling. `connectionId` is documented in the schema as coming from list_gitlab_connections, so nothing critical is missing, though match-ranking semantics are left unstated.

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

Purpose5/5

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

States a specific verb and resource (list GitLab repositories) and qualifies the scope precisely: only repositories where 'a connection's user is a Developer or more of.' That permission qualifier distinguishes it from a generic listing and is verifiable behavior, not a restatement of the name.

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?

Explicitly advises 'search rather than list a large account' when the account is big, which is real when-to-use guidance tied to the `search` parameter. It also routes the agent onward by naming `preview_workflow_setup` and `list_repository_branches` as consumers of the returned id/path. It stops short of stating when not to call it (e.g., connection not yet established), so it is not quite a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.