Skip to main content
Glama

Enable or disable custom rules

set_rules_enabled
Destructive

Toggle existing custom DNS rules on or off without deleting them, preserving each rule's action and redirect target. Use it to pause filtering changes temporarily after confirming the request.

Instructions

Switch existing custom rules on or off without deleting them. The rule's action and redirect target are kept. Requires confirm=true.

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": {
      "profile": "<profile>",
      "hostnames": "<hostnames>",
      "enabled": "<enabled>",
      "confirm": "<confirm>"
    },
    "name": "set_rules_enabled"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmYesMust be exactly true after reviewing the requested change
enabledYes
profileYesExact profile name or profile ID
hostnamesYesExact rule names as shown by list_profile_rules

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.5/5.0
Behavior3/5

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

Adds real value beyond annotations by stating that action and redirect target survive the toggle and that confirm=true gates the call. However, annotations declare destructiveHint=true and openWorldHint=true, and the description does not explain the destructive surface (traffic behavior changes, whether hosts up to 50 are all flipped atomically, what happens on partial/unknown rule names). The 'without deleting them' framing sits in mild tension with destructiveHint and could be clarified as 'settings preserved, but traffic filtering changes immediately'.

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?

Three short sentences, front-loaded with the operation and the key non-destructive guarantee, then the precondition last. No filler or repetition.

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

Completeness3/5

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

For a 4-required-parameter mutation with no output schema, the definition covers what changes and what is preserved, but omits the effect on live traffic, error behavior for unknown or duplicate hostnames, and whether re-applying the same enabled value is a no-op. Adequate but with clear gaps for a state-changing tool.

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

Parameters3/5

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

Schema coverage is 75% and the schema already documents profile, hostnames (including the list_profile_rules provenance), and confirm's const=true. The description only restates the confirm requirement and adds nothing about enabled semantics or the 50-item limit, so it does not meaningfully exceed the baseline the schema establishes.

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?

States a specific verb pair (switch on/off) applied to a specific resource (existing custom rules), and explicitly distinguishes the operation from deletion and re-creation by noting the rule's action and redirect target are kept. It could be sharper by naming delete_rules directly as the destructive alternative, but an agent can already tell this is a toggle, not a create/delete.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives one important precondition (confirm=true) but no guidance on when to prefer toggling over delete_rules + create_*_rules, or how this interacts with profile-level tools like pause_profile. Usage is implied by the name and first sentence rather than stated with exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.