Skip to main content
Glama

Set what happens when the decision server does not answer

stack_set_control_on_unavailable
Destructive

Set what happens when your own decision server does not answer in time: refuse (default: the action is refused, 403 CONTROL_SOCKET_UNAVAILABLE) or allow (the action goes through, and the decision records why). Only an answer that never came follows it (no answer in time, unreachable, a non-200 answer, a busy server or an open breaker); a forged or garbled answer, a blocked address and a server that is not verified or paused are refused whatever it says. allow loosens a control and needs approval; refuse 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": {
      "on_unavailable": "<on_unavailable>"
    },
    "name": "stack_set_control_on_unavailable"
  }
}

Input Schema

NameRequiredDescriptionDefault
on_unavailableYesrefuse or allow
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.7/5.0
Behavior5/5

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

Annotations only give destructiveHint=true and readOnlyHint=false; the description goes well beyond them by explaining that allow loosens a control and requires approval while refuse applies immediately, and by disclosing the 403 error code, the GOVERNANCE_APPROVAL_REQUIRED failure shape with approval_id/approval_url, single-use binding, and the 24-hour expiry. This is the kind of out-of-band behavioral context 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.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded and no sentence is pure filler, but the body is a single dense run-on paragraph with nested parentheticals and semicolon chains that are harder to scan than a short list. The trailing 'Returns the socket.' is abrupt and adds little without elaboration.

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 two-parameter mutation with no output schema, the description covers the critical operational flow (approval, retry, expiry, error code) thoroughly. The only shortfall is the vague 'Returns the socket', which leaves the return value undefined even though no output schema exists to compensate.

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 100% so the baseline would be 3, but the description adds real meaning to both parameters: it spells out the operational consequence of each enum value rather than the schema's terse 'refuse or allow', and it explains that governance_approval_id must come from a prior GOVERNANCE_APPROVAL_REQUIRED response after browser approval and that the same call is then re-sent.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a precise verb and resource: it sets the fail-mode of the control socket when the operator's own decision server fails to answer, and enumerates both outcomes (refuse → 403 CONTROL_SOCKET_UNAVAILABLE, allow → action proceeds and is recorded). This is clearly distinguishable from siblings such as stack_set_control_decision_address or stack_set_control_mode, which configure addressing and mode rather than failure behavior.

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

Usage Guidelines5/5

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

Explicitly delimits when each value applies by listing exactly which failures fall under the setting (no answer in time, unreachable, non-200, busy server, open breaker) and which do not (forged/garbled answer, blocked address, unverified or paused server). It also states eligibility (operator only) and the approval prerequisite, leaving nothing to inference.

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.