Skip to main content
Glama

Set control mode

stack_set_control_mode
Destructive

Choose who decides the account's agents' actions: hosted, STACK's hosted controls (needs controls on, else CONTROLS_NOT_ENABLED), or none, no check at all. Your own decision address is switched on by stack_verify_control_address. Choosing none always needs approval, also while controls are off (the choice outlives that state); so does leaving your own server for hosted. Switching from none to hosted applies at once. Operator only. This needs the person to approve it in their browser, never in the chat: the call fails with GOVERNANCE_APPROVAL_REQUIRED, approval_id and approval_url, the page where they approve that one change, and the same call sent with governance_approval_id after approval applies it. An approval is single-use, bound to the exact request, and expires after 24 hours. Returns the socket.

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": {
      "mode": "<mode>"
    },
    "name": "stack_set_control_mode"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYes
governance_approval_idNoApproval id (gvr_*) from a GOVERNANCE_APPROVAL_REQUIRED response, once the person approved it in their browser

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the destructiveHint=true annotation, the description discloses the approval flow end to end: GOVERNANCE_APPROVAL_REQUIRED with approval_id and approval_url, the retry with governance_approval_id, single-use binding, 24-hour expiry, and which transitions require approval even while controls are off. It also distinguishes immediate vs. delayed application, which is exactly the behavioural detail annotations cannot carry.

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?

Almost every sentence carries operational information and the mode choice is front-loaded, but the prose is dense and run-on, with awkward fragments like 'so does leaving your own server for hosted' and an unexplained closing 'Returns the socket.' Minor restructuring would improve scannability.

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 destructive, approval-gated mutation with no output schema, the description covers error codes, approval lifecycle, prerequisites and application timing thoroughly. The one gap is the return value: 'Returns the socket' is unexplained, leaving the agent unsure what the response contains beyond a socket reference (a stack_get_control_socket sibling exists, which mitigates this).

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

Parameters5/5

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

Schema coverage is only 50%, but the description compensates by giving the semantic weight of each mode value (hosted = STACK's hosted controls, needs controls on; none = no check, always needs approval) and by explaining governance_approval_id's origin and use in the flow. This goes well past the bare enum and field description.

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 opening sentence names a specific verb (choose/set) and resource (who decides the account's agents' actions), and enumerates the two modes with their meanings. It clearly is not one of the other control-settings siblings, though it does not explicitly name which sibling handles adjacent concerns.

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?

It states prerequisites (hosted requires controls on, otherwise CONTROLS_NOT_ENABLED; your own decision address must first be verified via stack_verify_control_address) and the operator-only restriction, which give real when-to-use context. It stops short of explicit exclusions or pointing to alternatives for related settings.

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.