Skip to main content
Glama
BlZvi
by BlZvi

Set Parent For Task

asana_set_parent_for_task
Idempotent

Assign a parent task to make it a subtask, or set to null to promote to top-level. Control sibling position with insert_before/after.

Instructions

Convert a task into a subtask by assigning it a parent task. Optionally control the subtask's position among its siblings. Returns the updated task object including the new parent. To remove a parent (promote a subtask to top-level), set parent to null.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
parentYesThe GID of the new parent task, or `null` to remove the parent and make this a top-level task.
task_idYesThe GID of the task to make a subtask (numeric string, e.g. `'19234567890123'`).
opt_fieldsNoComma-separated extra fields to include. Useful values: `gid,name,parent.gid,parent.name,resource_subtype`.
insert_afterNoGID of a sibling subtask to insert this task after. Cannot be used with insert_before. Omit to insert at the end.
insert_beforeNoGID of a sibling subtask to insert this task before. Cannot be used with insert_after. Omit to insert at the beginning.
Behavior4/5

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

Annotations already indicate write operation (readOnlyHint=false) and non-destructive (destructiveHint=false). The description adds valuable behavioral context: it returns the updated task object and explicitly explains that setting parent to null promotes a subtask to top-level. This goes beyond what annotations provide and aligns with them, with no contradictions.

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 concise at three sentences, each earning its place. It front-loads the core action, then covers optional positioning, then explains removal behavior. No redundant information or fluff.

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?

For a mutation tool with five parameters and no output schema, the description covers the essential behaviors: conversion, optional positioning, null removal, and return value. It does not mention preconditions like the task needing to exist or the parent being a task, but the schema and annotations carry much of the burden. Overall, it is sufficiently complete for most agent use cases.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already documents all five parameters. The description adds contextual meaning by framing insert_after/insert_before as controlling 'the subtask's position among its siblings' and reinforcing the null-parent removal behavior. This provides a higher-level understanding that the schema's individual descriptions don't fully convey.

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 specific action: 'Convert a task into a subtask by assigning it a parent task.' It distinguishes this from sibling tools like asana_create_subtask (which creates new subtasks) by focusing on converting an existing task. The purpose is unambiguous and immediately understandable.

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 provides clear context for when to use this tool: to assign a parent to an existing task, optionally control placement among siblings, or remove a parent by setting it to null. While it doesn't explicitly name alternative tools, the wording implies the distinction from create_subtask and makes the use case clear. It lacks an explicit 'use this instead of X' statement but is more than sufficient.

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/BlZvi/asana-mcp-server'

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