Skip to main content
Glama

List Labels

gitlab_list_labels
Read-onlyIdempotent

Lists labels in a GitLab project, with optional search, pagination, and label counts, so you can inspect available labels and their usage.

Instructions

List project labels.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "gitlab_list_labels"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo
searchNo
per_pageNo
project_idNo
with_countsNo
include_ancestor_groupsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changedv1.7.0
    • removedInput schema / properties / include_ancestor_groups / anyOf
      Removed value: -[
      -  {
      -    "type": "boolean"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / include_ancestor_groups / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
    • removedInput schema / properties / page / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / page / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedInput schema / properties / per_page / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / per_page / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedInput schema / properties / search / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / search / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / with_counts / anyOf
      Removed value: -[
      -  {
      -    "type": "boolean"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / with_counts / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
  2. First observedv1.6.1

TDQS

C2.4/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=true, so the safety profile is fully covered by structured data. The description adds nothing beyond that: no pagination behavior, no result ordering, no statement about whether ancestor group labels are included by default despite an include_ancestor_groups parameter.

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 single sentence is front-loaded and free of padding, which is good. But its brevity reflects under-specification rather than efficient communication, given six undocumented optional parameters.

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?

With six optional parameters, no output schema, and zero schema descriptions, an agent cannot tell what filtering, pagination, or count behavior is available. Annotations cover safety only, leaving the description responsible for the remaining gaps it does not address.

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

Parameters1/5

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

Schema description coverage is 0% across 6 parameters, so the description carries the full burden and fails to compensate. Parameters like with_counts, include_ancestor_groups, search, page, and per_page are completely undocumented anywhere, and the description only loosely implies project_id via the word "project".

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 ("List project labels"), making the operation and its project scoping unambiguous. It does not, however, distinguish this from any sibling listing tool or clarify scope (project vs group labels), so it stops short of a 5.

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?

There is no when-to-use guidance, no prerequisites, and no mention of alternatives. An agent learns nothing about when this listing is preferable to other list operations or what conditions are required (e.g., project membership or label read permission).

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