Skip to main content
Glama

Create Gate

create_gate

Create a gate for the current team. Describe the gate and confirm with the user before calling. mode is enforce or dry_run. defaultVerdict is allow, review, or deny, and is the gate's default field: the verdict when no rule matches. rules is an ordered list. The first matching rule wins. Each rule has an optional description (at most 200 characters), match (all or any; omit it for all), a verdict (allow, review, or deny), and up to 20 conditions. Each condition is one predicate. badge_present and badge_absent take a single badge slug, not a list. score takes score (humanity, authenticity, uniqueness, or behavior), op (<, <=, >=, or >), and value. score_missing takes the score name only. To allow only when none of these badges are present, set match to all and add one badge_absent condition per slug. To match when any of them is present, set match to any and add one badge_present condition per slug. Do not send a badges list. There are no nested groups. Those scores are the stored 0-100 full-analysis scores, not the Authenticity Check tool. A missing score does not satisfy a score comparison; use score_missing. match, type, score, op, mode, and verdict are fixed sets. An unknown value is a 400 that lists the valid ones. The response includes warnings (unknown_badge, and on a check also score_not_caught and dry_run). unknown_badge means the slug is not currently produced by a badge rule or enabled analyzer for this team. A check counts a badge already on that identity and does not scan the team's badges. Saving a gate also counts a slug still ACTIVE on some identity, including one left by a paused analyzer. Those two known-badge sets differ on purpose. At most 100 gates and 50 rules. Returns the created 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": {
      "slug": "<slug>",
      "mode": "<mode>",
      "defaultVerdict": "<defaultVerdict>"
    },
    "name": "create_gate"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYesenforce or dry_run. dry_run still evaluates and logs the real verdict, but the check response is allow plus wouldBe.
slugYesOpaque slug, unique for the team. Lowercase letters, digits, and underscores, starting with a letter. For example grant_trial_credits.
rulesNoOrdered rules. Omit or pass an empty list to use only the default verdict.
defaultVerdictYesDefault verdict when no rule matches: allow, review, or deny.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior5/5

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

With annotations only declaring readOnly=false, the description carries the important behavior itself: the 100-gate/50-rule quota, that unknown enum values produce a 400 listing valid values, that the response carries warnings (unknown_badge, score_not_caught, dry_run), and that gate-save badge counting includes slugs left ACTIVE by paused analyzers while a check counts only badges already on the identity. That last clarification is exactly the subtle, non-obvious behavior an agent could not infer elsewhere.

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 content is dense and largely earns its place, but it is delivered as one undifferentiated block with enum values restated in prose ('mode is enforce or dry_run. defaultVerdict is allow, review, or deny') that the schema already carries. A short structured split between what the tool does, when to call it, and the condition-model rules would read far better than this wall of text.

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

Completeness5/5

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

For a nested conditional-rule creation tool with no output schema, the definition covers the condition DSL, ordering semantics (first matching rule wins), limits, warning meanings, and the return value ('Returns the created gate'). Nothing an agent needs to construct a valid call is absent.

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?

Schema coverage is 100%, so the baseline is 3; the description still adds corrective guidance that goes beyond it, notably 'Do not send a badges list', 'There are no nested groups', 'score_missing takes the score name only', and the concrete all+badge_absent / any+badge_present recipes. Some enum restatement duplicates the schema, which keeps this from a 5.

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 first sentence names a specific verb and resource and scopes it: 'Create a gate for the current team.' That is enough for an agent to tell it apart from check_gate, update_gate, and create_badge_rule without opening a schema. It does not explicitly name the create/update/check alternatives, so it stops 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?

There is a concrete pre-call workflow instruction ('Describe the gate and confirm with the user before calling') that most create tools omit, and mode semantics (enforce vs dry_run) are explained. What is missing is routing guidance against siblings, e.g. when to create a new gate versus call update_gate on an existing one, or when a dry_run should be preferred first.

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.