Skip to main content
Glama

Delete control policy

stack_delete_control_policy
Destructive

Delete a policy, for one agent or, without agent_id, the account's default. The agent then falls back to the default policy, or to no policy, which loosens the controls. 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 delete and policy null.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "stack_delete_control_policy"
  }
}

Input Schema

NameRequiredDescriptionDefault
agent_idNoThe agent (agt_*) whose own policy this is. Omit for the default policy, which applies to every agent account without a policy of its own.
expected_revisionNoThe revision you read; a stale revision fails with a conflict
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.6/5.0
Behavior5/5

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

Goes well beyond the destructiveHint annotation: it names the fallback consequence (agent reverts to the default or to no policy, which loosens controls), the approval gate with its error code, approval_id/approval_url, the resend mechanism, single-use/binding/24-hour expiry, and that the tool never polls. That is exactly the operational context annotations cannot convey.

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?

Front-loaded with the action and scope, then the consequence and approval path. Dense but nearly every clause carries information; the approval paragraph is long but each element (code, fields, retry, expiry) is load-bearing.

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, approval-gated mutation with no output schema, the description covers preconditions, failure mode, recovery path, and return shape, leaving no gap an agent would need to guess at before calling it.

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 baseline is 3, but the description adds real meaning: agent_id omission semantics are restated with consequence, and governance_approval_id is explained as coming from a GOVERNANCE_APPROVAL_REQUIRED response after browser approval. expected_revision is left to the schema, which already documents the conflict behavior.

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 specific verb and resource (delete a policy) and immediately disambiguates scope: 'for one agent or, without agent_id, the account's default.' An agent can tell exactly what is removed and what happens afterwards without consulting siblings.

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?

Gives clear conditions for the optional scope (omit agent_id for the default policy) and the constraint that only operators may call it. It does not explicitly point to stack_set_control_policy or stack_get_control_policy as the alternative when the intent is to change rather than remove a policy.

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.