Skip to main content
Glama

gate

Read-only

Evaluates a branch against its base using built-in git, workflow, lockfile, and branch-overlap rules, returning one pass, warn, fail, or error verdict with audit evidence for pre-review checks.

Instructions

suite-gate: one verdict (pass, warn, fail or error) for ref against base, from the built-in rules: git-surface always, trust-path when workflows changed, release-drift for each changed lockfile (queries registries), git-overlap against the other local branches. Returns every tool's audit result with its evidence.

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": {
      "repo": "<repo>",
      "base": "<base>",
      "ref": "<ref>"
    },
    "name": "gate"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYesBranch to judge
baseYesBase branch, e.g. main
repoYesRepository directory
forgeNoWhose workflow rules trust-path applies (default github; gitea and forgejo need trust-path 0.9.0 or later)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint; the description adds real context beyond that by disclosing the four verdict values, the conditional rule set, that release-drift queries registries (the source of the open-world behavior), and that results include each tool's audit result plus evidence. It does not mention latency or failure modes when a registry is unreachable, which keeps it from a 5.

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?

A single front-loaded sentence that leads with the tool's identity and the verdict it returns, then lists rules. It is dense and slightly run-on, but every clause carries information and there is no filler.

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?

With four parameters fully documented and no output schema, the description supplies what an agent still needs: the verdict vocabulary, the aggregate return shape (every tool's audit result with evidence), and the conditional rules. Only the behavior of the registry queries in degraded conditions is left unaddressed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so ref, base, repo and the forge enum are already fully documented in the schema. The description reinforces the ref-against-base framing and the forge-dependent trust-path requirement, but adds no syntax, format, or default detail beyond the structured fields — baseline 3 applies.

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?

Names a specific verb and resource: produces one verdict (pass, warn, fail or error) for ref against base. It then enumerates exactly which built-in rules contribute (git-surface, trust-path, release-drift, git-overlap) and under what conditions, which distinguishes it from the individual sibling tools it aggregates.

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?

The conditional rule activation (trust-path only when workflows changed, release-drift per changed lockfile) gives an agent clear context for what the gate will and won't check. It stops short of explicitly saying 'prefer this over calling git_surface/trust_path separately' or when not to use it, so the routing guidance is implied rather than stated.

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