Skip to main content
Glama

AI Receptionist & Answering Service (OsmO)

Delete a Call Rule

delete_rule
Destructive

Use this when the user wants one of their screening rules gone for good. ruleId comes from list_rules. Without confirmed:true nothing is deleted: it returns confirmation_required naming the rule; with it the rule is permanently deleted. An unknown ruleId returns code not_found. A rule can be switched off and kept with update_rule (isActive false).

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": {
      "ruleId": "<ruleId>"
    },
    "name": "delete_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
ruleIdYesA ruleId from list_rules.
confirmedNotrue means the user has approved the confirmation_required preview returned by an earlier call with the same arguments, and carries it out. Without it nothing changes and that preview is returned.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, and the description goes further by disclosing the exact confirmation gate, that deletion is permanent, the confirmation_required return, and the not_found error code for unknown ruleIds. That is meaningful behavioral context beyond the annotation, though it does not specify auth requirements or whether dependents (e.g., screened callers) are affected.

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 sentences, front-loaded with the when-to-use trigger, then source of the ID, then the confirmation contract, then the error and alternative. Nothing is padding; each sentence carries a distinct operational fact.

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 two-parameter tool with no output schema, the definition covers the trigger, the ID source, the confirmation protocol, the failure code, and the alternative. The only genuine gap is blast radius—what happens to already-screened callers or related state after permanent deletion.

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 workflow meaning the schema alone does not convey: ruleId's provenance from list_rules and the fact that confirmed:true only counts when the same arguments previously produced a preview. The confirmed flag's statefulness is clearer here than in the schema wording.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb and resource in the user's own terms ("one of their screening rules gone for good") and immediately separates it from the non-destructive sibling by noting a rule can be switched off with update_rule instead. An agent can distinguish delete_rule from update_rule without opening either schema.

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

Usage Guidelines5/5

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

Explicitly states the condition for use and names the alternative path ("A rule can be switched off and kept with update_rule (isActive false)"). It also documents the two-step confirmation workflow so the agent knows the first call is a dry run, not a failure.

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.