Skip to main content
Glama

Replace fleet policy

stack_revise_fleet
Destructive

Replace a fleet policy with a new revision. expected_revision must match the current revision. The change requires operator approval. When human approval is required and the chat client supports MCP elicitation, the person is asked to confirm the exact change in the client; the change is applied only after they approve, and a rejection changes nothing. Otherwise it returns GOVERNANCE_APPROVAL_REQUIRED with approval_id and approval_url, the page for that one approval, and the same payload sent with governance_approval_id after approval applies the change. An approval is single-use, bound to the exact payload, and expires after 24 hours. A repeated call with the same idempotency key applies the change once. A controls feature: with controls off the API answers 402 CONTROLS_REQUIRED, and the owner switches controls on in the Console, at the Billing page. A self-managed install has every controls feature.

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>",
      "policy": "<policy>",
      "expected_revision": "<expected_revision>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "stack_revise_fleet"
  }
}

Input Schema

NameRequiredDescriptionDefault
policyYes
policy_idYes
idempotency_keyYes
expected_revisionYes
governance_approval_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, and the description goes well past them: the approval/elicitation path, the GOVERNANCE_APPROVAL_REQUIRED fallback with approval_id and approval_url, single-use payload-bound approvals with a 24-hour expiry, idempotency-key deduplication, and the 402 CONTROLS_REQUIRED failure with its Console remedy. This is exactly the behavioral context an agent needs before attempting a destructive call.

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?

Dense but nearly every sentence carries distinct operational meaning, and the concurrency constraint is front-loaded before the approval mechanics. The transition into the controls-feature paragraph is awkwardly phrased ('A controls feature: with controls off...'), and long run-on sentences reduce scannability.

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

Completeness5/5

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

For a destructive, nested-payload mutation with no output schema, the description covers the approval lifecycle, retry/idempotency semantics, and the entitlement failure mode and its remedy. An agent has enough to attempt the call and to interpret both the success and approval-required paths.

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?

Schema description coverage is 0%, so the description must carry the burden, and it does for three of five parameters: expected_revision (must match current), idempotency_key (same key applies once), and governance_approval_id (same payload re-sent after approval). It says nothing about policy_id or the large nested policy object, leaving the core payload shape entirely to the schema's structural constraints.

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 and resource: 'Replace a fleet policy with a new revision', which is enough to distinguish it from read-only siblings like stack_get_fleet or stack_get_control_policy. It never names an alternative tool, but the mutation-plus-revision-bump framing is unambiguous.

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?

Preconditions are stated explicitly: expected_revision must match the current revision, operator approval is required, and controls must be enabled. What's missing is routing guidance, e.g. that stack_simulate_control_policy should be run first to preview, or when to prefer this over a non-fleet policy tool.

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.