Skip to main content
Glama
lm203688

SwarmLabs MCP Server

gate_decision

Evaluates a scenario's trust state, returning a gate decision (proceed, proceed with human check, or block autonomous action) and exit code.

Instructions

Static gate decision: what is the current trust state of a scenario? Returns gate (PROCEED / PROCEED_WITH_HUMAN_CHECK / BLOCK_AUTONOMOUS_ACTION) and exit_code. Omit scenario_key for the whole ledger summary.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scenario_keyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.2

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses the return shape (gate values PROCEED / PROCEED_WITH_HUMAN_CHECK / BLOCK_AUTONOMOUS_ACTION plus exit_code) and the word 'static' hints at a non-mutating read, but it never states read-only behavior, permissions, or side effects explicitly.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, zero filler, front-loaded with the purpose and followed by the return values and the parameter rule. Every clause earns its place.

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?

There is no output schema and no annotations, so the description is right to spell out the returned gate values and exit_code, and it covers the one parameter's omission behavior. It is nearly complete for a simple read tool; only explicit read-only/side-effect disclosure is 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?

With 0% schema description coverage and one parameter, the description must compensate, and it does: it explains that scenario_key selects a single scenario and that omitting it returns the whole ledger summary. That is meaningful semantics the bare string schema does not convey.

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?

States a specific operation on a specific resource: the current trust state / gate decision of a scenario. The enumerated return values make the tool's output concrete. It does not explicitly contrast itself with siblings like verify_prediction or list_scenarios, so it stops short of 5.

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?

The description gives one clear usage rule: omit scenario_key to get the whole ledger summary rather than a single scenario. That is useful context, but it never says when to choose this tool over verify_prediction or ledger_provenance, so guidance is implied rather than explicit.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.