Skip to main content
Glama

Get merge request approvals

get_merge_request_approvals
Read-onlyIdempotent

Retrieve approval rules, approvals received, approvals still required, and eligible approvers for a GitLab merge request.

Instructions

Get approval rules, approvals received, approvals still required, and eligible approvers.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectYesGitLab project ID or full path such as group/project.
merge_request_iidYesProject-scoped internal ID.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYesGitLab response normalized for model use.
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, providing the safety profile. The description adds context about what data will be returned (approval rules, received approvals, required approvals, eligible approvers) but discloses no further behavioral caveats such as permissions or edge cases.

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?

A single sentence that is efficiently worded and front-loaded with the verb 'Get'. Every word earns its place, with no redundant phrases.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple read-only tool with only two well-described parameters, complete annotations, an output schema, and a description that enumerates the key data components, no additional context is needed. The description is sufficient for an agent to select and invoke the tool correctly.

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 provides 100% coverage with descriptions for both parameters (project and merge_request_iid). The description adds no additional parameter-level semantics, so the baseline of 3 applies.

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 uses the specific verb 'Get' and clearly identifies the resource and scope: approval rules, approvals received, approvals still required, and eligible approvers for a merge request. This distinguishes it from sibling tools like approve_merge_request or list_project_approval_rules.

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?

No explicit when-to-use or alternative guidance is provided, but the purpose is self-evident from the name and description. It implies usage for checking MR approval status, but does not state when not to use it or mention project-level approval rule tools.

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

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