Skip to main content
Glama

delete_user_rule

Deletes a stored preference by key and scope, removing obsolete or unwanted rules. Provide a repo or workspace ID for scoped deletion; global scope needs no ID.

Instructions

Deletes a preference by key and scope. For global scope, scope_id is not needed.

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": {
      "key": "<key>",
      "scope": "<scope>"
    },
    "name": "delete_user_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesPreference key to delete
scopeYesScope level: 'global', 'workspace', or 'repo'
scope_idNoTarget ID: repo ID or workspace ID. Required for workspace/repo scope.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.10.2

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden for a destructive mutation. It says nothing about irreversibility, permission requirements, whether deleting a global key affects workspace/repo overrides, or the error behavior for a missing key; the only behavioral hint (scope_id optional for global) merely restates the schema.

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?

Two short sentences with the core action front-loaded and the scope caveat immediately after it. The second sentence largely repeats the schema, so a small amount of space is not fully earned, but there is no padding or ambiguity.

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

Completeness2/5

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

For a deletion tool with zero annotations and no output schema, the description is too thin: it omits effect scope (does one delete remove overrides at other scopes?), idempotency, and failure modes. An agent could call it correctly on the happy path but has no basis for handling edge cases.

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 description coverage is 100%, so the schema already defines key, scope, and scope_id including the 'required for workspace/repo scope' rule. The description's note that scope_id is unneeded for global scope duplicates that information rather than adding format or constraint detail.

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 and resource ('Deletes a preference') plus the identifying dimensions (key and scope), which cleanly separates it from the write-side sibling save_user_rule. It stops short of naming any alternative explicitly, so it is clear but not sibling-differentiating.

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?

Usage is only implied by the verb: an agent can infer this is the removal counterpart to saving a preference. There is no statement of when-not to use it, no prerequisites, and no mention of what to do if the key does not exist at that scope.

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