Skip to main content
Glama

Activate fleet policy

stack_activate_fleet

Create a fleet policy that sets the connections, actions and limits a fleet may use. Activation 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 does not create a second policy. 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": "<policy>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "stack_activate_fleet"
  }
}

Input Schema

NameRequiredDescriptionDefault
policyYes
idempotency_keyYes
governance_approval_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Beyond the annotations (which only say non-read-only, non-destructive, closed-world), the description discloses that operator approval is mandatory, that approval is single-use and payload-bound, that it expires in 24 hours, that idempotency prevents duplicate policies, and that a 402 CONTROLS_REQUIRED can occur with a pointer to where the owner enables controls. This is unusually rich and matches the non-destructive write annotation without contradiction.

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 and nearly every sentence carries behavioral information that cannot be inferred elsewhere. The main cost is a dense, unsegmented paragraph with an awkward clause ('A controls feature: with controls off...') that makes the approval flow harder to scan than it needs to be.

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?

Approval lifecycle and error handling are thoroughly documented and there is no output schema to explain, which covers the hardest part. However, for a tool whose sole required input is a large nested policy document, the absence of any description of that document's semantics leaves a meaningful gap for correct invocation.

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 0% and the policy object is deeply nested, yet the description adds real meaning only for idempotency_key (dedupe) and governance_approval_id (retry token). The entire policy payload — name, limits, window_seconds, max_members, rules, identity_lease_seconds — is left to bare schema property names with no explanation of constraints or intent.

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?

Opening sentence gives a specific verb and resource: create a fleet policy that sets the connections, actions and limits a fleet may use. It is clear what the tool produces, though the name says 'activate' while the description says 'create', and no sibling (e.g. revise_fleet) is named to sharpen the boundary.

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?

Strong procedural guidance covers the two paths an agent can hit: in-client elicitation approval, or a GOVERNANCE_APPROVAL_REQUIRED response that must be retried with governance_approval_id. It never states when to prefer this over sibling mutation tools such as stack_revise_fleet, so it stops short of full alternatives guidance.

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.