Skip to main content
Glama

get_issue

Retrieve detailed information about a specific GitHub issue by providing its issue ID to access status, comments, and related data.

Instructions

Get details of a specific GitHub issue

Input Schema

NameRequiredDescriptionDefault
issueIdYes

Input Schema (JSON Schema)

{ "properties": { "issueId": { "type": "string" } }, "required": [ "issueId" ], "type": "object" }

Implementation Reference

  • MCP tool handler for 'get_issue' in the main server switch statement, dispatching to ProjectManagementService.getIssue
    case "get_issue": return await this.service.getIssue(args.issueId);
  • Zod schema and TypeScript type definition for get_issue tool input validation
    // Schema for get_issue tool export const getIssueSchema = z.object({ issueId: z.string().min(1, "Issue ID is required"), }); export type GetIssueArgs = z.infer<typeof getIssueSchema>;
  • Registration of getIssueTool in the central ToolRegistry
    this.registerTool(getIssueTool);
  • Service-level handler implementation calling GitHubIssueRepository.findById
    async getIssue(issueId: string): Promise<Issue | null> { try { return await this.issueRepo.findById(issueId); } catch (error) { throw this.mapErrorToMCPError(error); } }
  • ToolDefinition object for 'get_issue' including name, description, schema reference, and usage examples
    export const getIssueTool: ToolDefinition<GetIssueArgs> = { name: "get_issue", description: "Get details of a specific GitHub issue", schema: getIssueSchema as unknown as ToolSchema<GetIssueArgs>, examples: [ { name: "Get issue details", description: "Get detailed information about an issue", args: { issueId: "42" } } ] };

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/HarshKumarSharma/MCP'

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