Home / Servers / Asana API / set_parent_for_task

Set the parent of a task

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

Set the parent of a task Required scope: tasks:write Updates the parent of a given task. This endpoint can be used to make a task a subtask of another task, or to remove its existing parent. When using insert_before and… [POST /tasks/{task_gid}/setParent]

Name on the gateway: asana_api__set_parent_for_task · may change things.

Parameters

NameTypeDescription
task_gid requiredstringThe task to operate on.
opt_prettybooleanProvides “pretty” output. Provides the response in a “pretty” format. In the…
opt_fieldsarrayThis endpoint returns a resource which excludes some properties by default. To…
dataobject

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": "asana_api__set_parent_for_task",
  "arguments": {
    "task_gid": "…"
  }
}

Or connect the Asana API server directly, which lists 270 tools including this one:

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

Try asking

Use the set the parent of a task tool with task_gid set to ….

More from Asana API