GitHub search issues and pull requests

github__search_issues_and_pull_requests

Access

Requires a project integration connection for github.

Call type: Can read or manage credentials.

Arguments

FieldTypeRequiredDescription and constraints
qstringYesRequired GitHub search query. For organization activity, use org:<ORG> author:<USER> created:<START>..<END> and include exactly one type qualifier: is:issue or is:pr (is:pull-request).
sortstringNoSort by comments, reactions, interactions, created, or updated
orderstringNoSort order: desc or asc
per_pagenumberNoResults per page (max 100)
pagenumberNoPage number for pagination

Example request

Send this JSON-RPC request through an initialized MCP client. Replace sample identifiers and values before calling the tool. See MCP client setup.

json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "github__search_issues_and_pull_requests",
    "arguments": {
      "q": "example"
    }
  }
}

Result

No output schema is published for this tool. The input contract does not define its return fields. Inspect the MCP response content and isError; do not assume a fixed object shape. See the github integration reference for provider setup and tool context.

Full schemas

json
{
  "type": "object",
  "properties": {
    "q": {
      "type": "string",
      "description": "Required GitHub search query. For organization activity, use org:<ORG> author:<USER> created:<START>..<END> and include exactly one type qualifier: is:issue or is:pr (is:pull-request)."
    },
    "sort": {
      "type": "string",
      "description": "Sort by comments, reactions, interactions, created, or updated"
    },
    "order": {
      "type": "string",
      "description": "Sort order: desc or asc"
    },
    "per_page": {
      "type": "number",
      "description": "Results per page (max 100)"
    },
    "page": {
      "type": "number",
      "description": "Page number for pagination"
    }
  },
  "required": [
    "q"
  ],
  "description": "Arguments for the github__search_issues_and_pull_requests tool."
}