Skip to main content
Glama

Gate Decide

gate_decide

Apply an operator decision to a run's open gate. Decisions: approved | revised | rejected | auto_approved. Run status transitions: approved/auto_approved → 'approved', revised → 'briefing', rejected → 'rejected'.

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": {
      "decision": "<decision>"
    },
    "name": "gate_decide"
  }
}

Input Schema

NameRequiredDescriptionDefault
runIdNoId of the run whose open gate to decide. runId or run_id is required; runId wins if both are sent.
run_idNoAlias of runId.
payloadNoAny JSON to store with the decision (e.g. revision notes). Send JSON written as a string; plain text is kept as text.
decisionYesapproved or auto_approved sets the run to approved, revised sends it back to briefing, rejected ends it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / decision / description
      Added value: +"approved or auto_approved sets the run to approved, revised sends it back to briefing, rejected ends it."
    • addedInput schema / properties / payload / description
      Added value: +"Any JSON to store with the decision (e.g. revision notes). Send JSON written as a string; plain text is kept as text."
    • addedInput schema / properties / payload / type
      Added value: +"string"
    • addedInput schema / properties / runId / description
      Added value: +"Id of the run whose open gate to decide. runId or run_id is required; runId wins if both are sent."
    • addedInput schema / properties / run_id / description
      Added value: +"Alias of runId."
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations declare readOnlyHint=false and destructiveHint=false, so the mutation profile is partly covered. The description adds real value with the state transition table (approved/auto_approved → approved, revised → briefing, rejected → rejected), but does not state whether transitions are reversible, who may decide, or whether an error occurs when no open gate exists.

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?

Two compact sentences, front-loaded with the action and followed by the decision set and transitions. The transition sentence duplicates part of the decision-enum schema description, a minor redundancy.

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 4-parameter mutation tool with no output schema, the description covers the decision semantics and resulting run states, which is the essential information. Missing are error behavior on missing/locked gates and any notion of required permissions.

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 adds meaning by enumerating the decision values and their downstream effects. It adds nothing about runId/run_id aliasing or payload usage beyond what the schema already documents.

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?

Clear verb+resource: applies a decision to a run's open gate, and names the decision enum. It distinguishes itself from sibling planning/generation tools, though it doesn't explicitly name an alternative tool for reading gate state.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Implied usage is clear — this is how a human/operator resolves a pending gate — but there is no explicit statement of prerequisites (e.g. gate must be open, what happens if no gate is open) or of which sibling to use to inspect the gate first.

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.