Skip to main content
Glama
ttpears

GitLab MCP Server

by ttpears

Get Issue Context

get_issue_context
Read-onlyIdempotent

Retrieve complete issue context including body, notes, related merge requests, and linked issues in a single call.

Instructions

Bundle issue body, all notes (paginated up to maxNotes), related merge requests (mentioning), closing merge requests, linked issues (relates_to/blocks/is_blocked_by) into a single call. Use this instead of fanning out across get_issues + get_notes + search_merge_requests when investigating an issue.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectPathYesFull project path (e.g. "my-group/my-project")
iidYesIssue IID (the number shown in the GitLab UI)
maxNotesNoCap on notes fetched. Default 100.
includeSystemNotesNoInclude system-generated notes (label changes, assignment events). Default false.
userCredentialsNoYour GitLab credentials (optional — falls back to the configured env token if not provided)
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true. The description adds behavioral context: notes are paginated up to maxNotes, related merge requests are those mentioning or closing the issue, and linked issues of types relates_to/blocks/is_blocked_by are included. This adds value beyond annotations, though the exact number of API calls or performance implications are not disclosed.

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?

Two sentences: first explains what the tool does, second provides usage guidance. Front-loaded with the bundled resources. No wasted words.

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

Completeness4/5

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

The description explains what the tool returns (issue body, notes, related MRs, linked issues) but does not specify the exact structure of the response (e.g., whether these are separate keys or combined). Given no output schema, a bit more detail on the return format would improve completeness, but the bundling concept is clear.

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 baseline is 3. The description reinforces that maxNotes is a cap but does not add new semantics beyond the schema descriptions. No parameters are left undocumented, but the description does not elaborate on usage of each parameter.

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 it bundles issue body, notes, related merge requests, and linked issues into a single call. It specifies the verb 'bundle' and the resource 'issue context', and distinguishes from siblings by explicitly naming alternative tools (get_issues, get_notes, search_merge_requests).

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 explicitly says 'Use this instead of fanning out across get_issues + get_notes + search_merge_requests when investigating an issue.' This provides clear when-to-use guidance and alternative 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/ttpears/gitlab-mcp'

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