Skip to main content
Glama

Update a control rule

update_rule
DestructiveIdempotent

Updates name, enabled, config or schema_version; omit fields to keep them and use name:null to clear a name. Config is replaced, not merged. ID, kind and scope are immutable. An empty update is rejected. Requires the controls:write scope.

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

Input Schema

NameRequiredDescriptionDefault
nameNoDisplay name; null clears it.
uuidYesRule id
configNoConfig for the rule kind. Replaces the full config on update. Read existing rules and get_rule_vocabulary before changing it; organization constraints remain in force. Use schema_version=4 for model lists: models and exclude_models name model keys, endpoints and exclude_endpoints name endpoint ids; use 5 only when exclude_models/exclude_endpoints hold "*" wildcards or the rule has except_models/except_endpoints; schema_version=2 remains supported for provider company allowlists. Opper retention_days and upstream handling.max_retention_days are separate controls. Each anyOf branch is one rule type's exact schema without field descriptions, titled by its id; get_rule_vocabulary rule_schemas has each id with descriptions and a validated example. Read the one you need before writing config.
enabledNoWhether the rule is enforced. Omitted on create means false.
schema_versionNoConfig schema version. Omit on create for version 1. Version 2 comply allowlists identify providers by company slug. Use 4 for model lists (models and exclude_models name model keys, endpoints and exclude_endpoints name endpoint ids), and 5 only when exclude_models or exclude_endpoints hold "*" wildcards or the rule has except_models or except_endpoints.
confirm_file_deletionNoDeprecated and ignored: no rule deletes stored files.

Output Schema

NameRequiredDescriptionDefault
dataNo
metaNoEmpty for a single resource. Endpoint-specific context appears here rather than as a sibling of `data`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, but the description adds real information beyond them: config is replaced wholesale rather than merged, ID/kind/scope are immutable, empty updates are rejected, and the call requires the controls:write scope. That is exactly the kind of permission and data-loss context an agent needs before mutating a rule.

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

Conciseness5/5

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

Four short clauses, each carrying distinct information, with the mutable-field list and the replacement warning front-loaded. No filler sentences and nothing repeated from the title.

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?

For a destructive, deeply-nested-config mutation tool with an output schema and full schema descriptions, the definition covers patch semantics, immutability, validation, and auth. The only gap is that config authoring guidance (read existing rules, get_rule_vocabulary) is buried in the config parameter rather than surfaced in the description.

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 baseline is 3, but the description adds patch semantics the schema cannot express: omitted fields are retained, null clears name, and config replacement is all-or-nothing. It does not explain schema_version compatibility trade-offs at the top level, though the parameter's own description does.

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 and enumerates exactly which fields are mutable (name, enabled, config, schema_version), then names what is not (ID, kind, scope). That makes the tool's identity unmistakable versus create_rule or delete_rule. It stops short of naming a sibling explicitly, so it lands at a strong 4 rather than 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 concrete operational rules that shape how the call is made: omit a field to preserve it, pass name:null to clear, an empty update is rejected. It does not state when to prefer this over an alternative workflow or a when-not condition, and the instruction to read existing rules / get_rule_vocabulary lives in the schema rather than the description.

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