Home / Servers / GitHub API / agent_tasks_list_tasks

List tasks

An MCP tool from the GitHub API server, hosted on mcp.hjlabs.in.

List tasks > [!NOTE] > This endpoint is in public preview and is subject to change. Returns a list of tasks for the authenticated user **Fine-grained access tokens for "List tasks"** This endpoint works with… [GET /agents/tasks]

Name on the gateway: github_api__agent_tasks_list_tasks · read-only.

Parameters

NameTypeDescription
per_pageintegerThe number of results per page (max 100).
pageintegerThe page number of the results to fetch.
sortupdated_at | created_atThe field to sort results by. Can be updated_at or created_at.
directionasc | descThe direction to sort results. Can be asc or desc.
statestringComma-separated list of task states to filter by. Can be any combination of…
is_archivedbooleanFilter by archived status. When true, returns only archived tasks. When false…
sincestringOnly show tasks updated at or after this time (ISO 8601 timestamp)

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "github_api__agent_tasks_list_tasks",
  "arguments": {}
}

Or connect the GitHub API server directly, which lists 1,221 tools including this one:

Run in your terminal
claude mcp add --transport http hj-github-api https://mcp.hjlabs.in/mcp/github-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the list tasks tool with per_page set to ….

More from GitHub API