Skip to main content
Glama

search GitHub issues

gh_issue_search
Read-onlyIdempotent

Search issues in a single GitHub repository by query and state, returning newest activity first with issue number, title, labels, updated date, URL, and body excerpt. Read-only.

Instructions

Search issues in one repository with GitHub's search API, newest activity first. Read-only. Returns issue number, title, labels, updated date, url and a body excerpt. Requires GITHUB_TOKEN for anything beyond 60 requests/hour.

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": {
      "repo": "<repo>"
    },
    "name": "gh_issue_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYesRepository as owner/name, e.g. emcie-co/parlant
limitNoMaximum issues to return
queryNoSearch terms, e.g. 'timeout' or 'label:bug sse'
stateNoIssue state filteropen

Output Schema

NameRequiredDescriptionDefault
repoYesRepository as owner/name
queryYesSearch terms as sent, after defaulting
stateYes
issuesYes
totalCountYesMatches GitHub reported, which can exceed the returned issues

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the 'Read-only' line repeats structured data rather than adding to it. The description does earn credit by disclosing the auth/rate-limit constraint (GITHUB_TOKEN needed beyond 60 requests/hour) and the result ordering, which annotations cannot express.

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

Conciseness5/5

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

Three short sentences, front-loaded with the core action and scope, followed by output shape and the auth caveat. No filler or redundancy.

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?

With an output schema present and full schema coverage, the description needn't enumerate return values, yet it still summarizes them plus the token/rate-limit requirement and result ordering. Only minor gaps remain (default empty query behavior, empty-result behavior), which the schema largely covers.

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

Parameters3/5

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

Schema description coverage is 100%, including an example repo string and a query syntax hint ('label:bug sse'), so the schema carries parameter semantics. The description adds only the repo scoping and implicit ordering, not format or behavior for limit, state, or empty query.

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?

Specific verb+resource (search issues), narrows scope to one repository, and adds ordering (newest activity first). Nothing overlaps with the git_*/gh_pr_context/gh_ci_failures siblings, so an agent can select it unambiguously.

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

Usage Guidelines3/5

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

Implies usage via 'in one repository' and 'newest activity first', which tells the agent this is a scoped, recency-ordered lookup. However, it never states when to prefer it over alternatives or what it cannot do (e.g. cross-repo or code search), leaving the agent to infer boundaries.

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