Skip to main content
Glama

Search GitHub issues

github_search_issues
Read-onlyIdempotent

Search GitHub issues by keyword and filter by repository, state, author, assignee, labels, comment count or date. Each result includes the title, state, author, labels, comment count and dates. Read-only: returns public data and changes nothing. Costs 1 credit per request.

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": {
      "order": "<order>",
      "count": "<count>",
      "sort": "<sort>"
    },
    "name": "github_search_issues"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortYesSort field. Defaults to relevance ("best-match").best-match
countYesNumber of results to return (1–10). Defaults to 10.
orderYesSort direction. Defaults to "desc".desc
queryNoFree-text search terms, matched against the default fields for this search type, e.g. "web framework".
reposNoLimit to these "owner/name" repositories. Maps to `repo:`.
stateNoIssue/PR state. Maps to `state:`.
authorNoOpened by this user. Maps to `author:`.
closedNoFilter by closed date. Provide any of gt / gte / lt / lte as YYYY-MM-DD dates; combine a lower and upper bound for a range.
cursorNoThe previous response's `nextCursor`, to fetch the next page. Omit it for the first page.
labelsNoRequire each of these labels. Maps to `label:`.
ownersNoLimit to these owners (users or orgs). Maps to `user:`.
reasonNoState reason for closed issues. Maps to `reason:`.
createdNoFilter by creation date. Provide any of gt / gte / lt / lte as YYYY-MM-DD dates; combine a lower and upper bound for a range.
updatedNoFilter by last update date. Provide any of gt / gte / lt / lte as YYYY-MM-DD dates; combine a lower and upper bound for a range.
assigneeNoAssigned to this user. Maps to `assignee:`.
commentsNoFilter by comment count. Provide any of gt / gte / lt / lte; combine a lower and upper bound for a range.
languageNoLanguage of the containing repo. Maps to `language:`.
mentionsNoMentioning this user. Maps to `mentions:`.
cacheOnlyNoReturn only a cached result and never scrape live. With `cacheMaxAgeHours`, only a result that recent is returned; without it, the latest cached result of any age. Responds 404, at no cost, when there is none, e.g. true.
cacheMaxAgeHoursNoAccept a cached result scraped up to this many hours ago. A cached result costs no credits, and its `cachedAt` says when it was scraped. When no cached result is that recent, the data is scraped live at the normal price. Leave it out to always scrape live, e.g. 24.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / owners / items / pattern
      Previous value: -"^[A-Za-z\\d][A-Za-z\\d_-]{0,38}$"New value: +"^[^\\s/?#]+$"
    • changedInput schema / properties / repos / items / pattern
      Previous value: -"^[A-Za-z\\d][A-Za-z\\d_-]{0,38}\\/[\\w.-]+$"New value: +"^[^\\s/?#]+\\/[^\\s/?#]+$"
  2. Changed2 schema fields changed
    • addedInput schema / properties / cacheMaxAgeHours
      Added value: +{
      +  "description": "Accept a cached result scraped up to this many hours ago. A cached result costs no credits, and its `cachedAt` says when it was scraped. When no cached result is that recent, the data is scraped live at the normal price. Leave it out to always scrape live, e.g. 24.",
      +  "exclusiveMinimum": 0,
      +  "maximum": 9007199254740991,
      +  "type": "integer"
      +}
    • addedInput schema / properties / cacheOnly
      Added value: +{
      +  "description": "Return only a cached result and never scrape live. With `cacheMaxAgeHours`, only a result that recent is returned; without it, the latest cached result of any age. Responds 404, at no cost, when there is none, e.g. true.",
      +  "type": "boolean"
      +}
  3. First observed

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, yet the description still adds real value: the exact result fields returned, that only public data is exposed, and a concrete cost of 1 credit per request. It omits the cache parameters' behavior (cacheOnly returning 404 at no cost), but that is documented in the schema.

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 sentences, front-loaded with the verb and resource, then filters, then return shape, then safety and cost. No filler and nothing repeated from the title alone.

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?

For a 20-parameter tool with nested date objects and no output schema, the description covers purpose, return fields, safety, and cost, which is most of what an agent needs. It leaves pagination (cursor/nextCursor) and the cache/no-cost path unmentioned, which are the remaining gaps given the tool's complexity.

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%, so the schema already documents sort, order, count, date ranges, and the cache options in detail. The description only restates the high-level filter categories and adds no syntax, defaults, or limits (e.g. count maxing at 10, cursor pagination) beyond the schema, so the baseline 3 applies.

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?

States a specific verb and resource ("Search GitHub issues") and enumerates the filter dimensions (repository, state, author, assignee, labels, comment count, date), which cleanly separates it from siblings like github_search_pull_requests or github_search_code without requiring a schema read.

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?

Usage is implied by naming the filters and stating the tool is read-only, but there is no explicit when-to-use/when-not guidance and no routing to alternatives such as the pull-request or code search siblings. An agent must infer that issues are the target entity rather than being told to prefer a different tool for PRs.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources