Skip to main content
Glama

guard_update_purpose

Idempotent

Update an existing purpose by creating a draft with only changed fields; other data is preserved. A summary of changes is required. The live version remains until approved.

Instructions

Edita uma finalidade existente como RASCUNHO. Se ela só tem versão publicada, cria um rascunho a partir dela; a publicada continua no ar até a pessoa Liberar a nova na tela do Guard. Mande só os campos que mudam: o resto (outros contextos, pontos de coleta, teste de legítimo interesse) é preservado. resumo é obrigatório: diga o que mudou e por quê, a pessoa lê isso ao revisar. Contextos: law escolhe qual contexto (br/eu) editar; sem law, edita o primeiro. Se a finalidade já tem um rascunho aberto por uma pessoa (ou por outro agente), o agente não mexe: a pessoa precisa liberar ou descartar antes. Exige guard_login com permissão de edição.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesId da finalidade.
lawNoLei do contexto: br (LGPD) ou eu (GDPR). Padrão: br.
scopeNoEscopo: quem são os titulares e onde o dado é coletado.
titleNo
agenteNoNome do agente, aparece para a pessoa na proposta. Ex: "Claude Code".
minorsNoEnvolve dado de criança ou adolescente.
resumoYesO que mudou e por quê. Obrigatório.
rationaleNoJustificativa da base legal escolhida.
sensitiveNoEnvolve dado pessoal sensível (saúde, biometria, religião, origem racial etc).
descriptionNo
legal_basisNo
lia_balanceNoFase 3: balanceamento com as expectativas e direitos da pessoa.
lia_opt_outNoComo a pessoa se opõe ao tratamento. Obrigatório com legítimo interesse.
consent_textNo
lia_interestNoLegítimo interesse, fase 1: qual é o interesse e de quem.
lia_necessityNoFase 2: por que é necessário e não há meio menos invasivo.
lia_conclusionNoConclusão do teste de legítimo interesse.
lia_safeguardsNoSalvaguardas adotadas (minimização, pseudonimização, prazo curto).
retention_daysNoPor quantos dias o dado é guardado.
retention_startsNoA partir de quando a retenção conta (ex: fim do contrato, último acesso).
grouping_identifierNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.9.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations cover the safety profile (readOnlyHint=false, idempotent, non-destructive), yet the description adds substantial context on top: a draft is created from the published version if none exists, the published version stays live until released, unmentioned fields (contexts, collection points, LIA) are preserved, and concurrent drafts block agent edits. That is exactly the kind of concurrency and side-effect disclosure an agent needs.

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?

Front-loaded with the action and its draft semantics, then prerequisites and concurrency caveat. Dense and mostly waste-free, though the description is long and a couple of clauses (context selection, resumo explanation) could be tightened.

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 21-parameter mutation with no output schema, the description covers the essentials an agent needs to call it correctly: auth requirement, partial-update semantics, draft lifecycle, and the human-in-the-loop conflict rule. It does not describe the return value or what happens on validation failure, but no output schema exists and the core decision information is present.

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

Parameters4/5

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

With 21 parameters at 76% schema coverage, the schema carries most of the load, but the description adds a genuinely important semantic the schema alone does not make obvious: partial-update behavior (only send changed fields, everything else preserved). It also clarifies resumo's purpose and the law-based context selection. The remaining 20+ domain fields are left to the schema.

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

Purpose5/5

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

States a precise verb+resource+state: 'Edita uma finalidade existente como RASCUNHO'. It further distinguishes the flow from create_purpose and cancel_purpose_draft by explaining the published-vs-draft relationship, so an agent knows exactly which sibling to pick.

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?

Gives concrete conditions: send only changed fields, a mandatory resumo, and — critically — do not touch a purpose that already has an open draft by a human or another agent. It also names the prerequisite (guard_login with edit permission). It stops short of explicitly naming alternative tools (create_purpose, cancel_purpose_draft) for those cases.

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