Skip to main content
Glama

AI Call Screening & Spam Call Blocker (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 and its ruleId returned. 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.7/5.0
Behavior5/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 adds real context on top: the two-step confirmation protocol ('Without confirmed:true nothing is deleted'), the confirmation_required preview response, the not_found code for unknown ruleIds, and the permanence of the operation. That is exactly the behavioral disclosure an agent needs for a destructive tool.

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 use case, then the confirmation mechanics, the error case, and the safer alternative. No filler or redundant restatement of the title.

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

Completeness5/5

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

No output schema exists, yet the description names the meaningful return values (confirmation_required naming the rule, ruleId, not_found). For a two-parameter destructive tool, this covers everything an agent needs to invoke it correctly.

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 100% and the schema already documents both ruleId's source and the meaning of confirmed. The description reinforces the workflow link (ruleId from list_rules, confirmed carries out the prior preview) but adds little semantic detail not already in the structured fields, so baseline 3 applies.

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?

States a specific verb and resource ('screening rules gone for good') and distinguishes it from the sibling update_rule, which merely deactivates. An agent can tell this is the permanent-delete path 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 Guidelines5/5

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

Explicitly gives the when ('user wants one of their screening rules gone for good') and the alternative ('A rule can be switched off and kept with update_rule (isActive false)'). It also explains the confirmation gate that governs whether anything actually happens.

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.