Lists the organization's task labels (id, name, color, order) in their manual order, to filter tasks (label_id) or set label_ids. Create, edit and delete them with task_management.labels.create, update and delete.
Escopo
task_management:read
Permissão
Ver o módulo
Tool do MCP
task_management_labels_listNa superfície completa; na compacta, mb_execute_operation com id: "task_management.labels.list".
Custo declarado: até 202 leituras e 0 escritas por chamada (contam na cota diária).
Parâmetros
limitintegerqueryopcional
Labels per page (1 to 200; default 200: labels are small and one page usually has them all).
Padrão: 200
cursorstringqueryopcional
The next_cursor of the previous page, to continue the list; omit it for the first page.
Creates a task label (name and an optional #rrggbb color; without it, the next color of the app's palette), at the end of the manual order. Up to 200 labels per organization (409 limit_reached). Returns label_id and the label: use it in label_ids of task_management.tasks.create or update.
Escopo
task_management:write
Permissão
Editar no módulo
Tool do MCP
task_management_labels_createNa superfície completa; na compacta, mb_execute_operation com id: "task_management.labels.create".
Custo declarado: até 1 leituras e 1 escritas por chamada (contam na cota diária).
Parâmetros
namestringcorpoobrigatório
The label's name.
colorstringcorpoopcional
A hex color, #rrggbb (default: the next one of the app's palette).
Renames a task label, changes its color (#rrggbb) or its place in the manual order. Only what is sent changes; the same values change nothing (changed: false). The tasks that carry it keep it. Returns the label.
Escopo
task_management:write
Permissão
Editar no módulo
Tool do MCP
task_management_labels_updateNa superfície completa; na compacta, mb_execute_operation com id: "task_management.labels.update".
Custo declarado: até 1 leituras e 1 escritas por chamada (contam na cota diária).
Parâmetros
label_idstringrotaobrigatório
The label's id (from task_management.labels.list).
Deletes a task label and removes it from every task that carries it (the tasks are not otherwise changed; up to 5,000, more is 409 too_many_labeled_tasks). The label goes to the 30-day trash with the tasks it was on: platform.trash.restore brings it back. Outside the app it requires a dry run (which says how many tasks carry it) and a confirm_token, except a REST DELETE with a key allowed to delete. Returns tasks_unlabeled.
Com uma API key, este DELETE roda direto: o registro fica 30 dias na lixeira e a resposta traz o seu trash_item_id. Com um token OAuth, e pelo MCP, pede dry_run → confirm_token.
Escopo
task_management:writee «Permitir exclusões» (task_management:delete no OAuth)
Permissão
Editar no módulo
Tool do MCP
task_management_labels_deleteNa superfície completa; na compacta, mb_execute_operation com id: "task_management.labels.delete".
Custo declarado: até 5012 leituras e 5002 escritas por chamada (contam na cota diária).
Parâmetros
label_idstringrotaobrigatório
The label's id (from task_management.labels.list).
Resposta
oktrue
tasks_unlabelednumber
trash_item_idstring
The trash item this deletion left: the item_id of platform.trash.restore (POST /trash/{item_id}/restore). Missing if nothing went to the trash.
trash_item_idsarray<string>
Only when the deletion left more than one copy: all of them, the first being trash_item_id.
trash_expires_atnumber
When the copy leaves the trash for good (epoch ms): 30 days after the deletion.