Skip to main content
Glama

gitlab_get_issue_details

Retrieve detailed information about a specific GitLab issue by providing the project path and issue internal ID. This tool enables AI agents to access issue data for integration workflows.

Instructions

Gets detailed information about a specific GitLab issue.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectPathYesThe path of the GitLab project.
issueIidYesThe internal ID of the issue.

Implementation Reference

  • The core handler function in GitLabService that fetches detailed information about a GitLab issue using the GitLab API endpoint.
    async getIssueDetails(projectPath: string, issueIid: number): Promise<any> { const encodedProjectPath = encodeURIComponent(projectPath); return this.callGitLabApi<any>( `projects/${encodedProjectPath}/issues/${issueIid}`, ); }
  • Input schema definition for the gitlab_get_issue_details tool, specifying parameters projectPath and issueIid.
    name: 'gitlab_get_issue_details', description: 'Gets detailed information about a specific GitLab issue.', inputSchema: { type: 'object', properties: { projectPath: { type: 'string', description: 'The path of the GitLab project.', }, issueIid: { type: 'number', description: 'The internal ID of the issue.', }, }, required: ['projectPath', 'issueIid'], }, },
  • src/index.ts:1970-1983 (registration)
    Tool registration in the MCP server request handler switch statement, dispatching calls to gitlabService.getIssueDetails and formatting the response.
    case 'gitlab_get_issue_details': { if (!gitlabService) { throw new Error('GitLab service is not initialized.'); } const { projectPath, issueIid } = args as { projectPath: string; issueIid: number }; const result = await gitlabService.getIssueDetails(projectPath, issueIid); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], };
  • src/index.ts:848-864 (registration)
    Tool object registration in the allTools array, which is used for listTools and filtered for availability.
    name: 'gitlab_get_issue_details', description: 'Gets detailed information about a specific GitLab issue.', inputSchema: { type: 'object', properties: { projectPath: { type: 'string', description: 'The path of the GitLab project.', }, issueIid: { type: 'number', description: 'The internal ID of the issue.', }, }, required: ['projectPath', 'issueIid'], }, },

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

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