Skip to main content
Glama

Set an agent's approvals

set_agent_approvals

Choose the approval policy for the agent's approvals and, per tool, require approval always / never / default (optionally with its own policy). Choose what the agent does once it has asked: flow 'wait' (stops until decided) or 'continue' (the request is recorded and the agent carries on; several can be open in one conversation and decided in any order, the outcome is posted back). A tool the organization locked cannot be turned off or moved to another policy. Policies are created in Governance -> Approvals.

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": {
      "agent_id": "<agent_id>"
    },
    "name": "set_agent_approvals"
  }
}

Input Schema

NameRequiredDescriptionDefault
flowNoWhile a request is waiting: wait (default) or continue; empty = back to wait.
toolsNoPer-tool rules: {"<tool>": {"require": "always"|"never"|"default", "policy_id"?: "<id>", "flow"?: "wait"|"continue"}}; null for a tool removes its rule.
reportNoWith continue, when a request is decided: record (post the outcome) or respond (the agent also reacts); empty = record.
replaceNoTrue = the given tool rules replace all existing ones.
agent_idYesTarget agent's id (from list_agents / create_agent / get_catalog view=agents).
policy_idNoApproval policy id for this agent (from get_agent_approvals); empty = organization default.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / flow
      Added value: +{
      +  "description": "While a request is waiting: wait (default) or continue; empty = back to wait.",
      +  "enum": [
      +    "wait",
      +    "continue",
      +    ""
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / report
      Added value: +{
      +  "description": "With continue, when a request is decided: record (post the outcome) or respond (the agent also reacts); empty = record.",
      +  "enum": [
      +    "record",
      +    "respond",
      +    ""
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / tools / description
      Previous value: -"Per-tool rules: {\"<tool>\": {\"require\": \"always\"|\"never\"|\"default\", \"policy_id\"?: \"<id>\"}}; null for a tool removes its rule."New value: +"Per-tool rules: {\"<tool>\": {\"require\": \"always\"|\"never\"|\"default\", \"policy_id\"?: \"<id>\", \"flow\"?: \"wait\"|\"continue\"}}; null for a tool removes its rule."
  2. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations only state readOnly=false, destructive=false, openWorld=false. Beyond that the description discloses real behavioral traits: org-locked tools cannot be turned off or repointed, 'continue' records the request and lets the agent proceed with multiple concurrently open requests decided in any order and the outcome posted back. It does not say what happens to unmentioned rules when replace is false, but the constraint disclosure is notably richer than the annotations.

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?

Purpose is front-loaded in the first clause, and the sentences carry high information density. The parenthetical restatement of the always/never/default enum duplicates schema content and the long parenthetical about 'continue' makes one sentence run on, but there is little true padding.

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 mutation tool with no output schema and a nested per-tool rules object, the description covers the key risk areas: locked organizational tools, the semantics of asynchronous approval flow, and where policies originate (Governance -> Approvals). It lacks any statement of return value or partial-failure behavior, but nothing essential for correct invocation is missing.

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 coverage is 100%, so all six parameters including the nested tools object are documented in the schema itself. The description adds meaning for the flow enum (what 'continue' actually does with open requests and outcomes), which the one-line schema description does not convey, but it does not expand on replace, policy_id, or report beyond the schema text — so baseline 3 with a small lift.

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 opens with a specific verb+resource: choosing the approval policy for an agent's approvals, with per-tool rules (always/never/default). That is clearly a write/configuration operation and distinguishable from the read counterpart get_agent_approvals, though it never names that sibling explicitly.

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?

Guidance is about configuration choices (which flow mode to pick, whether a tool is locked) rather than about when to call this tool versus alternatives such as get_agent_approvals or set_governance_policies. Usage is strongly implied by the tool name and the

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.

Resources