Skip to main content
Glama

get_execution_order

Determines task execution order using dependency analysis, detecting circular dependencies and returning tasks sorted by sequence. Supports filtering by status or user story.

Instructions

Calculates the topological execution order for tasks based on dependencies. Uses Kahn's algorithm to detect circular dependencies and return tasks sorted by execution sequence. Handles edge cases: cycles (returns error with cycle path), multiple dependency chains (ensures all paths considered), and isolated tasks (included at end).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
statusNoFilter by task status (optional)
userStoryIdNoFilter by user story ID (optional)
Behavior3/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 algorithm behavior and edge cases (cycles return error with path, isolated tasks at end), but does not state the return format or whether parameters affect the calculation. This is useful but incomplete.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences with relevant information, but the second sentence redundantly restates what was said in the first ('topological execution order' and 'sorted by execution sequence'). Slightly more concise wording would improve clarity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a calculation tool, the description covers algorithm and edge cases, but it omits the success return format and does not integrate parameter usage. Since there is no output schema, more detail on what the tool returns would make it more complete.

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 descriptions cover 100% of parameters, so the baseline is 3. The tool description adds no extra meaning to the 'status' or 'userStoryId' filters and does not explain how they interact with the dependency ordering, so it neither enhances nor detracts.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly identifies the tool's function: calculating topological execution order for tasks based on dependencies, with a specific algorithm (Kahn's) and scope. It does not explicitly differentiate from sibling tools like get_task_dependency_graph, so it stops short of a perfect score.

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 context is implied (use when you need execution order), but the description provides no explicit guidance on when to use this tool versus alternatives, nor does it mention exclusions or prerequisites. This is adequate but not fully explicit.

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/khaoss85/mcp-orchestro'

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