Skip to main content
Glama

Merge request level approvals

gitlab_merge_request_level_approvals
Read-onlyIdempotent

Get approval status for a specific GitLab merge request by project ID and merge request IID to verify reviewers and required approvals.

Instructions

Get approvals for a specific merge request.

Args: **kwargs: Additional parameters for the request (e.g., project_id, merge_request_iid).

Returns: Response: A wrapper containing the original response and the raw approval data.

Raises: MissingParameterError: If the project_id or merge_request_iid is missing. ParameterError: If invalid parameters are provided.

Input Schema

NameRequiredDescriptionDefault
dataNo
nameNo
group_idNo
user_idsNo
group_idsNo
rule_typeNo
project_idNo
report_typeNo
approval_rule_idNo
merge_request_iidNo
approvals_requiredNo
protected_branch_idsNo
applies_to_all_protected_branchesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv27.3.13

TDQS

C2.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint, so the safety profile is covered. The description usefully adds error semantics (MissingParameterError, ParameterError) and notes the return value wraps the original response plus raw approval data, but it never explains the rule-oriented parameters or how they interact with a read-only operation.

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 docstring is short and front-loads the one-line purpose, but the Args/Returns/Raises scaffolding adds boilerplate, and the "additional parameters" line is filler that conveys nothing actionable.

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 13-parameter tool with zero schema documentation and no output schema, the description should carry the load but instead documents two parameters and a vague wrapper return. An agent would be guessing about most inputs and about whether this reads approvals or manipulates approval rules.

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 description coverage is 0% across 13 parameters, and the description only names project_id and merge_request_iid under a vaguer "**kwargs" heading, leaving eleven parameters (rule_type, approval_rule_id, user_ids, group_ids, protected_branch_ids, etc.) entirely unexplained. It also fails to note that the schema declares no required parameters, contradicting the described missing-parameter errors.

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

Purpose3/5

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

It states a specific verb and resource ("Get approvals for a specific merge request"), but the schema exposes rule-configuration fields such as approvals_required, rule_type, and applies_to_all_protected_branches, which suggest an approval-rule resource rather than plain approval status. Sibling tools gitlab_get_merge_request_level_rules and gitlab_get_approval_state_merge_requests are never referenced, so an agent cannot cleanly separate this tool's scope.

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 gives no when-to-use guidance, no alternatives, and no prerequisites beyond which identifiers trigger an error. The agent must guess how this differs from the many nearby approval-related siblings.

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