Skip to main content
Glama

Check Gate

check_gate

Ask whether this identity should be allowed to take the action named by the gate, right now. Returns verdict (allow, review, or deny), the matched rule or null when the default applied, mode, scores, badges, and evaluatedAt. dry_run returns verdict allow and wouldBe set to the real verdict. Scores are the stored full-analysis 0-100 category scores, not the Authenticity Check tool, which runs a different pass. A null score means not analyzed yet. context is logged and does not affect the verdict. An unknown identity fails as not found. An unknown slug fails with gate_not_found. If this call cannot evaluate the gate (unknown gate, unknown identity, operations quota, or an error), fail open or fail closed is the caller's explicit choice based on how sensitive the action is. A sensitive action that grants value can proceed only on verdict allow. A low-risk action can proceed when there is no verdict and stop on deny. The call counts as an operation. Over the monthly operations quota it fails with the operations quota message and is not logged. It does not change the gate.

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": {
      "id": "<id>",
      "gate": "<gate>"
    },
    "name": "check_gate"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesIdentity id.
gateYesGate slug, for example grant_trial_credits.
contextNoOptional context stored on the check log only. At most 100 fields.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior5/5

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

Annotations only declare readOnly=false, destructive=false, idempotent=false; the description goes well beyond them by disclosing that every call counts as an operation, that over-quota calls fail with a quota message and are not logged, and that the gate itself is not modified. Failure modes are enumerated precisely: unknown identity is 'not found', unknown slug is 'gate_not_found'. The dry_run clause is confused, but overall the behavioral disclosure is unusually rich.

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

Conciseness3/5

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

The front-loaded return summary (verdict, matched rule, mode, scores, badges, evaluatedAt) is well placed, but the body is a dense run-on of failure modes, quota rules, and a stray dry_run aside with no paragraph or list structure. Most sentences carry information, yet the lack of organization makes it harder to scan than its length alone would.

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 no output schema, the description correctly takes on the burden of naming return fields and does so. It also covers error cases and quota behavior, which is what an agent needs before a decision call. It still leaves 'mode', 'badges', and 'scores' undefined at the item level and contains the orphaned dry_run reference.

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 the baseline is 3, and the description does add meaning: context is logged only and never affects the verdict, and unknown identity/slug produce distinct errors. However, it references a 'dry_run' parameter with a 'wouldBe' field that does not exist anywhere in the input schema or an output schema, which muddies rather than clarifies parameter semantics.

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?

The description opens with a specific verb-plus-resource framing: ask whether an identity may take the action named by a gate, evaluated 'right now'. It also explicitly separates itself from the Authenticity Check tool's scoring pass, which a sibling-name-only listing would not convey. It does not distinguish itself from get_gate or list_gate_checks, so it falls short of a 5.

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 gives real decision guidance: a sensitive value-granting action may proceed only on verdict allow, while a low-risk action may proceed when no verdict exists and stop only on deny. It also states the caller owns the fail-open/fail-closed choice. What it lacks is explicit routing among sibling gate tools (e.g., when to use this versus list_gate_checks).

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.