Skip to main content
Glama

Gate a server against your rules

gate
Read-onlyIdempotent

Pass or fail for one server against the rules you name (at least one), with every rule it broke: minimum quality or trust, checks that must not fail (e.g. tools.hidden_text), quality or trust flags that must be absent, allowed connection classes, a verified owner, no charge per call. A blocked or deleted listing never passes. Call it before connecting.

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

Input Schema

NameRequiredDescriptionDefault
nameYesOfficial reverse-DNS name
paidNofalse: the server must not charge per call (x402)
classNoConnection classes allowed
no_failNoCheck ids that must not fail, e.g. ['tools.hidden_text', 'stability.rug_pull']
min_trustNo
min_qualityNo
exclude_flagsNo
owner_verifiedNotrue: the owner must have proved the namespace
exclude_quality_flagsNoe.g. ['known-vulns', 'hidden-text']

Output Schema

NameRequiredDescriptionDefault
passYesFalse when any rule broke; a blocked or deleted listing never passes
classYesR0 remote no auth, R1 static secret, R2 OAuth, L0 local package
rulesYes
trustYes
failedYesEvery broken rule with its reason
serverYes
qualityYes
tools_hashYesPin it to notice when the tools change after the gate passed
next_actionsYesFollow-up calls: action is the tool, arguments are ready to pass ({placeholders} are yours to fill)
owner_verifiedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / paid
      Added value: +{
      +  "description": "false: the server must not charge per call (x402)",
      +  "type": "boolean"
      +}
  2. Changed4 schema fields changed
    • changedInput schema / properties / exclude_quality_flags / items / enum
      Previous value: -[
      -  "known-vulns",
      -  "outdated-mcp-sdk",
      -  "hidden-text"
      -]New value: +[
      +  "known-vulns",
      +  "outdated-mcp-sdk",
      +  "hidden-text",
      +  "tool-poisoning"
      +]
    • changedInput schema / properties / exclude_quality_flags / maxItems
      Previous value: -3New value: +4
    • changedInput schema / properties / no_fail / items / enum
      Previous value: -[
      -  "protocol.modern",
      -  "protocol.stateless",
      -  "protocol.transport",
      -  "protocol.list_ttl",
      -  "auth.prm",
      -  "auth.as_metadata",
      -  "auth.cimd",
      -  "auth.secret_in_url",
      -  "tools.descriptions",
      -  "tools.description_length",
      -  "tools.schemas",
      -  "tools.annotations",
      -  "tools.directory_hints",
      -  "tools.token_cost",
      -  "tools.api_dump",
      -  "tools.hidden_text",
      -  "stability.changes",
      -  "stability.rug_pull",
      -  "stability.new_links",
      -  "deps.known_vulns",
      -  "deps.mcp_sdk_version",
      -  "deps.resolvable"
      -]New value: +[
      +  "protocol.modern",
      +  "protocol.stateless",
      +  "protocol.transport",
      +  "protocol.list_ttl",
      +  "auth.prm",
      +  "auth.as_metadata",
      +  "auth.cimd",
      +  "auth.secret_in_url",
      +  "tools.descriptions",
      +  "tools.description_length",
      +  "tools.schemas",
      +  "tools.annotations",
      +  "tools.directory_hints",
      +  "tools.token_cost",
      +  "tools.api_dump",
      +  "tools.hidden_text",
      +  "tools.poisoning",
      +  "stability.changes",
      +  "stability.rug_pull",
      +  "stability.new_links",
      +  "deps.known_vulns",
      +  "deps.mcp_sdk_version",
      +  "deps.resolvable"
      +]
    • changedInput schema / properties / no_fail / maxItems
      Previous value: -22New value: +23
  3. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description still adds real behavior: pass/fail semantics, a full list of broken rules returned, and the hard rule that 'A blocked or deleted listing never passes.' It does not discuss cost, rate limits, or error behavior (e.g. unknown server name), which would be the remaining gap.

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?

Front-loaded with the core outcome and then compressed into one enumerated sentence plus two short clauses; nothing is padding. The middle sentence is dense and slightly run-on, but every clause corresponds to a distinct parameter group.

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?

An output schema and full annotations are present, so the description only needs to carry intent, rule semantics, and the sequencing instruction — all of which it does. A brief note on what happens on an unknown or unindexed server name is the only notable omission for a 9-parameter gating tool.

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 67% schema coverage across 9 parameters, the description carries real weight by enumerating the rule families — minimum quality/trust, must-not-fail checks, absent flags, allowed connection classes, verified owner, no per-call charge — which map onto min_quality/min_trust, no_fail, exclude_flags/exclude_quality_flags, class, owner_verified and paid. The '(at least one)' constraint is meaningful added guidance not enforced by the schema, though individual threshold semantics (e.g. what a min_quality of 80 buys) are left to the schema.

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 gives a concrete verb+resource pair — 'Pass or fail for one server against the rules you name' — which is far more specific than the opaque name 'gate'. It never contrasts itself with the sibling 'check_server', though, so an agent must infer which one applies.

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?

'Call it before connecting' is an explicit, actionable sequencing instruction, and '(at least one)' rule states a precondition for a meaningful call. It stops short of naming when-not-to-use or pointing at check_server as the alternative for a plain inspection.

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.

Resources