Home / Servers / Asana API / search_tasks_for_workspace

Search tasks in a workspace

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

Search tasks in a workspace Required scope: tasks:read To mirror the functionality of the Asana web app's advanced search feature, the Asana API has a task search endpoint that allows you to build complex filters to find and… [GET /workspaces/{workspace_gid}/tasks/search]

Name on the gateway: asana_api__search_tasks_for_workspace · read-only.

Parameters

NameTypeDescription
workspace_gid requiredstringGlobally unique identifier for the workspace or…
opt_prettybooleanProvides “pretty” output. Provides the response in a “pretty” format. In the…
limitintegerResults per search response. The number of objects to return in one search…
textstringPerforms full-text search on both task name and description
resource_subtypedefault_task | milestone | approval | customFilters results by the task's resource_subtype
assignee.anystringComma-separated list of user identifiers. This can either be the string "me"…
assignee.notstringComma-separated list of user identifiers. This can either be the string "me"…
portfolios.anystringComma-separated list of portfolio IDs
projects.anystringComma-separated list of project IDs. Returns tasks that are directly in these…
projects.notstringComma-separated list of project IDs
projects.allstringComma-separated list of project IDs
sections.anystringComma-separated list of section or column IDs
sections.notstringComma-separated list of section or column IDs
sections.allstringComma-separated list of section or column IDs
tags.anystringComma-separated list of tag IDs
tags.notstringComma-separated list of tag IDs
tags.allstringComma-separated list of tag IDs
teams.anystringComma-separated list of team IDs
followers.anystringComma-separated list of user identifiers. This can either be the string "me"…
followers.notstringComma-separated list of user identifiers. This can either be the string "me"…
created_by.anystringComma-separated list of user identifiers. This can either be the string "me"…
created_by.notstringComma-separated list of user identifiers. This can either be the string "me"…
assigned_by.anystringComma-separated list of user identifiers. This can either be the string "me"…
assigned_by.notstringComma-separated list of user identifiers. This can either be the string "me"…
liked_by.notstringComma-separated list of user identifiers. This can either be the string "me"…
commented_on_by.notstringComma-separated list of user identifiers. This can either be the string "me"…
due_on.beforestringISO 8601 date string
due_on.afterstringISO 8601 date string
due_onstringISO 8601 date string or null
due_at.beforestringISO 8601 datetime string
due_at.afterstringISO 8601 datetime string
start_on.beforestringISO 8601 date string
start_on.afterstringISO 8601 date string
start_onstringISO 8601 date string or null
created_on.beforestringISO 8601 date string
created_on.afterstringISO 8601 date string
created_onstringISO 8601 date string or null
created_at.beforestringISO 8601 datetime string
created_at.afterstringISO 8601 datetime string
completed_on.beforestringISO 8601 date string
completed_on.afterstringISO 8601 date string
completed_onstringISO 8601 date string or null
completed_at.beforestringISO 8601 datetime string
completed_at.afterstringISO 8601 datetime string
modified_on.beforestringISO 8601 date string
modified_on.afterstringISO 8601 date string
modified_onstringISO 8601 date string or null
modified_at.beforestringISO 8601 datetime string
modified_at.afterstringISO 8601 datetime string
is_blockingbooleanFilter to incomplete tasks with dependents
is_blockedbooleanFilter to tasks with incomplete dependencies
has_attachmentbooleanFilter to tasks with attachments
completedbooleanFilter to completed tasks
is_subtaskbooleanFilter to subtasks
sort_bydue_date | created_at | completed_at | likes | modified_at | relevanceOne of due_date, created_at, completed_at, likes, relevance, or modified_at…
sort_ascendingbooleanDefault false
opt_fieldsarrayThis 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:

call_tool arguments
{
  "name": "asana_api__search_tasks_for_workspace",
  "arguments": {
    "workspace_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 search tasks in a workspace tool with workspace_gid set to ….

More from Asana API