Skip to main content
Glama

Delete Rule

lexq_rules_delete
Destructive

Delete a rule from a DRAFT version.

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": {
      "groupId": "<groupId>",
      "versionId": "<versionId>",
      "ruleId": "<ruleId>"
    },
    "name": "lexq_rules_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
ruleIdYesRule ID
groupIdYesPolicy group ID
versionIdYesVersion ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / properties / force
      Removed value: -{
      -  "default": false,
      -  "description": "Skip confirmation (for the last rule in a version)",
      -  "type": "boolean"
      -}
  2. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is known. The description adds one real piece of behavioral context beyond that — the operation is scoped to DRAFT versions — but says nothing about irreversibility, whether the rule must be disabled first, or what happens to references/history after deletion.

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?

A single short sentence with zero filler and the key constraint front-loaded. It is efficient, though the terseness is close to the edge where brevity becomes under-specification.

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 three-parameter delete with fully documented schema and destructiveness already flagged by annotations, the description covers the essential scope. It still leaves gaps for a destructive mutation: no note on irreversibility, on failure modes for non-draft versions, or on any post-delete state change, and there is no output schema to cover results.

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% with all three UUID identifiers documented in the schema, so the baseline is 3. The description adds no meaning about how groupId, versionId, and ruleId relate (e.g. that the rule must belong to the given group and version), leaving that inference to the agent.

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 (Delete) and resource (a rule), plus a scope qualifier ('from a DRAFT version') that distinguishes it from the rule-mutating siblings like lexq_rules_update and lexq_rules_toggle. It does not explicitly name any sibling, so it falls short of a 5, but an agent can identify the operation without opening the schema.

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?

The 'DRAFT version' qualifier implicitly tells the agent when this tool is applicable and implies it cannot be used against published versions, which is useful when-to-use guidance. However, no alternatives are named (e.g. versions_delete, rules_update to remove a rule config differently) and no prerequisites such as required permissions or version state transitions are given.

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.