Skip to main content
Glama
GitHub PR Issue Analyser

GitHub PR Issue Analyser

by saidsef

Github Search Issues Prs

github_search_issues_prs
Read-only

Search GitHub issues and pull requests by text and qualifiers to find open, closed, or merged work by repo, label, author, or user, using lexical, semantic, or hybrid matching.

Instructions

Searches issues and pull requests by text and qualifiers, open, closed or merged. Any qualifier GitHub search accepts works, so 'is:open is:pr involves:octocat' lists the open PRs a user is part of. GitHub runs a lexical search when search_type is absent, so the default sends none. Semantic and hybrid cover issues alone, and GitHub falls back to lexical for a query that can reach a PR.

Workflow and conventions: github_get_skill('issue-management').

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "github_search_issues_prs"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo
queryYesTerms and qualifiers, e.g. 'rate limit repo:owner/name is:closed label:bug'
per_pageNoNumber of results per page (1-100)
search_typeNolexical matches words. semantic and hybrid match issues by meaning and need is:issue in the querylexical

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv54.0.0
    • addedInput schema / properties / search_type
      Added value: +{
      +  "default": "lexical",
      +  "description": "lexical matches words. semantic and hybrid match issues by meaning and need is:issue in the query",
      +  "enum": [
      +    "lexical",
      +    "semantic",
      +    "hybrid"
      +  ],
      +  "type": "string"
      +}
  2. Addedv42.0.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/openWorldHint, so the safety profile is covered. The description adds real behavioral detail beyond them: absent search_type means no type parameter is sent, semantic/hybrid silently degrade to lexical for PR-reachable queries, and semantic/hybrid only cover issues. That fallback/degradation behavior is the kind of thing an agent can't infer from annotations or schema.

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 core capability and qualifier example are front-loaded and there is little wasted text. The sentence 'GitHub runs a lexical search when search_type is absent, so the default sends none' is slightly redundant and awkwardly phrased, and the final semantic/hybrid sentence is dense, but neither obscures the message.

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?

An output schema exists, so return values needn't be described, and the description covers query syntax, type selection, and a workflow pointer for a moderately complex search tool. It leaves pagination/result-count expectations unaddressed, which is a small but real gap for a paged search endpoint.

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

Parameters4/5

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

Schema coverage is 75% and the enum is documented, so the baseline is already decent. The description goes further by explaining the consequences of choosing each search_type value and that omitting it sends no type parameter, plus the accepted qualifier syntax. Minor gap: page/per_page behavior isn't discussed, though per_page is described in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource pair — searches issues and pull requests — plus the scope (text and qualifiers, open/closed/merged). That separates it cleanly from the other search siblings (api_routes, prefab_components) by resource type. It stops short of naming a single-record or listing alternative such as github_get_issue, so it earns a 4 rather than a 5.

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

Usage Guidelines4/5

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

It gives concrete usage context with a worked example ('is:open is:pr involves:octocat') and spells out when each search_type applies, including the constraint that semantic/hybrid require is:issue. It also routes to a companion skill via github_get_skill('issue-management'). No explicit when-not condition or named alternative tool is given, which keeps it at 4.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.