Create Gate
create_gateCreate 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
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | enforce or dry_run. dry_run still evaluates and logs the real verdict, but the check response is allow plus wouldBe. | |
| slug | Yes | Opaque slug, unique for the team. Lowercase letters, digits, and underscores, starting with a letter. For example grant_trial_credits. | |
| rules | No | Ordered rules. Omit or pass an empty list to use only the default verdict. | |
| defaultVerdict | Yes | Default verdict when no rule matches: allow, review, or deny. |