mcp-server-asana

asana_search_tasks

Search tasks in a workspace with advanced filtering options

Input Schema

NameRequiredDescriptionDefault
assigned_by.anyNoComma-separated list of user IDs
assigned_by.notNoComma-separated list of user IDs to exclude
assignee.anyNoComma-separated list of user IDs
assignee.notNoComma-separated list of user IDs to exclude
commented_on_by.notNoComma-separated list of user IDs to exclude
completedNoFilter for completed tasks
completed_at.afterNoISO 8601 datetime string
completed_at.beforeNoISO 8601 datetime string
completed_onNoISO 8601 date string or null
completed_on.afterNoISO 8601 date string
completed_on.beforeNoISO 8601 date string
created_at.afterNoISO 8601 datetime string
created_at.beforeNoISO 8601 datetime string
created_by.anyNoComma-separated list of user IDs
created_by.notNoComma-separated list of user IDs to exclude
created_onNoISO 8601 date string or null
created_on.afterNoISO 8601 date string
created_on.beforeNoISO 8601 date string
custom_fieldsNoObject containing custom field filters. Keys should be in the format "{gid}.{operation}" where operation can be: - {gid}.is_set: Boolean - For all custom field types, check if value is set - {gid}.value: String|Number|String(enum_option_gid) - Direct value match for Text, Number or Enum fields - {gid}.starts_with: String - For Text fields only, check if value starts with string - {gid}.ends_with: String - For Text fields only, check if value ends with string - {gid}.contains: String - For Text fields only, check if value contains string - {gid}.less_than: Number - For Number fields only, check if value is less than number - {gid}.greater_than: Number - For Number fields only, check if value is greater than number Example: { "12345.value": "high", "67890.contains": "urgent" }
due_at.afterNoISO 8601 datetime string
due_at.beforeNoISO 8601 datetime string
due_onNoISO 8601 date string or null
due_on.afterNoISO 8601 date string
due_on.beforeNoISO 8601 date string
followers.notNoComma-separated list of user IDs to exclude
has_attachmentNoFilter for tasks with attachments
is_blockedNoFilter for tasks with incomplete dependencies
is_blockingNoFilter for incomplete tasks with dependents
is_subtaskNoFilter for subtasks
liked_by.notNoComma-separated list of user IDs to exclude
modified_at.afterNoISO 8601 datetime string
modified_at.beforeNoISO 8601 datetime string
modified_onNoISO 8601 date string or null
modified_on.afterNoISO 8601 date string
modified_on.beforeNoISO 8601 date string
opt_fieldsNoComma-separated list of optional fields to include
portfolios.anyNoComma-separated list of portfolio IDs
projects.allNoComma-separated list of project IDs that must all match
projects.anyNoComma-separated list of project IDs
projects.notNoComma-separated list of project IDs to exclude
resource_subtypeNoFilter by task subtype (e.g. milestone)
sections.allNoComma-separated list of section IDs that must all match
sections.anyNoComma-separated list of section IDs
sections.notNoComma-separated list of section IDs to exclude
sort_ascendingNoSort in ascending order
sort_byNoSort by: due_date, created_at, completed_at, likes, modified_atmodified_at
start_onNoISO 8601 date string or null
start_on.afterNoISO 8601 date string
start_on.beforeNoISO 8601 date string
tags.allNoComma-separated list of tag IDs that must all match
tags.anyNoComma-separated list of tag IDs
tags.notNoComma-separated list of tag IDs to exclude
teams.anyNoComma-separated list of team IDs
textNoText to search for in task names and descriptions
workspaceYesThe workspace to search in

Input Schema (JSON Schema)

{ "properties": { "assigned_by.any": { "description": "Comma-separated list of user IDs", "type": "string" }, "assigned_by.not": { "description": "Comma-separated list of user IDs to exclude", "type": "string" }, "assignee.any": { "description": "Comma-separated list of user IDs", "type": "string" }, "assignee.not": { "description": "Comma-separated list of user IDs to exclude", "type": "string" }, "commented_on_by.not": { "description": "Comma-separated list of user IDs to exclude", "type": "string" }, "completed": { "description": "Filter for completed tasks", "type": "boolean" }, "completed_at.after": { "description": "ISO 8601 datetime string", "type": "string" }, "completed_at.before": { "description": "ISO 8601 datetime string", "type": "string" }, "completed_on": { "description": "ISO 8601 date string or null", "type": "string" }, "completed_on.after": { "description": "ISO 8601 date string", "type": "string" }, "completed_on.before": { "description": "ISO 8601 date string", "type": "string" }, "created_at.after": { "description": "ISO 8601 datetime string", "type": "string" }, "created_at.before": { "description": "ISO 8601 datetime string", "type": "string" }, "created_by.any": { "description": "Comma-separated list of user IDs", "type": "string" }, "created_by.not": { "description": "Comma-separated list of user IDs to exclude", "type": "string" }, "created_on": { "description": "ISO 8601 date string or null", "type": "string" }, "created_on.after": { "description": "ISO 8601 date string", "type": "string" }, "created_on.before": { "description": "ISO 8601 date string", "type": "string" }, "custom_fields": { "description": "Object containing custom field filters. Keys should be in the format \"{gid}.{operation}\" where operation can be:\n- {gid}.is_set: Boolean - For all custom field types, check if value is set\n- {gid}.value: String|Number|String(enum_option_gid) - Direct value match for Text, Number or Enum fields\n- {gid}.starts_with: String - For Text fields only, check if value starts with string\n- {gid}.ends_with: String - For Text fields only, check if value ends with string\n- {gid}.contains: String - For Text fields only, check if value contains string\n- {gid}.less_than: Number - For Number fields only, check if value is less than number\n- {gid}.greater_than: Number - For Number fields only, check if value is greater than number\n\nExample: { \"12345.value\": \"high\", \"67890.contains\": \"urgent\" }", "type": "object" }, "due_at.after": { "description": "ISO 8601 datetime string", "type": "string" }, "due_at.before": { "description": "ISO 8601 datetime string", "type": "string" }, "due_on": { "description": "ISO 8601 date string or null", "type": "string" }, "due_on.after": { "description": "ISO 8601 date string", "type": "string" }, "due_on.before": { "description": "ISO 8601 date string", "type": "string" }, "followers.not": { "description": "Comma-separated list of user IDs to exclude", "type": "string" }, "has_attachment": { "description": "Filter for tasks with attachments", "type": "boolean" }, "is_blocked": { "description": "Filter for tasks with incomplete dependencies", "type": "boolean" }, "is_blocking": { "description": "Filter for incomplete tasks with dependents", "type": "boolean" }, "is_subtask": { "description": "Filter for subtasks", "type": "boolean" }, "liked_by.not": { "description": "Comma-separated list of user IDs to exclude", "type": "string" }, "modified_at.after": { "description": "ISO 8601 datetime string", "type": "string" }, "modified_at.before": { "description": "ISO 8601 datetime string", "type": "string" }, "modified_on": { "description": "ISO 8601 date string or null", "type": "string" }, "modified_on.after": { "description": "ISO 8601 date string", "type": "string" }, "modified_on.before": { "description": "ISO 8601 date string", "type": "string" }, "opt_fields": { "description": "Comma-separated list of optional fields to include", "type": "string" }, "portfolios.any": { "description": "Comma-separated list of portfolio IDs", "type": "string" }, "projects.all": { "description": "Comma-separated list of project IDs that must all match", "type": "string" }, "projects.any": { "description": "Comma-separated list of project IDs", "type": "string" }, "projects.not": { "description": "Comma-separated list of project IDs to exclude", "type": "string" }, "resource_subtype": { "description": "Filter by task subtype (e.g. milestone)", "type": "string" }, "sections.all": { "description": "Comma-separated list of section IDs that must all match", "type": "string" }, "sections.any": { "description": "Comma-separated list of section IDs", "type": "string" }, "sections.not": { "description": "Comma-separated list of section IDs to exclude", "type": "string" }, "sort_ascending": { "default": false, "description": "Sort in ascending order", "type": "boolean" }, "sort_by": { "default": "modified_at", "description": "Sort by: due_date, created_at, completed_at, likes, modified_at", "type": "string" }, "start_on": { "description": "ISO 8601 date string or null", "type": "string" }, "start_on.after": { "description": "ISO 8601 date string", "type": "string" }, "start_on.before": { "description": "ISO 8601 date string", "type": "string" }, "tags.all": { "description": "Comma-separated list of tag IDs that must all match", "type": "string" }, "tags.any": { "description": "Comma-separated list of tag IDs", "type": "string" }, "tags.not": { "description": "Comma-separated list of tag IDs to exclude", "type": "string" }, "teams.any": { "description": "Comma-separated list of team IDs", "type": "string" }, "text": { "description": "Text to search for in task names and descriptions", "type": "string" }, "workspace": { "description": "The workspace to search in", "type": "string" } }, "required": [ "workspace" ], "type": "object" }