Skip to main content
Glama

Start control policy from current access

stack_policy_start_from_current_access

Create a policy for an agent that equals what its connection grants allow today, as the place to start narrowing. It changes no outcome until it is tightened. It fails with a conflict when the agent already has a policy, and with CONTROLS_NOT_ENABLED when controls are off. Starting one that allows more than the default policy now in force counts as a loosening. Operator only. Tightening applies at once. Loosening a policy, and deleting one, 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. The tool never waits or loops for the approval. An approval is single-use, bound to the exact request, and expires after 24 hours. Returns change and the policy.

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": "stack_policy_start_from_current_access"
  }
}

Input Schema

NameRequiredDescriptionDefault
agent_idYesThe agent (agt_*) to start a policy for
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.5/5.0
Behavior5/5

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

Far beyond the annotations: it names the conflict and CONTROLS_NOT_ENABLED failures, explains that the policy has no effect until tightened, and details the out-of-band approval flow — GOVERNANCE_APPROVAL_REQUIRED, approval_url, re-calling with governance_approval_id, no waiting/looping, single-use, request-bound, 24-hour expiry. This is consistent with destructiveHint=false since nothing changes outcome until tightened.

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 most sentences carry real information, but the prose is dense and run-on, with some near-redundancy ('changes no outcome until it is tightened' vs 'tightening applies at once'). It could be tightened into scannable clauses without losing content.

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?

There is no output schema, but the description states the return value ('change and the policy'), and it covers the full operational picture — failure modes, approval lifecycle, permissions, and effect timing — so an agent has everything needed to invoke it correctly.

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 coverage is 100%, so the baseline is 3; the description goes further by explaining where governance_approval_id comes from and that the same call must be re-sent with it after browser approval, which clarifies the parameter's role in the flow rather than just its format.

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?

The opening states a specific verb and resource — create a policy for an agent equal to its current connection grants — plus the intent (a starting point for narrowing). This clearly distinguishes it from sibling tools that set, tighten, or delete a policy.

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 establishes when to use it (bootstrap from today's access, then narrow) and when it will not work (agent already has a policy, controls disabled, operator-only). It doesn't explicitly name sibling alternatives like stack_set_control_policy or stack_delete_control_policy, but the described conditions make the routing inferable.

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.