Skip to main content
Glama

get_next_task

Retrieve prioritized tasks ready for execution by analyzing dependencies, status, and priority to determine what to work on next in project workflows.

Instructions

Returns the next task(s) that should be worked on. Considers: dependencies (only returns tasks whose dependencies are done), priority (P0 first), status (excludes done/blocked), and optionally filters by owner or project. This is the key tool for agentic execution - call this to know what to do next.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ownerNoFilter by owner. Only return tasks assigned to this owner.
projectNoFilter by project. Only return tasks from this project.
include_blockedNoInclude blocked tasks in results. Default: false.
limitNoMaximum number of tasks to return. Default: 5.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pouyanafisi/project-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server