Skip to main content
Glama

Get issue

gitlab_get_issue
Read-only

Fetch a GitLab issue's full details: description, labels, assignees, milestone, comments, and attachment/screenshot URLs. Feed those URLs to gitlab_read_attachment to view images.

Instructions

Full issue: description, labels, assignees, milestone, plus (by default) every comment and the URLs of every attached screenshot/file. Feed those URLs to gitlab_read_attachment to actually view the images.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
issue_iidYesIssue iid (the #number shown in the UI)
project_idNoProject id or URL-encoded path, e.g. `42` or `group/subgroup/project`. Falls back to GITLAB_PROJECT_ID.
include_notesNoInclude all comments (default true)
include_attachmentsNoInclude attachment/screenshot URLs found in the description and comments (default true)
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is established. The description adds value by noting that comments and attachments are included by default and that attachments are URLs, which is useful contextual behavior not present in 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?

Two information-dense sentences: the first enumerates the returned fields, and the second gives a cross-tool instruction for viewing attachments. No redundant words or filler.

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?

With no output schema, the description takes on the burden of explaining return content, and it does so thoroughly. It specifies what fields are included, mentions default behaviors, and points to the reading tool for attachments, making it complete for a read-only get operation.

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 covers 100% of parameters with clear descriptions, so baseline 3 applies. The description clarifies that 'every comment' and 'every attached screenshot/file' correspond to include_notes and include_attachments defaults, but it doesn't add further syntax or format details beyond the schema.

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 returns a full issue including description, labels, assignees, milestone, and by default comments and attachment URLs. This specific enumeration differentiates it from siblings like gitlab_list_issues or gitlab_get_merge_request.

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

Usage Guidelines4/5

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

The description implies use when you need the complete issue with all comments and attachments, and provides a downstream pointer to gitlab_read_attachment. However, it does not explicitly contrast with alternatives like gitlab_list_issues or mention when not to use this tool.

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/amalychev/gitlab-mcp'

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