Skip to main content
Glama

Update Gate

update_gate
DestructiveIdempotent

Update a gate. Pass only the fields to change; omitted fields keep their values. Sending rules replaces the whole list, and an empty list clears it. Confirm with the user first. 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 updated 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>"
    },
    "name": "update_gate"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoNew mode: enforce or dry_run.
slugYesGate slug.
rulesNoReplacement rules. Omit to leave the current rules in place.
defaultVerdictNoNew default verdict: allow, review, or deny.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Goes well past the annotations: destructive replacement of the rules list, clearing via empty list, a 400 with valid enum values on unknown input, warnings (unknown_badge, score_not_caught, dry_run), quotas of 100 gates / 50 rules, and the deliberate difference between the check-time and save-time known-badge sets. This is exactly the context annotations cannot carry.

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 purpose and update semantics, then organized by mode/defaultVerdict/rules/conditions in the same order as the payload. It is long but justified by the nested rule schema; the only waste is minor repetition of the 'match all + badge_absent per slug' pattern and the 'do not send a badges list' instruction.

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?

Covers limits, error behavior, warnings vocabulary, and the return value ('Returns the updated gate') without an output schema. What is thin is team scoping and permission requirements implied by the badge-set discussion, which are never stated outright.

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

Parameters5/5

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

Despite 100% schema coverage, the description adds semantics the schema cannot express: rules are ordered and first-match-wins, badge conditions take one slug not a list, missing scores never satisfy a score comparison, and stored scores are 0-100 full-analysis scores rather than Authenticity Check output. These disambiguations materially change how an agent must build the payload.

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?

Opens with a specific verb and resource ('Update a gate') and immediately states partial-update semantics ('Pass only the fields to change; omitted fields keep their values'), which separates it from create_gate/delete_gate/check_gate without naming them. It does not explicitly contrast with siblings, keeping it just below 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?

Gives clear operational guidance: send only changed fields, rules is replaced wholesale, an empty list clears it, and the agent must 'Confirm with the user first' because the tool is destructive. It lacks an explicit statement of when to prefer update_badge_rule/update_escalation_rule or when this tool should not be used, so not a 5.

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.