Skip to main content
Glama

Gitlab List Mrs

gitlab_list_mrs
Read-onlyIdempotent

List merge requests in a GitLab project by project ID. Returns MR ID, title, state, author, source/target branches, and URL. Filter by state and author.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "_apiKey": "your-gitlab-api-key",
      "project_id": "123"
    },
    "name": "gitlab_list_mrs"
  }
}

Input Schema

NameRequiredDescriptionDefault
stateNoFilter by state: "opened", "closed", "merged", or "all" (default: "opened")
_apiKeyYesGitLab personal access token
per_pageNoNumber of merge requests to return (default 20, max 100)
project_idYesProject ID (numeric) or full path "namespace/project" (e.g. "gitlab-org/gitlab"), pass the plain path, do not URL-encode it.

Output Schema

NameRequiredDescriptionDefault
merge_requestsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / project_id / description
      Previous value: -"Project ID (numeric) or full path \"namespace/project\" (e.g. \"gitlab-org/gitlab\") — pass the plain path, do not URL-encode it."New value: +"Project ID (numeric) or full path \"namespace/project\" (e.g. \"gitlab-org/gitlab\"), pass the plain path, do not URL-encode it."
  2. Changed1 schema field changed
    • changedInput schema / properties / project_id / description
      Previous value: -"Project ID or URL-encoded path"New value: +"Project ID (numeric) or full path \"namespace/project\" (e.g. \"gitlab-org/gitlab\") — pass the plain path, do not URL-encode it."
  3. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "merge_requests": {
      +      "items": {
      +        "properties": {
      +          "author": {
      +            "description": "Author username",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "created_at": {
      +            "description": "Creation timestamp",
      +            "type": "string"
      +          },
      +          "iid": {
      +            "description": "Merge request internal ID",
      +            "type": "number"
      +          },
      +          "merge_status": {
      +            "description": "Merge status",
      +            "type": "string"
      +          },
      +          "source_branch": {
      +            "description": "Source branch name",
      +            "type": "string"
      +          },
      +          "state": {
      +            "description": "Merge request state (opened/closed/merged)",
      +            "type": "string"
      +          },
      +          "target_branch": {
      +            "description": "Target branch name",
      +            "type": "string"
      +          },
      +          "title": {
      +            "description": "Merge request title",
      +            "type": "string"
      +          },
      +          "updated_at": {
      +            "description": "Last update timestamp",
      +            "type": "string"
      +          },
      +          "url": {
      +            "description": "Merge request web URL",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "iid",
      +          "title",
      +          "state",
      +          "author",
      +          "source_branch",
      +          "target_branch",
      +          "merge_status",
      +          "url",
      +          "created_at",
      +          "updated_at"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "merge_requests"
      +  ],
      +  "type": "object"
      +}
  4. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "_apiKey": "your-gitlab-api-key",
      +    "project_id": "123"
      +  },
      +  {
      +    "_apiKey": "your-gitlab-api-key",
      +    "per_page": 50,
      +    "project_id": "123",
      +    "state": "merged"
      +  }
      +]
  5. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and openWorld, so the safety profile is largely covered. The description adds that results are scoped to a single project and enumerates returned fields, but that enumeration overlaps the output schema and it says nothing about pagination or result-limit behavior beyond what the schema states.

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?

Two short, front-loaded sentences: the action and scope come first, then the return fields and filters. Nothing is padded, though the return-field list is partly redundant given the output schema.

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 simple read-only list tool with full schema coverage, rich annotations and an output schema, the description covers the essentials. The misleading author-filter claim and the absence of any guidance on defaults or result limits leave a clear gap.

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

Parameters2/5

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

Schema coverage is 100%, so the baseline would be 3, but the description advertises filtering "by state and author" while no author parameter exists in the schema. That introduces a filter the agent cannot actually apply, which is a net negative rather than added meaning.

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 gives a specific verb and resource ("List merge requests in a GitLab project") and names the scoping key (project ID), so an agent knows exactly what the tool retrieves. It does not distinguish itself from closely related siblings such as gitlab_list_issues, 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 Guidelines3/5

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

Usage is only implied by the phrase "Filter by state and author" and by the project-ID scoping; there is no explicit when-to-use or when-to-prefer-another-tool statement. An agent can infer this is the read path for merged/open MR listings, but nothing routes it away from similar list tools.

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.