Skip to main content
Glama

Get approval state merge requests

gitlab_get_approval_state_merge_requests
Read-onlyIdempotent

Retrieve the approval state of a GitLab merge request using project ID and merge request IID. Check current approvals and required approval status.

Instructions

Get the approval state of merge requests for a specific project.

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 state 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.7/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and openWorld, so the safety profile is covered. The description adds error behavior (MissingParameterError, ParameterError), which is genuinely useful, but says nothing about return shape beyond a vague 'raw approval state data' wrapper.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The body is generic Sphinx-style docstring boilerplate ('Args: **kwargs: Additional parameters for the request') that misdescribes the actual schema and wastes the front-loaded sentence slot. The requirement for project_id/merge_request_iid is buried in a Raises section rather than stated up front.

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 13 parameters, 0% schema coverage, no output schema, and only two parameters hinted at in prose, the description is far too thin for the agent to invoke this correctly. The one genuinely helpful fact — that project_id and merge_request_iid are effectively required despite not being marked so in the schema — is present but insufficient.

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 0% across 13 parameters, so the description carries the full burden — yet it mentions only project_id and merge_request_iid, and only as examples inside a '**kwargs' catch-all. The other eleven parameters (group_id, user_ids, rule_type, report_type, approval_rule_id, approvals_required, protected_branch_ids, applies_to_all_protected_branches, data, name, group_ids) are undocumented anywhere.

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: 'Get the approval state of merge requests for a specific project.' An agent can grasp the operation, but the plural 'merge requests' is ambiguous given the tool operates on a single merge_request_iid, and no sibling (e.g. gitlab_merge_request_level_approvals, gitlab_approve_merge_request) is distinguished.

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 when-to-use, when-not-to-use, or alternative routing guidance is given. The proximity of gitlab_merge_request_level_approvals and gitlab_unapprove_merge_request makes the absence of any disambiguation a real gap.

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