Home / Servers / Asana API / get_projects_for_task
Get projects a task is in
An MCP tool from the Asana API server, hosted on mcp.hjlabs.in.
Get projects a task is in Required scope: projects:read Returns a compact representation of all of the projects the task is in. [GET /tasks/{task_gid}/projects]
Name on the gateway: asana_api__get_projects_for_task · read-only.
Parameters
| Name | Type | Description |
|---|---|---|
task_gid required | string | The task to operate on. |
opt_pretty | boolean | Provides “pretty” output. Provides the response in a “pretty” format. In the… |
limit | integer | Results per page. The number of objects to return per page. The value must be… |
offset | string | Offset token. An offset to the next page returned by the API. A pagination… |
include_inherited_projects | boolean | Opt-in, read-only. When true, the response also includes projects the task… |
opt_fields | array | This endpoint returns a resource which excludes some properties by default. To… |
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:
{
"name": "asana_api__get_projects_for_task",
"arguments": {
"task_gid": "…"
}
}Or connect the Asana API server directly, which lists 270 tools including this one:
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 get projects a task is in tool with task_gid set to ….