# MCP Tools Reference: tasksmcp.googleapis.com

## Tool: `update_task`

Updates an existing task. Note: To mark a task as completed or uncompleted, use `complete_task` or `uncomplete_task` instead. Limitation: An existing non-recurring task can't be made recurring. If the user asks for it, explain that this isn't supported and that they can make the task repeat in the Google Tasks app. Don't delete and re-create the task as a recurring task unless the user explicitly asks for that.

RULES FOR DEADLINES AND UPDATES:

- Deadlines vs Scheduled Dates: Use `deadlineDate` ONLY for 'by \[date\]', 'due', or 'deadline'. Default to `scheduledDate` for 'for/on \[date\]'.
- Updating Existing Dates: If a task only has one date type, update that existing field (if only a scheduled date exists, update `scheduledDate` even if asked as 'deadline'; if only a deadline exists, update `deadlineDate` even if asked as 'schedule').
- Deadlines with Time: Deadlines only support dates. Always set `deadlineDate`. If a time is specified for the deadline (e.g., 'due Friday at 5pm'), preserve it by setting `scheduledDate` and `scheduledTime` to that time, unless a separate scheduled date/time was requested. If the deadline has no time, leave the scheduled fields unmodified.
- Deadlines on Recurring Tasks: Google Tasks does not support deadlines on recurring tasks. When updating a recurring task, any requested deadline is omitted.

The following code sample shows how to use `curl` to call the `update_task` MCP tool.

| Curl Request |
|---|
| ```bash curl --location 'https://tasksmcp.googleapis.com/mcp/v1' \ --header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \ --header 'content-type: application/json' \ --header 'accept: application/json, text/event-stream' \ --data '{ "method": "tools/call", "params": { "name": "update_task", "arguments": { // Provide these details according to the MCP tool specification. } }, "jsonrpc": "2.0", "id": 1 }' ``` |

## Input Schema

Request to update a task. Omit any optional field to retain its current value.

### UpdateTaskRequest

| JSON representation |
|---|
| ``` { "taskId": string, "addedAttachments": [ { object (`Attachment`) } ], "removedAttachmentIds": [ string ], "updateSeries": boolean, "title": string, "description": string, "scheduledDate": string, "scheduledTime": string, "deadlineDate": string, "recurrenceRule": { object (`RecurrenceRule`) }, "timeZone": string } ``` |

| Fields ||
|---|---|
| `taskId` | `string` Required. The ID of the task to update. |
| `addedAttachments[]` | ``object (`Attachment`)`` Optional. Attachments to add to the task. Currently, only Google Drive files (`driveAttachment`) are supported. At most 25 attachments can be added. Note: Cannot be set when `updateSeries` is `true`. |
| `removedAttachmentIds[]` | `string` Optional. IDs of attachments to remove from the task, as returned in `attachments.attachmentId`. Note: Cannot be set when `updateSeries` is `true`. |
| Union field `_update_series`. `_update_series` can be only one of the following: ||
| `updateSeries` | `boolean` Optional. Whether to update the whole recurrence series of a recurring task instead of a single task instance. Defaults to `false`. Only applies to recurring tasks. Note: `deadlineDate` cannot be updated when `updateSeries` is `true`, and `updateSeries` cannot be `true` for a completed task. If `true`, the returned task is the current occurrence of the series, which can in some cases have a different ID than `taskId`; use the returned ID for subsequent calls. If a single occurrence was moved individually, updating the series doesn't move that occurrence; set `updateSeries` to `false` to move it. |
|   ||
| Union field `_title`. `_title` can be only one of the following: ||
| `title` | `string` Optional. The new title of the task. Omit to retain current value, set to empty string `""` to clear. At most 1024 characters; characters outside the Basic Multilingual Plane, such as most emojis, count as two. |
|   ||
| Union field `_description`. `_description` can be only one of the following: ||
| `description` | `string` Optional. The new description of the task. Omit to retain current value, set to empty string `""` to clear. At most 8192 characters; characters outside the Basic Multilingual Plane, such as most emojis, count as two. |
|   ||
| Union field `_scheduled_date`. `_scheduled_date` can be only one of the following: ||
| `scheduledDate` | `string` Optional. The new scheduled date of the task (YYYY-MM-DD). Use this when the user specifies when to do the task ('reschedule for tomorrow', 'move to Friday'). Omit to retain current value, set to empty string `""` to clear. Cannot be cleared on a recurring task (neither the series nor a single instance), because recurring tasks must always have a scheduled date. If `updateSeries` is `true`, this updates the start date of the recurrence series and adapts the recurrence schedule accordingly. For weekly recurrences with multiple days, the date must fall on one of the configured recurrence days. |
|   ||
| Union field `_scheduled_time`. `_scheduled_time` can be only one of the following: ||
| `scheduledTime` | `string` Optional. The new scheduled time of the task (HH:MM:SS) in ISO 8601 extended format. Omit to retain current value, set to empty string `""` to clear. Setting it requires a scheduled date: either `scheduledDate` in the same request, or the existing scheduled date of the task. If `updateSeries` is `true`, this updates or clears the scheduled time of the recurrence series. |
|   ||
| Union field `_deadline_date`. `_deadline_date` can be only one of the following: ||
| `deadlineDate` | `string` Optional. The new deadline/due date of the task (YYYY-MM-DD). ONLY use `deadlineDate` when the user explicitly specifies a deadline or due date using 'by \[date\]', 'due', 'due by', 'due on', or 'deadline'. To remove a deadline, explicitly pass an empty string `""` for `deadlineDate`. Omit to retain current value. Note: Cannot be set when `updateSeries` is `true`. |
|   ||
| Union field `_recurrence_rule`. `_recurrence_rule` can be only one of the following: ||
| `recurrenceRule` | ``object (`RecurrenceRule`)`` Optional. The new recurrence rule of a recurring task. Omit to keep the existing recurrence rule unmodified. Requires `updateSeries` to be `true`. Can't be used to make a non-recurring task recurring, which isn't supported. |
|   ||
| Union field `_time_zone`. `_time_zone` can be only one of the following: ||
| `timeZone` | `string` Optional. The IANA time zone ID (e.g., `"America/New_York"`, `"UTC"`) used to resolve `scheduledDate`, `scheduledTime`, and `deadlineDate`. Set this to the user's time zone whenever any of these fields is specified. If omitted, the task's existing time zone is retained, or `"UTC"` if it has none. |
|   ||

### RecurrenceRule

| JSON representation |
|---|
| ``` { "dailySchedule": { object (`DailySchedule`) }, "weeklySchedule": { object (`WeeklySchedule`) }, "monthlySchedule": { object (`MonthlySchedule`) }, "yearlySchedule": { object (`YearlySchedule`) }, "endDate": string, "countLimit": integer, "interval": integer } ``` |

| Fields ||
|---|---|
| Union field `schedule`. Specific schedule configuration. Exactly one schedule type must be set. `schedule` can be only one of the following: ||
| `dailySchedule` | ``object (`DailySchedule`)`` Daily schedule options. Set to an empty object (`{}`) to repeat the task every `interval` days. |
| `weeklySchedule` | ``object (`WeeklySchedule`)`` Weekly schedule options. |
| `monthlySchedule` | ``object (`MonthlySchedule`)`` Monthly schedule options. |
| `yearlySchedule` | ``object (`YearlySchedule`)`` Yearly schedule options. Set to an empty object (`{}`) to repeat the task every `interval` years on the month and day of its `scheduledDate`. |
|   ||
| Union field `end_condition`. Optional condition that specifies where the recurrence ends. `end_condition` can be only one of the following: ||
| `endDate` | `string` Optional. End date of the recurrence (YYYY-MM-DD). |
| `countLimit` | `integer` Optional. Number of occurrences before the recurrence ends. |
|   ||
| Union field `_interval`. `_interval` can be only one of the following: ||
| `interval` | `integer` Optional. Number of schedule units (days, weeks, months, or years) between occurrences. For example, 2 with `weeklySchedule` means every 2 weeks. Default is 1. |
|   ||

### WeeklySchedule

| JSON representation |
|---|
| ``` { "daysOfWeek": [ enum (`DayOfWeek`) ] } ``` |

| Fields ||
|---|---|
| `daysOfWeek[]` | ``enum (`DayOfWeek`)`` Required. Days of the week this task occurs on (e.g., `["MONDAY", "WEDNESDAY"]`, or `["MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY"]` for weekdays only). Must not be empty. |

### MonthlySchedule

| JSON representation |
|---|
| ``` { "dayOfMonth": integer, "monthlyDayOfWeek": { object (`MonthlyDayOfWeek`) } } ``` |

| Fields ||
|---|---|
| Union field `monthly_type`. Monthly schedule specification. Exactly one monthly rule must be set. `monthly_type` can be only one of the following: ||
| `dayOfMonth` | `integer` Optional. Specific day of the month (1 to 31, or -1 for last day of month). |
| `monthlyDayOfWeek` | ``object (`MonthlyDayOfWeek`)`` Relative day of week in month (e.g. 3rd Tuesday). |
|   ||

### MonthlyDayOfWeek

| JSON representation |
|---|
| ``` { "weekNumber": integer, "dayOfWeek": enum (`DayOfWeek`) } ``` |

| Fields ||
|---|---|
| `weekNumber` | `integer` Required. Week of the month: 1 for 1st, 2 for 2nd, 3 for 3rd, 4 for 4th, -1 for last. |
| `dayOfWeek` | ``enum (`DayOfWeek`)`` Required. Day of week (e.g., `"TUESDAY"`). |

### Attachment

| JSON representation |
|---|
| ``` { "attachmentId": string, "driveAttachment": { object (`DriveAttachment`) } } ``` |

| Fields ||
|---|---|
| `attachmentId` | `string` Output only. Unique ID of the attachment on a task. Scoped to that task (the same resource attached to multiple tasks may have different IDs). Use this ID in `removedAttachmentIds` to remove the attachment. Ignored when adding attachments. |
| Union field `attachment`. The attached resource. `attachment` can be only one of the following: ||
| `driveAttachment` | ``object (`DriveAttachment`)`` A Google Drive file attached to the task. |
|   ||

### DriveAttachment

| JSON representation |
|---|
| ``` { "mimeType": string, "fileUrl": string } ``` |

| Fields ||
|---|---|
| `mimeType` | `string` Output only. MIME type of the attached file (e.g., `"application/vnd.google-apps.document"` or `"application/pdf"`). May be empty if unknown. Ignored when adding attachments. |
| Union field `_file_url`. `_file_url` can be only one of the following: ||
| `fileUrl` | `string` Required. The Google Drive URL of the attached file (docs.google.com or drive.google.com). Folders are not supported. |
|   ||

### DayOfWeek

Represents a day of the week.

| Enums ||
|---|---|
| `DAY_OF_WEEK_UNSPECIFIED` | The day of the week is unspecified. |
| `MONDAY` | Monday |
| `TUESDAY` | Tuesday |
| `WEDNESDAY` | Wednesday |
| `THURSDAY` | Thursday |
| `FRIDAY` | Friday |
| `SATURDAY` | Saturday |
| `SUNDAY` | Sunday |

## Output Schema

Represents a task.

### Task

| JSON representation |
|---|
| ``` { "id": string, "lastModified": string, "attachments": [ { object (`Attachment`) } ], "taskListId": string, "title": string, "description": string, "completed": boolean, "deleted": boolean, "scheduledDate": string, "scheduledTime": string, "deadlineDate": string, "recurrenceRule": { object (`RecurrenceRule`) }, "link": string, "timeZone": string, "assignmentInfo": { object (`AssignmentInfo`) }, "parentTaskId": string, "position": integer } ``` |

| Fields ||
|---|---|
| `id` | `string` Output only. Unique ID of the task. Task IDs are not interchangeable with those of the Google Tasks REST API. |
| `lastModified` | `string` Output only. ISO 8601 last modified timestamp in UTC (e.g. `2026-08-19T10:00:00Z`). |
| `attachments[]` | ``object (`Attachment`)`` Output only. Attachments on the task. Currently, only Google Drive files are returned. |
| Union field `_task_list_id`. `_task_list_id` can be only one of the following: ||
| `taskListId` | `string` Optional. ID of the task list that this task belongs to. |
|   ||
| Union field `_title`. `_title` can be only one of the following: ||
| `title` | `string` Optional. Title of the task. May contain URLs. Empty if the task has no title. |
|   ||
| Union field `_description`. `_description` can be only one of the following: ||
| `description` | `string` Optional. Description or notes for the task. May contain URLs. |
|   ||
| Union field `_completed`. `_completed` can be only one of the following: ||
| `completed` | `boolean` Optional. Whether the task is completed. |
|   ||
| Union field `_deleted`. `_deleted` can be only one of the following: ||
| `deleted` | `boolean` Optional. Whether the task is deleted. |
|   ||
| Union field `_scheduled_date`. `_scheduled_date` can be only one of the following: ||
| `scheduledDate` | `string` Optional. Scheduled date of the task (YYYY-MM-DD). |
|   ||
| Union field `_scheduled_time`. `_scheduled_time` can be only one of the following: ||
| `scheduledTime` | `string` Optional. Scheduled time of the task (HH:MM:SS) in ISO 8601 extended format. |
|   ||
| Union field `_deadline_date`. `_deadline_date` can be only one of the following: ||
| `deadlineDate` | `string` Optional. Deadline date of the task (YYYY-MM-DD). |
|   ||
| Union field `_recurrence_rule`. `_recurrence_rule` can be only one of the following: ||
| `recurrenceRule` | ``object (`RecurrenceRule`)`` Optional. Recurrence rule describing the recurrence schedule for this task. |
|   ||
| Union field `_link`. `_link` can be only one of the following: ||
| `link` | `string` Output only. Web link to view the task in the Google Tasks web UI. |
|   ||
| Union field `_time_zone`. `_time_zone` can be only one of the following: ||
| `timeZone` | `string` Output only. The IANA time zone ID (e.g., `"America/New_York"`, `"UTC"`) of the task. |
|   ||
| Union field `_assignment_info`. `_assignment_info` can be only one of the following: ||
| `assignmentInfo` | ``object (`AssignmentInfo`)`` Output only. How the task is shared with others. Unset if the task is not shared. Changes to shared tasks are visible to other people. |
|   ||
| Union field `_parent_task_id`. `_parent_task_id` can be only one of the following: ||
| `parentTaskId` | `string` Output only. ID of the parent task if this task is a subtask. Unset for top-level tasks. Only returned by `list_tasks`. Unset if the task isn't shown in the task list, e.g. deleted tasks and completed tasks that are no longer shown. |
|   ||
| Union field `_position`. `_position` can be only one of the following: ||
| `position` | `integer` Output only. 0-based position of the task among its siblings in the user's custom order of the task list ("My order" in the Google Tasks apps): the task with position `0` is at the top. Siblings are the top-level tasks of the task list, or the subtasks of the same `parentTaskId`. Sort the siblings by `position` to get their order. Positions may have gaps for tasks that aren't returned, e.g. completed tasks or tasks on other pages. Only returned by `list_tasks`. Unset if the task isn't shown in the task list, e.g. deleted tasks and completed tasks that are no longer shown. |
|   ||

### RecurrenceRule

| JSON representation |
|---|
| ``` { "dailySchedule": { object (`DailySchedule`) }, "weeklySchedule": { object (`WeeklySchedule`) }, "monthlySchedule": { object (`MonthlySchedule`) }, "yearlySchedule": { object (`YearlySchedule`) }, "endDate": string, "countLimit": integer, "interval": integer } ``` |

| Fields ||
|---|---|
| Union field `schedule`. Specific schedule configuration. Exactly one schedule type must be set. `schedule` can be only one of the following: ||
| `dailySchedule` | ``object (`DailySchedule`)`` Daily schedule options. Set to an empty object (`{}`) to repeat the task every `interval` days. |
| `weeklySchedule` | ``object (`WeeklySchedule`)`` Weekly schedule options. |
| `monthlySchedule` | ``object (`MonthlySchedule`)`` Monthly schedule options. |
| `yearlySchedule` | ``object (`YearlySchedule`)`` Yearly schedule options. Set to an empty object (`{}`) to repeat the task every `interval` years on the month and day of its `scheduledDate`. |
|   ||
| Union field `end_condition`. Optional condition that specifies where the recurrence ends. `end_condition` can be only one of the following: ||
| `endDate` | `string` Optional. End date of the recurrence (YYYY-MM-DD). |
| `countLimit` | `integer` Optional. Number of occurrences before the recurrence ends. |
|   ||
| Union field `_interval`. `_interval` can be only one of the following: ||
| `interval` | `integer` Optional. Number of schedule units (days, weeks, months, or years) between occurrences. For example, 2 with `weeklySchedule` means every 2 weeks. Default is 1. |
|   ||

### WeeklySchedule

| JSON representation |
|---|
| ``` { "daysOfWeek": [ enum (`DayOfWeek`) ] } ``` |

| Fields ||
|---|---|
| `daysOfWeek[]` | ``enum (`DayOfWeek`)`` Required. Days of the week this task occurs on (e.g., `["MONDAY", "WEDNESDAY"]`, or `["MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY"]` for weekdays only). Must not be empty. |

### MonthlySchedule

| JSON representation |
|---|
| ``` { "dayOfMonth": integer, "monthlyDayOfWeek": { object (`MonthlyDayOfWeek`) } } ``` |

| Fields ||
|---|---|
| Union field `monthly_type`. Monthly schedule specification. Exactly one monthly rule must be set. `monthly_type` can be only one of the following: ||
| `dayOfMonth` | `integer` Optional. Specific day of the month (1 to 31, or -1 for last day of month). |
| `monthlyDayOfWeek` | ``object (`MonthlyDayOfWeek`)`` Relative day of week in month (e.g. 3rd Tuesday). |
|   ||

### MonthlyDayOfWeek

| JSON representation |
|---|
| ``` { "weekNumber": integer, "dayOfWeek": enum (`DayOfWeek`) } ``` |

| Fields ||
|---|---|
| `weekNumber` | `integer` Required. Week of the month: 1 for 1st, 2 for 2nd, 3 for 3rd, 4 for 4th, -1 for last. |
| `dayOfWeek` | ``enum (`DayOfWeek`)`` Required. Day of week (e.g., `"TUESDAY"`). |

### Attachment

| JSON representation |
|---|
| ``` { "attachmentId": string, "driveAttachment": { object (`DriveAttachment`) } } ``` |

| Fields ||
|---|---|
| `attachmentId` | `string` Output only. Unique ID of the attachment on a task. Scoped to that task (the same resource attached to multiple tasks may have different IDs). Use this ID in `removedAttachmentIds` to remove the attachment. Ignored when adding attachments. |
| Union field `attachment`. The attached resource. `attachment` can be only one of the following: ||
| `driveAttachment` | ``object (`DriveAttachment`)`` A Google Drive file attached to the task. |
|   ||

### DriveAttachment

| JSON representation |
|---|
| ``` { "mimeType": string, "fileUrl": string } ``` |

| Fields ||
|---|---|
| `mimeType` | `string` Output only. MIME type of the attached file (e.g., `"application/vnd.google-apps.document"` or `"application/pdf"`). May be empty if unknown. Ignored when adding attachments. |
| Union field `_file_url`. `_file_url` can be only one of the following: ||
| `fileUrl` | `string` Required. The Google Drive URL of the attached file (docs.google.com or drive.google.com). Folders are not supported. |
|   ||

### AssignmentInfo

| JSON representation |
|---|
| ``` { "surfaceType": enum (`SurfaceType`) } ``` |

| Fields ||
|---|---|
| `surfaceType` | ``enum (`SurfaceType`)`` Output only. The surface the shared task originates from. |

### DayOfWeek

Represents a day of the week.

| Enums ||
|---|---|
| `DAY_OF_WEEK_UNSPECIFIED` | The day of the week is unspecified. |
| `MONDAY` | Monday |
| `TUESDAY` | Tuesday |
| `WEDNESDAY` | Wednesday |
| `THURSDAY` | Thursday |
| `FRIDAY` | Friday |
| `SATURDAY` | Saturday |
| `SUNDAY` | Sunday |

### SurfaceType

The surface the shared task originates from.

| Enums ||
|---|---|
| `SURFACE_TYPE_UNSPECIFIED` | Unspecified surface type. |
| `DOCUMENT` | The task was assigned from a document (e.g., Docs, Sheets, Slides). |
| `SPACE` | The task belongs to a Google Chat space. |

### Tool Annotations


[Tool annotations](https://modelcontextprotocol.io/specification/latest/schema#toolannotations) are sent to MCP clients to describe the basic risk of a given tool. Most clients treat these hints as untrusted, but they can be used to decide when a confirmation prompt might be sent to a user.


Along with the title string, the following boolean hints are defined as follows:

- `readOnlyHint`: If true, the tool doesn't modify its environment. Default: false.
- `destructiveHint`: If true, then the tool can perform destructive actions. If false, then the tool can only perform additive actions. Default: true.
- `idempotentHint`: If true, then calling the tool repeatedly with the same arguments will have no additional effect on its environment. Default: false.
- `openWorldHint`: If true, then the tool can interact with an 'open world' of external entities. If false, then the tool can only interact with internal entities. For example, a web search tool would be open world, while a memory tool would not be open world.

Destructive Hint: ❌ \| Idempotent Hint: ✅ \| Read Only Hint: ❌ \| Open World Hint: ❌

## Authorization Scopes

Requires one of the following OAuth scopes:

- `https://www.googleapis.com/auth/tasks`