Skip to main content
Glama

loop_next_task

Retrieves the next task for execution based on priority, time horizon, and readiness. Automatically unblocks tasks when dependencies complete.

Instructions

Get the next task to execute — sorted by priority x time horizon x readiness.

Pinned and critical tasks are picked up first. short > mid > long priority. BLOCKED tasks auto-unlock when dependencies complete; no manual handling needed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
team_idYesTeam ID or name
agent_idNoSpecify Agent ID to prioritize tasks assigned to that Agent (optional)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses that blocked tasks auto-unlock and that ordering is by priority, time horizon, and readiness. It does not mention any side effects or state changes, which is acceptable for a read-like operation.

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?

The description is three sentences long, front-loaded with the purpose, and contains no unnecessary words. Each sentence adds meaningful information.

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?

Given that an output schema exists, the description appropriately explains sorting and auto-unlock behavior. It is nearly complete, though it could specify whether the operation is read-only or has side effects.

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?

Input schema covers 100% of parameters with descriptions, so the description adds minimal value beyond what the schema provides. It does not elaborate on parameter formats or provide additional context.

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?

The description clearly states the tool's purpose: 'Get the next task to execute' with specific sorting criteria. It distinguishes this from sibling task tools by focusing on execution priority and readiness.

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

Usage Guidelines4/5

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

The description implies usage for retrieving the next task in an execution loop by explaining sorting logic and auto-unlock behavior. However, it does not explicitly state when not to use this tool or mention alternatives.

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

Install Server

Other Tools

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/CronusL-1141/AI-company'

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