Skip to main content
Glama

Simulate control policy

stack_simulate_control_policy
Read-only

Try one call against a policy to see the result before an agent makes it. Name agent_id to try the policy in force for that agent, or give a definition to try a draft instead. Nothing is counted, held or sent, and no money moves. A refusal names the rule that stopped the action and nothing from the call: policy_id, policy_revision, section, rule, code and, for some rules, a detail holding the policy's own side of the comparison (a limit, the size of an allowed list), never a value the call carried. Returns verdict (allow, review or deny), policy (id, revision and source: agent, default or draft), refusal, message, limits (each counter that applies with what is used and remaining), controls_enabled and checked (whether this action kind is checked). 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

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": {
      "call": "<call>"
    },
    "name": "stack_simulate_control_policy"
  }
}

Input Schema

NameRequiredDescriptionDefault
callYesThe call to try: action (an action kind such as email.send or proxy.call), target as a decision request carries it, amount_cents, connection_id, and for proxy.call the request itself (method, url, body, query). mission_id (ms_*) tries the call inside that Mission, so the recipients it names count for a rule whose recipients are set per job. reply_to_message (amsg_*, or an incoming call) tries a send of the account itself (email.send, sms.send or call.start) as answering that stored message, as a live send does; it needs agent_id
agent_idNoThe agent (agt_*) whose policy applies. Ignored when definition is given.
definitionNoA draft policy to try instead of the stored one

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Goes well beyond the annotations: it guarantees nothing is counted, held, sent, or charged, and that a refusal exposes only the policy's own side of a comparison, never a value carried by the call. It also discloses the operator-only restriction, the 402 CONTROLS_REQUIRED failure mode with where the owner enables controls, and that self-managed installs have every controls feature. The annotations only say read-only/non-destructive; this adds real operational context.

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?

Purpose is front-loaded and the mode-selection rule follows immediately. The return-value and refusal-detail sentences are long and dense, but they carry information absent from any output schema, so they earn their place; the single closing sentence about self-managed installs is the least essential.

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 tool with a deeply nested schema and no output schema, the description covers what an agent most needs: what each mode means, safety guarantees, the exact return fields (verdict, policy with source, refusal, limits, controls_enabled, checked), and the controls-off failure path. The only omission is any hint about how this simulates differently from sibling intent/simulation tooling.

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 earns credit by adding cross-parameter semantics the schema cannot express, notably that agent_id is ignored when definition is supplied and that reply_to_message requires agent_id. It does not enumerate the action kinds or per-field formats, but the schema already covers those.

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 description states a specific verb and resource: "Try one call against a policy to see the result before an agent makes it" — an unambiguous dry-run/simulation of a policy decision. It also distinguishes the two modes (agent_id for the live policy, definition for a draft). It does not name or differentiate against the closely-related sibling stack_simulate_intent, which is the one remaining gap.

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?

Use timing is explicit: run it before an agent makes the call. It also states the mode-selection condition (agent_id vs definition, with agent_id ignored when definition is given) and the prerequisite that reply_to_message requires agent_id. No explicit "when not to use this" or named alternative is given, keeping it short of a 5.

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.