Skip to main content
Glama

create_approval_policy

Create an approval policy by defining stages and assigning approvers as specific users or roles, so workflows route approvals to the right people.

Instructions

Create a policy. stages[].approvers accepts {type:"user", id} or {type:"role", role}

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": {
      "name": "<name>",
      "stages": "<stages>"
    },
    "name": "create_approval_policy"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesPolicy name
stagesYesApproval stages; currently one stage with min_approvals=1
descriptionNoDescription

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv2.2.4
    • changedInput schema / properties / description / description
      Previous value: -"Descrição"New value: +"Description"
    • changedInput schema / properties / name / description
      Previous value: -"Nome da política"New value: +"Policy name"
    • changedInput schema / properties / stages / description
      Previous value: -"Estágios de aprovação (v1: 1 estágio, min_approvals=1)"New value: +"Approval stages; currently one stage with min_approvals=1"
    • 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

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false and openWorldHint=false, so the safety profile is covered. The description adds only the approver union shape and says nothing about creation semantics, uniqueness of names, or the one-stage limitation hinted at in the schema.

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?

Two short sentences with the action first and the nested-parameter hint second; nothing is wasted, though the opening sentence is minimal to the point of terseness.

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

Completeness3/5

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

For a 3-parameter create tool with full schema coverage and no output schema, the definition is adequate but thin: it never says what a successful call returns or that only a single stage with min_approvals=1 is currently supported.

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 the schema already documents name, stages, approvers, type/id/role, and min_approvals. The description restates the approver union, which is redundant rather than additive; the high-coverage baseline of 3 applies.

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?

"Create a policy" gives a clear verb plus resource, and the name create_approval_policy makes the object concrete. It doesn't differentiate itself from sibling creators like create_secret or create_trigger beyond the resource noun, so it stops short of a 5.

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

Usage Guidelines2/5

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

There is no guidance on when to use this versus update_approval_policy or get_approval_policy, no stated prerequisites, and no note about what happens if a policy with the same name exists.

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