Skip to main content
Glama

GitLab MCP Server

Подключите ваш AI-ассистент к GitLab. Задавайте вопросы прямо в чате: "Покажи открытые merge request'ы", "Покажи ревью для MR #123", "Найди merge request'ы для ветки feature/auth".

🚀 Быстрая установка

Требования

Проект использует uv для управления Python-пакетами.

Установка uv:

# macOS и Linux
curl -LsSf https://astral.sh/uv/install.sh | sh

# Windows
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"

# Или через pip
pip install uv

Установка

  1. Установите сервер:

    git clone https://github.com/FitoDomik/gitlab-mcp-server.git
    cd gitlab-mcp-server
    uv venv
    source .venv/bin/activate  # На Windows: .venv\Scripts\activate
    uv pip install -e .
    chmod +x run-mcp.sh
  2. Получите токен GitLab:

    • Перейдите в GitLab → Settings → Access Tokens

    • Создайте токен с правами read_api

    • Скопируйте токен

  3. Настройте проект:

    Создайте файл gitlab-mcp.env в директории вашего проекта:

    GITLAB_PROJECT_ID=12345
    GITLAB_ACCESS_TOKEN=glpat-xxxxxxxxxxxxxxxxxxxx
    GITLAB_URL=https://gitlab.com
  4. Подключите к Cursor:

    Создайте .cursor/mcp.json в вашем проекте:

    {
      "mcpServers": {
        "gitlab-mcp": {
          "command": "/путь/к/gitlab-mcp-server/run-mcp.sh",
          "cwd": "/путь/к/вашему-проекту"
        }
      }
    }
  5. Перезапустите Cursor и начните задавать вопросы о GitLab!

Related MCP server: GitLab MCP Server

💬 Что можно делать

После подключения попробуйте эти команды в чате:

  • "Покажи открытые merge request'ы"

  • "Покажи детали merge request #456"

  • "Покажи ревью и обсуждения для MR #123"

  • "Покажи сводку тестов для MR #456"

  • "Какие тесты упали в merge request #789?"

  • "Покажи pipeline для MR #456"

  • "Покажи логи упавшего job для merge request #789"

  • "Покажи обсуждения коммитов для MR #456"

  • "Найди merge request'ы для ветки feature/auth-improvements"

  • "Ответь на обсуждение abc123 в MR #456: 'Спасибо за фидбек!'"

📋 Основные возможности

Merge Request'ы

  • Просмотр списка MR с фильтрацией по статусу и ветке

  • Детальная информация о конкретном MR

  • Поиск MR по имени ветки

Ревью и обсуждения

  • Просмотр всех ревью и обсуждений в MR

  • Ответы на существующие обсуждения

  • Создание новых комментариев

  • Разрешение обсуждений

Тесты и Pipeline

  • Сводка тестов — быстрый обзор результатов (количество пройденных/упавших тестов)

  • Детальный отчет — полная информация о тестах с ошибками и стектрейсами

  • Pipeline — обзор всех job'ов и их статусов

  • Логи job'ов — просмотр вывода конкретного job'а

Коммиты

  • Просмотр всех обсуждений на коммитах в MR

  • История комментариев по каждому коммиту

⚙️ Конфигурация

Настройка проекта (рекомендуется)

Каждый проект имеет свой файл gitlab-mcp.env с настройками GitLab. Не добавляйте токены в систему контроля версий.

Глобальная настройка

Можно задать переменные окружения глобально:

export GITLAB_PROJECT_ID=12345
export GITLAB_ACCESS_TOKEN=glpat-xxxxxxxxxxxxxxxxxxxx
export GITLAB_URL=https://gitlab.com

Как найти Project ID

  • Перейдите в GitLab проект → Settings → General → Project ID

  • Или посмотрите в URL: https://gitlab.com/username/project (используйте числовой ID)

🔧 Решение проблем

Ошибка аутентификации: Проверьте, что токен имеет права read_api и не истёк.

Проект не найден: Убедитесь, что Project ID указан правильно (это число, а не название проекта).

Проблемы с подключением: Проверьте, что URL GitLab доступен и указан верно.

Скрипт не найден: Убедитесь, что путь в конфигурации MCP указывает на правильное расположение сервера и скрипт исполняемый.

📚 Справочник инструментов

Инструмент

Описание

Параметры

list_merge_requests

Список merge request'ов

state, target_branch, limit

get_merge_request_details

Детали MR

merge_request_iid

get_pipeline_test_summary

Сводка тестов (быстрый обзор)

merge_request_iid

get_merge_request_test_report

Детальный отчет о тестах

merge_request_iid

get_merge_request_pipeline

Pipeline со всеми job'ами

merge_request_iid

get_job_log

Логи конкретного job'а

job_id

get_merge_request_reviews

Ревью и обсуждения

merge_request_iid

get_commit_discussions

Обсуждения на коммитах

merge_request_iid

get_branch_merge_requests

Поиск MR по ветке

branch_name

reply_to_review_comment

Ответ на обсуждение

merge_request_iid, discussion_id, body

Available Tools

12 tools
create_review_commentC

Create a new discussion thread in a merge request review

ParametersJSON Schema
NameRequiredDescriptionDefault
merge_request_iidYesInternal ID of the merge request
bodyYesContent of the new discussion comment

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations provided, the description carries full burden but only states the action without behavioral details. It doesn't disclose whether this requires specific permissions, if it's idempotent, what happens on failure, or any rate limits, which is inadequate for a mutation tool.

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 directly states the tool's purpose without unnecessary words. It's appropriately sized and front-loaded, making it easy to parse quickly.

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?

For a mutation tool with no annotations and no output schema, the description is insufficient. It lacks details on permissions, error handling, return values, and differentiation from siblings, leaving significant gaps in understanding how to use it effectively.

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 description coverage is 100%, so the schema fully documents both parameters. The description adds no additional meaning beyond implying the 'body' is for discussion content, which is already clear from the schema. This meets the baseline for high coverage.

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 ('Create a new discussion thread') and resource ('in a merge request review'), making the purpose immediately understandable. However, it doesn't differentiate from sibling tools like 'reply_to_review_comment' or 'resolve_review_discussion', 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 when to choose this over 'reply_to_review_comment' for responding to existing discussions or 'get_merge_request_reviews' for viewing reviews, leaving the agent without context for selection.

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

get_branch_merge_requestsB

Get all merge requests for a specific branch

ParametersJSON Schema
NameRequiredDescriptionDefault
branch_nameYesName of the branch

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. While 'Get all merge requests' implies a read-only operation, it doesn't specify whether this requires authentication, what format the results are in (e.g., list, paginated), or any rate limits or constraints. For a tool with zero annotation coverage, this leaves significant gaps in understanding its behavior.

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, clear sentence that efficiently conveys the core functionality without unnecessary words. It's front-loaded with the main action and resource, making it easy to parse quickly. Every word earns its place, with no redundancy or fluff.

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 simplicity (one parameter, no annotations, no output schema), the description is minimally adequate. It states what the tool does but lacks context on usage, behavior, or output format. For a read operation with no output schema, more detail on return values would be helpful, but the description doesn't provide it, leaving room for improvement.

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 description coverage is 100%, with the single parameter 'branch_name' clearly documented in the schema as 'Name of the branch'. The description adds no additional semantic context beyond what the schema provides, such as examples or constraints on branch naming. This meets the baseline for high schema coverage but doesn't enhance parameter understanding.

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 ('Get all merge requests') and the target resource ('for a specific branch'), making the purpose immediately understandable. However, it doesn't differentiate from sibling tools like 'list_merge_requests' or 'get_merge_request_details', which could cause confusion about when to use this specific tool versus alternatives.

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 like 'list_merge_requests' or 'get_merge_request_details'. It states what the tool does but offers no context about appropriate use cases, prerequisites, or exclusions, leaving the agent to guess based on tool names alone.

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

get_commit_discussionsC

Get discussions and comments on commits within a specific merge request

ParametersJSON Schema
NameRequiredDescriptionDefault
merge_request_iidYesInternal ID of the merge request

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries full burden. It states a read operation ('Get') but doesn't disclose behavioral traits like pagination, rate limits, authentication needs, or response format. For a tool with no annotation coverage, this leaves significant gaps in understanding how it behaves.

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 front-loads the core purpose without unnecessary details. Every word contributes to understanding the tool's function, making it appropriately sized and well-structured.

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?

Given no annotations, no output schema, and a read operation with one parameter, the description is incomplete. It lacks details on return values, error handling, or operational constraints, which are crucial for an agent to use the tool effectively in context.

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 description coverage is 100%, with the parameter 'merge_request_iid' fully documented in the schema. The description adds no additional meaning beyond implying the parameter's role in scoping discussions, matching the baseline for high schema coverage.

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 verb 'Get' and the resource 'discussions and comments on commits', specifying the scope 'within a specific merge request'. It distinguishes from siblings like 'get_merge_request_details' or 'get_merge_request_reviews' by focusing on commit-level discussions, but doesn't explicitly differentiate them.

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?

No explicit guidance on when to use this tool versus alternatives like 'get_merge_request_reviews' or 'create_review_comment'. The description implies usage for commit discussions within merge requests, but lacks context on prerequisites, exclusions, or comparative use cases.

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

get_job_logA

Get the trace/log output for a specific pipeline job. Perfect for debugging failed tests and understanding CI/CD failures.

ParametersJSON Schema
NameRequiredDescriptionDefault
job_idYesID of the pipeline job (obtained from get_merge_request_pipeline)

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions the tool's purpose (retrieving logs for debugging) which implies it's a read-only operation, but doesn't explicitly state whether it requires authentication, has rate limits, or what format the output takes. The description adds some context but leaves important behavioral aspects unspecified.

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 perfectly concise with just two sentences that each earn their place. The first sentence states the core functionality, and the second provides valuable context about when to use it. There's no wasted language or unnecessary elaboration.

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?

For a single-parameter read operation with no output schema, the description provides adequate but minimal context. It explains what the tool does and when to use it, but doesn't address potential limitations, error conditions, or output format details that would be helpful for an agent to properly invoke and interpret results from this tool.

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?

The schema description coverage is 100%, with the single parameter 'job_id' well-documented in the schema itself. The description doesn't add any additional parameter information beyond what's already in the schema, so it meets the baseline expectation but doesn't provide extra value regarding parameter usage or constraints.

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?

The description clearly states the specific action ('Get the trace/log output') and resource ('for a specific pipeline job'), distinguishing it from siblings like get_merge_request_test_report or get_pipeline_test_summary. It provides a concrete use case ('debugging failed tests and understanding CI/CD failures') that makes the purpose immediately understandable.

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?

The description provides clear context about when to use this tool ('Perfect for debugging failed tests and understanding CI/CD failures'), which helps the agent understand the appropriate scenarios. However, it doesn't explicitly mention when NOT to use it or name specific alternatives among the sibling tools, which would be needed for a perfect score.

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

get_merge_request_detailsC

Get detailed information about a specific merge request

ParametersJSON Schema
NameRequiredDescriptionDefault
merge_request_iidYesInternal ID of the merge request

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It states it 'gets' information, implying a read-only operation, but doesn't clarify if it requires authentication, has rate limits, returns paginated data, or what format the output takes. For a tool with zero annotation coverage, this is a significant gap in transparency.

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 directly states the tool's purpose without unnecessary words. It's front-loaded with the core action ('Get detailed information'), making it easy to parse. Every part of the sentence earns its place by conveying essential information.

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?

Given the complexity (a read operation with no output schema) and lack of annotations, the description is incomplete. It doesn't explain what 'detailed information' entails, potential errors (e.g., invalid ID), or behavioral traits like authentication needs. For a tool with no structured output or annotations, more context is needed to guide the agent effectively.

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?

The input schema has 100% description coverage, with the parameter 'merge_request_iid' clearly documented as 'Internal ID of the merge request'. The description adds no additional meaning beyond this, as it doesn't explain the parameter's role or constraints. According to the rules, with high schema coverage, the baseline is 3 even without param info in the description.

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 verb ('Get') and resource ('detailed information about a specific merge request'), making the purpose unambiguous. It distinguishes from siblings like 'list_merge_requests' (which lists multiple) and 'get_merge_request_reviews' (which focuses on reviews). However, it doesn't specify what 'detailed information' includes, leaving some ambiguity compared to a perfect 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?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., needing a merge request ID), exclusions, or comparisons to siblings like 'get_merge_request_reviews' or 'list_merge_requests'. This lack of context leaves the agent to infer usage based on the name alone.

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

get_merge_request_pipelineA

Get the last pipeline data for a specific merge request, including all jobs and their statuses. Returns job IDs that can be used with get_job_log to fetch detailed output.

ParametersJSON Schema
NameRequiredDescriptionDefault
merge_request_iidYesInternal ID of the merge request

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden. It discloses that the tool returns pipeline data with job statuses and IDs, which is useful behavioral context. However, it doesn't mention potential limitations like error handling, rate limits, authentication needs, or whether it's a read-only operation, leaving gaps for a tool with no annotation coverage.

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 efficiently structured in two sentences: the first states the purpose and scope, the second explains the utility of returned data. Every sentence adds value without redundancy, making it appropriately sized and front-loaded.

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 no annotations and no output schema, the description partially compensates by explaining the return data includes jobs and statuses with IDs usable for get_job_log. However, for a tool that fetches pipeline data, it lacks details on response format, error cases, or data freshness, leaving room for improvement in completeness.

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 description coverage is 100%, so the schema already fully documents the merge_request_iid parameter. The description doesn't add any parameter-specific details beyond what the schema provides, such as format examples or constraints. Baseline 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.

Purpose5/5

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

The description clearly states the specific action ('Get the last pipeline data'), target resource ('for a specific merge request'), and scope ('including all jobs and their statuses'). It distinguishes from siblings like get_merge_request_details or get_pipeline_test_summary by focusing on pipeline data rather than general MR info or test summaries.

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?

The description provides clear context by specifying it retrieves 'the last pipeline data' and mentions job IDs can be used with get_job_log, implicitly suggesting when to use this tool versus get_job_log. However, it doesn't explicitly state when not to use it or compare with alternatives like get_merge_request_test_report or get_pipeline_test_summary.

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

get_merge_request_reviewsC

Get reviews and discussions for a specific merge request

ParametersJSON Schema
NameRequiredDescriptionDefault
merge_request_iidYesInternal ID of the merge request

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It states the action ('Get') but does not describe traits like read-only nature, potential rate limits, authentication needs, response format, or pagination. This leaves significant gaps for an agent to understand how the tool behaves beyond its basic function.

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, direct sentence with no wasted words, front-loading the core action and resource. It efficiently communicates the essential purpose without unnecessary elaboration, making it easy for an agent to parse quickly.

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?

Given the lack of annotations and output schema, the description is incomplete for a tool that retrieves data. It does not explain what 'reviews and discussions' entail, the return format, or any behavioral constraints. For a read operation with no structured output documentation, more context is needed to guide effective use.

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?

The input schema has 100% description coverage, with the parameter 'merge_request_iid' clearly documented as the 'Internal ID of the merge request'. The description adds no additional semantic context beyond this, such as examples or usage notes, so it meets the baseline of 3 where 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 verb ('Get') and resource ('reviews and discussions for a specific merge request'), making the purpose unambiguous. However, it does not explicitly differentiate from sibling tools like 'get_merge_request_details' or 'get_commit_discussions', which might also retrieve related information, preventing a score of 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?

The description provides no guidance on when to use this tool versus alternatives, such as 'get_merge_request_details' for general info or 'get_commit_discussions' for commit-specific discussions. It lacks any context about prerequisites, exclusions, or recommended scenarios, relying solely on the implied need for merge request reviews.

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

get_merge_request_test_reportA

Get structured test report for a merge request with specific test failures, error messages, and stack traces. Shows the same test data visible on the GitLab MR page. Best for debugging test failures.

ParametersJSON Schema
NameRequiredDescriptionDefault
merge_request_iidYesInternal ID of the merge request

TDQS

A4.1/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden. It discloses that the tool retrieves test data (implying read-only behavior) and specifies the content includes failures, errors, and stack traces. However, it lacks details on permissions, rate limits, or response format, which are important for a tool with no output schema.

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 front-loaded with the core purpose, followed by specific details and usage guidance in just two sentences. Every sentence adds value: the first defines the tool's function and scope, and the second provides clear usage context without redundancy.

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 has no annotations and no output schema, the description is moderately complete. It covers purpose and usage well but lacks details on behavioral aspects like authentication or response structure, which are important for debugging tools. It compensates somewhat with specific content details but leaves gaps.

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 description coverage is 100%, so the schema already documents the single parameter (merge_request_iid) with its type and description. The description does not add any additional meaning or context about the parameter beyond what the schema provides, meeting the baseline for high coverage.

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?

The description clearly states the specific action ('Get structured test report') and resource ('for a merge request'), distinguishing it from siblings like get_merge_request_details or get_pipeline_test_summary by focusing on test failures, error messages, and stack traces. It explicitly mentions the data is 'the same test data visible on the GitLab MR page,' which adds specificity.

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

Usage Guidelines5/5

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

The description provides explicit guidance on when to use this tool: 'Best for debugging test failures.' This clearly indicates its primary use case and distinguishes it from alternatives like get_pipeline_test_summary (which might show summaries) or get_merge_request_details (which covers general info).

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

get_pipeline_test_summaryA

Get test summary for a merge request - a lightweight overview showing pass/fail counts per test suite. Faster than full test report. Great for quick status checks.

ParametersJSON Schema
NameRequiredDescriptionDefault
merge_request_iidYesInternal ID of the merge request

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden and does well by disclosing key behavioral traits: it's a read operation ('Get'), provides a 'lightweight overview' with 'pass/fail counts per test suite', and is performance-optimized ('Faster than full test report'). It doesn't mention rate limits or authentication needs, but covers core functionality adequately.

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 perfectly concise and front-loaded: three sentences that each earn their place by defining purpose, differentiating from alternatives, and providing usage context with zero wasted words.

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 simple read tool with one parameter and no output schema, the description is nearly complete: it explains what the tool returns ('pass/fail counts per test suite') and its performance characteristics. It could mention the return format more explicitly, but given the low complexity, it's sufficient.

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 description coverage is 100%, so the schema already fully documents the single parameter. The description adds no additional parameter semantics beyond what's in the schema, meeting the baseline for high coverage.

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?

The description clearly states the tool's purpose with specific verbs ('get test summary') and resource ('for a merge request'), distinguishing it from siblings like 'get_merge_request_test_report' by emphasizing it's a 'lightweight overview' and 'faster than full test report'.

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

Usage Guidelines5/5

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

It explicitly provides usage guidance by stating when to use this tool ('Great for quick status checks') and when to use an alternative ('Faster than full test report'), clearly differentiating it from 'get_merge_request_test_report' without needing to name it directly.

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

list_merge_requestsC

List merge requests for the GitLab project

ParametersJSON Schema
NameRequiredDescriptionDefault
stateNoFilter by merge request stateopened
target_branchNoFilter by target branch (optional)
limitNoMaximum number of results

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. While 'List' implies a read-only operation, the description doesn't mention pagination behavior, rate limits, authentication requirements, or what the return format looks like (e.g., list of MR objects with basic fields). For a listing tool with no annotation coverage, this is a significant gap.

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 gets straight to the point with zero wasted words. It's appropriately sized for a straightforward listing tool and front-loads the essential information.

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?

Given no annotations and no output schema, the description is incomplete for a tool with 3 parameters. It doesn't explain what the tool returns (e.g., array of MR objects with IDs/titles), pagination behavior, or error conditions. For a listing tool that likely returns structured data, more context is needed.

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 description coverage is 100%, so the schema already documents all three parameters with descriptions, defaults, and constraints. The description adds no additional parameter information beyond what's in the schema, maintaining the baseline score of 3.

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 ('List') and resource ('merge requests for the GitLab project'), making the purpose immediately understandable. However, it doesn't distinguish this tool from sibling tools like 'get_branch_merge_requests' or 'get_merge_request_details', which also deal with merge requests in different ways.

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. With siblings like 'get_branch_merge_requests' (which likely filters by branch) and 'get_merge_request_details' (which likely gets details for a specific MR), there's no indication of when this general listing tool is preferred over those more specific options.

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

reply_to_review_commentC

Reply to a specific discussion thread in a merge request review

ParametersJSON Schema
NameRequiredDescriptionDefault
merge_request_iidYesInternal ID of the merge request
discussion_idYesID of the discussion thread to reply to
bodyYesContent of the reply comment

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. While 'Reply to' implies a write operation, it doesn't specify permissions required, whether replies are editable/deletable, rate limits, or what happens on success/failure. This leaves significant gaps for a mutation tool.

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 directly states the tool's purpose without unnecessary words. It's appropriately sized and front-loaded, with every word earning its place.

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?

For a mutation tool with no annotations and no output schema, the description is insufficient. It doesn't address behavioral aspects like permissions, side effects, or response format, leaving the agent with incomplete understanding of how to properly invoke and interpret results.

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 description coverage is 100%, so the schema already documents all three parameters thoroughly. The description adds no additional parameter information beyond what's in the schema, maintaining the baseline score of 3 for adequate but not enhanced coverage.

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 ('Reply to') and target ('a specific discussion thread in a merge request review'), providing a specific verb+resource combination. However, it doesn't explicitly differentiate from sibling tools like 'create_review_comment' or 'resolve_review_discussion', which would be needed for 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 like 'create_review_comment' or 'resolve_review_discussion'. It states what the tool does but offers no context about appropriate use cases, prerequisites, or exclusions.

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

resolve_review_discussionB

Resolve or unresolve a discussion thread in a merge request review

ParametersJSON Schema
NameRequiredDescriptionDefault
merge_request_iidYesInternal ID of the merge request
discussion_idYesID of the discussion thread to resolve/unresolve
resolvedNoWhether to resolve (true) or unresolve (false) the discussion

TDQS

B3.4/5.0
Behavior2/5

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

With no annotations provided, the description carries full burden but only states the action without behavioral details. It doesn't disclose required permissions, whether resolution is reversible, effects on notifications, or error conditions (e.g., invalid IDs). For a mutation tool with zero annotation coverage, this is a significant gap in transparency.

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 front-loads the core purpose ('resolve or unresolve a discussion thread') with essential context ('in a merge request review'). There is zero wasted verbiage, and every word earns its place by specifying the action, target, and scope.

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?

For a mutation tool with no annotations and no output schema, the description is incomplete. It lacks information on permissions, side effects, error handling, and return values. While concise, it doesn't compensate for the missing structured data, leaving the agent with insufficient context for safe and effective use.

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 description coverage is 100%, so parameters are fully documented in the schema. The description adds no additional semantic context beyond implying the tool operates on discussions within merge requests, which is already clear from parameter names and schema descriptions. Baseline 3 is appropriate when schema does the heavy lifting.

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?

The description clearly states the specific action ('resolve or unresolve'), target resource ('discussion thread'), and context ('in a merge request review'). It distinguishes from siblings like 'create_review_comment' (adds new comments) and 'get_merge_request_reviews' (reads reviews) by focusing on resolution state changes.

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

Usage Guidelines3/5

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

The description implies usage when needing to toggle discussion resolution status, but provides no explicit guidance on when to use this vs. alternatives like 'reply_to_review_comment' for ongoing discussions or prerequisites like required permissions. It mentions the context ('merge request review') but lacks when-not scenarios or clear alternatives.

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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 12 tool updates
    • First observedcreate_review_comment
    • First observedget_branch_merge_requests
    • First observedget_commit_discussions
    • First observedget_job_log
    • First observedget_merge_request_details
    • First observedget_merge_request_pipeline
    • First observedget_merge_request_reviews
    • First observedget_merge_request_test_report
    • First observedget_pipeline_test_summary
    • First observedlist_merge_requests
    • First observedreply_to_review_comment
    • First observedresolve_review_discussion

TDQS

A3.7/5.0

Scored across 12 tools

Disambiguation5/5

Every tool has a clearly distinct purpose targeting specific resources and actions in GitLab's merge request and pipeline workflows. For example, get_merge_request_test_report provides detailed test failures, while get_pipeline_test_summary offers a lightweight overview, and tools like create_review_comment and reply_to_review_comment handle distinct aspects of review discussions. There is no overlap that would cause misselection.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern with snake_case throughout, such as get_merge_request_details, list_merge_requests, and create_review_comment. This predictability makes it easy for agents to understand and use the tools without confusion from mixed conventions.

Tool Count5/5

With 12 tools, the server is well-scoped for its purpose of managing GitLab merge requests, reviews, and pipelines. Each tool earns its place by covering specific aspects like discussions, test reports, and job logs, providing comprehensive functionality without being overwhelming or sparse.

Completeness5/5

The tool set offers complete coverage for the domain of GitLab merge request and pipeline management, including CRUD-like operations for reviews (create, reply, resolve), detailed data retrieval (details, discussions, test reports), and pipeline monitoring (jobs, logs, summaries). There are no obvious gaps that would cause agent failures, covering core workflows end-to-end.

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    Not graded
    maintenance
    Connects AI assistants to GitLab, enabling natural language queries to view merge requests, review discussions, test reports, pipeline status, and respond to comments directly from chat.
    -
  • F
    license
    Not graded
    quality
    Not graded
    maintenance
    Connects AI assistants to GitLab projects, enabling natural language queries for merge requests, code reviews, test reports, pipeline status, and discussions with support for commenting and resolving threads.
    -