Skip to main content
Glama

Get control policy

stack_get_control_policy
Read-only

Get one policy. With agent_id: that agent's own policy (null when it has none) and in_force, the policy that applies to it now (its own, else the default) with its id, revision and source, plus controls_enabled. Without agent_id: the default policy, or a not-found error when there is none. Operator only. 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

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_get_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.

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 readOnly/non-destructive annotations: it states the operator-only access requirement, the null result when an agent has no policy, the not-found error for a missing default, and the 402 CONTROLS_REQUIRED feature-gate behavior including how the owner enables controls (Console, Billing page) and that self-managed installs have all controls features.

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-loads the core action and pairs each mode with its result, with no filler sentences. The telegraphic fragments ("null when it has none", "A controls feature:") make it dense but slightly choppy to parse.

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?

With no output schema, the description correctly carries the return-value burden (id, revision, source, in_force, controls_enabled) and covers error and feature-gate states. Nothing essential for a correct single reference call appears missing.

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 parameter is already documented. The description still adds meaning beyond the schema by explaining that omitting agent_id falls back to the default policy that applies to every agent without its own, and that the response shape differs between the two modes.

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?

Opens with a specific verb+resource ("Get one policy") and immediately splits the two scopes: with agent_id it returns that agent's own policy plus in_force, without agent_id it returns the default policy. The singular "one policy" plus the enumerated return fields distinguish it from list/set/delete siblings in the same family.

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 explicit conditional guidance — supply agent_id to read a specific agent's policy and its effective in_force policy, omit it for the default policy — and notes the not-found case. It does not name an alternative tool (e.g. the list-revisions or list-policies siblings) for enumerating many policies, so the routing guidance is clear but not exhaustive.

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.