Skip to main content
Glama

update_approval_policy

Idempotent

Update an approval policy's name, description, or approval stages, or deactivate it with is_active set to false. Use it to keep approval workflows current without creating a new policy.

Instructions

Update name/description/stages or deactivate (is_active: false)

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "policy_id": "<policy_id>"
    },
    "name": "update_approval_policy"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoNew name
stagesNoNew approval stages
is_activeNofalse deactivates the policy
policy_idYesPolicy UUID
descriptionNoNew description

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changedv2.2.4
    • changedInput schema / properties / description / description
      Previous value: -"Nova descrição"New value: +"New description"
    • changedInput schema / properties / is_active / description
      Previous value: -"false = desativar política"New value: +"false deactivates the policy"
    • changedInput schema / properties / name / description
      Previous value: -"Novo nome"New value: +"New name"
    • changedInput schema / properties / policy_id / description
      Previous value: -"UUID da política"New value: +"Policy UUID"
    • changedInput schema / properties / stages / description
      Previous value: -"Novos estágios"New value: +"New approval stages"
    • changedInput schema / properties / stages / items / properties / approvers / description
      Previous value: -"Quem pode aprovar neste estágio"New value: +"Who can approve this stage"
    • changedInput schema / properties / stages / items / properties / approvers / items / properties / id / description
      Previous value: -"UUID do usuário (obrigatório se type=user)"New value: +"User UUID; required when type=user"
    • changedInput schema / properties / stages / items / properties / approvers / items / properties / role / description
      Previous value: -"Role (obrigatório se type=role)"New value: +"Role; required when type=role"
    • changedInput schema / properties / stages / items / properties / approvers / items / properties / type / description
      Previous value: -"user = usuário específico; role = todos com o role"New value: +"user identifies a specific user; role includes all users with that role"
    • changedInput schema / properties / stages / items / properties / min_approvals / description
      Previous value: -"Aprovações mínimas (default 1)"New value: +"Minimum approvals; defaults to 1"
  2. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, and destructiveHint=false, so the mutation and safety profile is covered. The description's only behavioral addition is that `is_active: false` deactivates the policy, which the input schema already says verbatim. Unresolved behavioral questions remain: whether `stages` is a full replacement or a merge, and whether omitted fields are left untouched (PATCH vs PUT semantics).

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?

A single front-loaded fragment with zero filler, so nothing is wasted. It is terse to the point of being telegraphic and lacks a subject or scope statement, which keeps it from being exemplary.

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?

With 100% schema coverage, existing annotations, and no output schema, the description covers the essential job of a 5-parameter mutation tool. The remaining gap is update semantics for `stages` and omitted fields, which matters for a policy-editing tool but is a refinement rather than a blocker.

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

Parameters3/5

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

Schema description coverage is 100%, so every parameter including nested approvers, min_approvals, and policy_id is already documented in the schema. The description only restates the field names, adding no meaning beyond the structured data. Baseline 3 applies when the schema does the heavy lifting.

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 names a specific verb ('Update') plus the resource implied by the tool name and explicitly enumerates the mutable fields (name, description, stages, is_active). An agent can distinguish this from create_/get_/list_approval_policy siblings without opening the schema. It stops short of a full sentence or explicit sibling differentiation.

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

Usage Guidelines3/5

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

Usage is only implied: the mention of `is_active: false` hints that deactivation is a soft alternative to deletion, but the description never states when to call this versus create_approval_policy, get_approval_policy, or a delete/archive tool. No prerequisites such as permission requirements are given.

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

Deploy Server

Other Tools