Skip to main content
Glama

Get project approval rule

get_project_approval_rule
Read-onlyIdempotent

Retrieve a single project-level merge-request approval rule by specifying the project and approval rule ID.

Instructions

Get one project-level merge-request approval rule by ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectYesGitLab project ID or full path such as group/project.
approval_rule_idYes

Output Schema

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

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is well-covered. The description adds the 'project-level' scoping, clarifying the resource scope. It does not contradict annotations and provides no additional behavioral traits (like permissions or rate limits) but is consistent and sufficient given the annotations.

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, concise sentence that directly states the action and object. It is front-loaded and contains no superfluous wording. Every word contributes to clarity, achieving high informational density.

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 get-by-ID tool with only two required parameters and an output schema present, the description is complete. It specifies the resource type and the identification method. No additional behavioral or error-handling details are necessary given the annotations and schema.

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 already documents one parameter (project) with a description, and the other (approval_rule_id) has a self-explanatory name. The description adds minimal value beyond the schema—it simply restates that the rule is retrieved 'by ID' and mentions 'project-level' without elaborating on constraints or formats. With 50% schema coverage, the description does not significantly compensate, but the parameter semantics are clear from the names.

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: 'Get one project-level merge-request approval rule by ID.' The verb 'Get' combined with the specific resource (project-level MR approval rule) and the scoping by ID effectively distinguishes it from sibling tools like list_project_approval_rules (which lists all) and create/update/delete variants.

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 does not explicitly mention when to use this tool versus alternatives (e.g., list_project_approval_rules). However, the name and sibling tools make the context obvious: this is for fetching a single approval rule by ID. No explicit exclusions or alternative references are provided, leaving the usage guidance to inference.

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