Skip to main content
Glama

get_pull_request_comment

Retrieve detailed information about a specific comment on a pull request in an AtomGit repository using the provided owner, repo, pull number, and comment ID.

Instructions

Get details of a specific pull request comment

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
comment_idYes
ownerYes
pull_numberYes
repoYes

Implementation Reference

  • The core handler function that performs the HTTP GET request to retrieve a specific pull request comment from the AtomGit API.
    export async function getPullRequestComment(owner: string, repo: string, pull_number: number, comment_id: number) { return atomGitRequest( `https://api.atomgit.com/repos/${encodeURIComponent(owner)}/${encodeURIComponent(repo)}/pulls/${encodeURIComponent(pull_number)}/comments/${encodeURIComponent(comment_id)}`, { method: "GET", } ); }
  • Zod schema defining the input validation for the get_pull_request_comment tool: owner, repo, pull_number, and comment_id.
    export const GetPullRequestCommentSchema = z.object({ owner: z.string(), repo: z.string(), pull_number: z.number(), comment_id: z.number(), });
  • index.ts:152-156 (registration)
    Registration of the get_pull_request_comment tool in the MCP server's tool list, including name, description, and schema reference.
    { name: "get_pull_request_comment", description: "Get details of a specific pull request comment", inputSchema: zodToJsonSchema(pull.GetPullRequestCommentSchema), },
  • MCP CallToolRequest handler that validates input arguments using the schema and delegates to the pull.getPullRequestComment function, formatting the response.
    case "get_pull_request_comment": { const args = pull.GetPullRequestCommentSchema.parse(request.params.arguments); const result = await pull.getPullRequestComment(args.owner, args.repo, args.pull_number, args.comment_id); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }], }; }

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/kaiyuanxiaobing/atomgit-mcp-server'

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