Skip to main content
Glama

Deterministic review gate

should_review
Read-onlyIdempotent

Check whether a coding decision is expensive enough to justify an independent review before committing; returns deterministic, LLM-free, advisory guidance from risk, scope, and change details.

Instructions

Deterministic (no LLM, free) check whether a decision is expensive enough to justify review_decision. Advisory only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
summaryNoOne-line description of the change (scanned for keywords).
risk_levelYes
irreversibleNo
trivial_kindNoSet if the change is one of the known-cheap kinds.
decision_typeYes
files_changedNo
modules_touchedNo
changes_db_schemaNo
changes_public_apiNo
includes_migrationNo
security_sensitiveNo
competing_hypothesesNoDebugging: number of plausible root-cause hypotheses still open.
performance_criticalNo
replaces_key_dependencyNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
reasonsYes
should_reviewYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/idempotentHint/openWorldHint=false, so the safety profile is covered. The description adds non-obvious traits beyond them: no LLM call, no cost/latency, and a non-binding (advisory) result. It still doesn't say what the response shape is, though an output schema exists.

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 short sentences, front-loaded with the determinism/cost trait and the purpose; nothing is padded or repeated from the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists so return values need no explanation, but for a 14-parameter decision-gate tool the description is thin on how inputs drive the advisory verdict and on ordering relative to review_decision/record_outcome. Adequate to identify the tool, not to fully define its contract.

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

Parameters2/5

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

With 14 parameters and only 21% schema description coverage, the description must compensate and does not: it never mentions any input, not even that summary is keyword-scanned or how risk_level/trivial_kind shift the verdict. 'Expensive enough' hints at cost-oriented fields (files_changed, modules_touched, irreversible) but gives no mapping.

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+resource: a deterministic gate that checks whether a decision is 'expensive enough' to warrant review. It also names the sibling it gates (review_decision), so an agent can separate it from review_decision and record_outcome without opening either 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?

It clearly positions itself as a pre-step to review_decision ('justify review_decision') and labels itself 'Advisory only', which tells the agent the verdict is a recommendation rather than a hard gate. It does not state an explicit when-not condition or a cost threshold for skipping it.

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

Deploy Server

Other Tools