Skip to main content
Glama

get_merge_request_test_report

Retrieve structured test reports for GitLab merge requests to identify test failures, error messages, and stack traces for debugging.

Instructions

Get structured test report for a merge request with specific test failures, error messages, and stack traces. Shows the same test data visible on the GitLab MR page. Best for debugging test failures.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
merge_request_iidYesInternal ID of the merge request
Behavior3/5

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

With no annotations provided, the description carries the full burden. It discloses that the tool retrieves test data (implying read-only behavior) and specifies the content includes failures, errors, and stack traces. However, it lacks details on permissions, rate limits, or response format, which are important for a tool with no output schema.

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 front-loaded with the core purpose, followed by specific details and usage guidance in just two sentences. Every sentence adds value: the first defines the tool's function and scope, and the second provides clear usage context without redundancy.

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?

Given the tool has no annotations and no output schema, the description is moderately complete. It covers purpose and usage well but lacks details on behavioral aspects like authentication or response structure, which are important for debugging tools. It compensates somewhat with specific content details but leaves gaps.

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?

Schema description coverage is 100%, so the schema already documents the single parameter (merge_request_iid) with its type and description. The description does not add any additional meaning or context about the parameter beyond what the schema provides, meeting the baseline for high coverage.

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 specific action ('Get structured test report') and resource ('for a merge request'), distinguishing it from siblings like get_merge_request_details or get_pipeline_test_summary by focusing on test failures, error messages, and stack traces. It explicitly mentions the data is 'the same test data visible on the GitLab MR page,' which adds specificity.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

The description provides explicit guidance on when to use this tool: 'Best for debugging test failures.' This clearly indicates its primary use case and distinguishes it from alternatives like get_pipeline_test_summary (which might show summaries) or get_merge_request_details (which covers general info).

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/amirsina-mandegari/gitlab-mr-mcp'

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