Skip to main content
Glama

astrea_tarefa_etiquetar_aplicar

Aplica ou remove etiquetas (tags) em TAREFAS do Astrea — uma ou várias tarefas numa só chamada. Use para classificar/priorizar tarefas (ex.: marcar "URGÊNCIA" nas atrasadas) ou restaurar etiquetas. Para etiquetar PROCESSOS use astrea_etiquetar.

  • action "aplicar" adiciona as etiquetas às tarefas; "remover" tira (sem apagar a etiqueta em si). As etiquetas já presentes são mantidas.

  • task_ids: ids das tarefas (ver astrea_agenda_global, astrea_agenda ou astrea_tarefa_criar); NÃO precisa de case_id.

  • tag_ids: ids das etiquetas (ver astrea_etiquetas; a etiqueta precisa permitir TASKS em restrictions). Roda tarefa por tarefa; num lote grande pode voltar "truncado" com a lista "pendentes" — chame de novo só com elas. Falha numa tarefa não impede as outras (veja "tarefas[].ok").

[Flattened action: aplicar]

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tag_idsYes
task_idsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the annotations, the description discloses that tags already present are preserved, that removing a tag does not delete the tag itself, that tagging runs task by task, that large batches may be truncated and return a pending list, and that one task's failure does not stop the others. These are exactly the behavioral traits an agent needs for safe invocation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The structure is front-loaded and bulleted, so it is easy to scan. It is slightly bloated by covering both aplicar and remover and by including the flattened-action metadata, which adds ambiguity rather than value.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a batch mutation tool with no output schema, the description supplies strong context about sources, batching, truncation, and partial failure. It is weakened by the mismatch between the described action parameter and the actual schema, which only contains task_ids and tag_ids.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must carry parameter meaning, and it does: task_ids are task IDs obtained from agenda/task creation tools and do not require case_id; tag_ids are tag IDs from astrea_etiquetas and the tag must allow TASKS in restrictions. Both parameters are therefore fully explained.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific resource (TAREFAS) and operation (apply/remove tags), and distinguishes task tagging from process tagging by naming astrea_etiquetar. However, it also covers removal despite the tool name being _aplicar, mentions an action parameter that is absent from the schema, and does not clearly distinguish itself from the sibling astrea_tarefa_etiquetar_remover.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives clear usage examples (classify/prioritize overdue tasks, restore tags) and an explicit alternative for processes (astrea_etiquetar). It also points to where task_ids and tag_ids come from. The main gap is that it does not clearly route removal calls to the sibling removal tool or reconcile the missing action parameter.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.