Skip to main content
Glama

get_pull_request_details

Retrieve comprehensive details of a specific pull request from an AtomGit repository by providing the owner, repository name, and pull request number.

Instructions

Get details of a specific pull request

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ownerYes
pull_numberYes
repoYes

Implementation Reference

  • Core handler function that executes the API request to fetch pull request details from AtomGit.
    export async function getPullRequestDetails(owner: string, repo: string, pull_number: number) { return atomGitRequest( `https://api.atomgit.com/repos/${encodeURIComponent(owner)}/${encodeURIComponent(repo)}/pulls/${encodeURIComponent(pull_number)}`, { method: "GET", } ); }
  • Zod schema defining the input parameters for the get_pull_request_details tool.
    export const GetPullRequestDetailsSchema = z.object({ owner: z.string(), repo: z.string(), pull_number: z.number(), });
  • index.ts:138-141 (registration)
    Tool registration in the MCP server's listTools response, specifying name, description, and input schema.
    name: "get_pull_request_details", description: "Get details of a specific pull request", inputSchema: zodToJsonSchema(pull.GetPullRequestDetailsSchema), },
  • Dispatch handler in the MCP CallToolRequest that parses arguments and calls the core getPullRequestDetails function.
    case "get_pull_request_details": { const args = pull.GetPullRequestDetailsSchema.parse(request.params.arguments); const result = await pull.getPullRequestDetails(args.owner, args.repo, args.pull_number); 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