Skip to main content
Glama
saidsef

GitHub PR Issue Analyser

by saidsef

get_pr_content

Retrieve details of a GitHub pull request including title, description, author, timestamps, and state by specifying repository owner, name, and PR number.

Instructions

Fetches the content/details of a specific pull request from a GitHub repository. Args: repo_owner (str): The owner of the repository. repo_name (str): The name of the repository. pr_number (int): The pull request number. Returns: Dict[str, Any]: A dictionary containing the pull request's title, description, author, creation and update timestamps, and state. Raises: GitHubNotFoundError: If the PR is not found. GitHubAPIError: If the API request fails.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repo_ownerYes
repo_nameYes
pr_numberYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleYes
descriptionYes
authorYes
created_atYes
updated_atYes
stateYes
Behavior3/5

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

No annotations provided, so the description carries the full burden. It discloses return fields (title, description, author, timestamps, state) and error types. However, it lacks details on authentication needs, rate limits, or side effects, which is acceptable for a likely read-only operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with a one-line summary followed by Args, Returns, and Raises sections. It is concise but includes all necessary details; slightly more streamlined could improve conciseness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no annotations and the existence of an output schema (implied), the description adequately explains return fields and errors. It is complete for a simple fetch operation, though it lacks info on output schema structure or edge cases like large responses.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Every parameter (repo_owner, repo_name, pr_number) is described with its role (e.g., 'The owner of the repository') in the Args section. This adds meaning beyond the schema's type-only information, and the description covers all three parameters explicitly.

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 fetches content/details of a specific pull request from a GitHub repository, using specific verbs and resources. It distinguishes from sibling tools like 'get_pr_diff' or 'merge_pr' by focusing on metadata details.

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

Usage Guidelines2/5

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

No guidance on when to use this tool vs alternatives (e.g., 'get_pr_diff' for diff content). No when-not-to-use or prerequisite conditions are mentioned, leaving the agent to infer usage context.

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/saidsef/mcp-github-pr-issue-analyser'

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