Skip to main content
Glama

set_prediction_gate

DestructiveIdempotent

Switch the prediction gate on or off for one agent. Required: agent_id, enabled. When on, any tool that CHANGES something is refused until the agent has logged an open episode with a prediction and a confidence; reading, ask_human and the recording tools stay free, and an open episode expires after an hour. Off by default — turn it on for one agent first and look at whether the predictions are worth anything before making it the rule.

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>",
      "enabled": "<enabled>"
    },
    "name": "set_prediction_gate"
  }
}

Input Schema

NameRequiredDescriptionDefault
enabledYesWhether it is enabled
agent_idYesID of the agent

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / agent_id / description
      Added value: +"ID of the agent"
    • addedInput schema / properties / enabled / description
      Added value: +"Whether it is enabled"
  2. 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 annotations: it explains the enforcement consequence (mutating tools are refused until an open episode with a prediction and confidence exists), the exemptions (reading, ask_human, recording tools stay free), the one-hour episode expiry, and the default state. The annotations only declare destructiveHint/idempotentHint; the description supplies the actual semantics an agent needs to predict outcomes.

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?

Requirements are front-loaded in the first two sentences, followed by effects and defaults. The closing evaluative advice is long but earns its place as rollout guidance rather than padding.

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 two-parameter toggle with no output schema, the description covers enforcement scope, carve-outs, expiry, and default state — everything needed to call it correctly and anticipate the result.

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 schema's own text for `enabled` is tautological ('Whether it is enabled') while the description defines what enabling actually does to tool availability. `agent_id` scoping to 'one agent' is also clarified.

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 ('Switch the prediction gate on or off') scoped to a single agent, and names the required inputs. An agent can distinguish this governance control from the sibling `set_*` configuration tools without opening the schema.

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 rollout guidance — off by default, enable for one agent first, evaluate prediction quality before making it the rule. It does not name a sibling as an alternative, but the when-to-use condition is clear and the incremental-adoption advice is actionable.

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.