Skip to main content
Glama

AI Call Screening & Spam Call Blocker (OsmO)

Update a Call Rule

update_rule
Destructive

Use this when the user wants to change, pause or extend one of their existing screening rules. ruleId comes from list_rules; only the fields passed are changed: text, prompt, emoji, mentions (the tagged people), isActive (false turns the rule off and keeps it) and expiresAt (null makes it permanent). Without confirmed:true nothing changes: it returns confirmation_required with the exact change. An unknown ruleId returns code not_found. New rules are add_rule; removing one is delete_rule.

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": "update_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNoThe rule as the user would say it, e.g. "Put Mom through".
emojiNoOne emoji shown beside the rule, e.g. "📞".
promptNoThe same rule as an instruction to the call assistant, e.g. "When Mom calls, transfer the call to me."
ruleIdYesA ruleId from list_rules.
isActiveNofalse turns the rule off without deleting it.
mentionsNoEach person the rule is about, with their full number in international form.
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.
expiresAtNoISO 8601; null makes it permanent.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true; the description adds the behavior that actually matters: nothing mutates without confirmed:true, a confirmation_required preview is returned instead, unknown ruleId yields not_found. It also discloses patch semantics ('only the fields passed are changed') and that isActive:false retains rather than deletes the rule, which is non-obvious 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?

A single dense paragraph with no filler: trigger, identifier source, mutation semantics, confirmation gate, error code, and sibling routing in that order. Multi-clause sentences stay readable and every clause carries load-bearing information.

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?

For an 8-parameter destructive mutation with no output schema, the description covers the safety gate, the partial-update semantics, the error path, and the return payload name (confirmation_required). Nothing an agent needs to invoke it correctly is missing.

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 would be 3; the description goes beyond it by stating the partial-update contract for all optional fields at once and pinning ruleId's provenance to list_rules. Field-level meanings (expiresAt null, mentions) largely restate the schema, so it stops short of a 5.

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?

Opens with a specific verb-plus-resource framing ('change, pause or extend one of their existing screening rules') and immediately names the three sibling boundaries: add_rule for creation, delete_rule for removal, list_rules as the ruleId source. An agent can distinguish it from every neighbor without opening a 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?

Explicit when-to-use trigger ('when the user wants to change, pause or extend') plus explicit when-not routing to add_rule and delete_rule, and a prerequisite for the required ruleId. This is the full when/when-not/alternatives pattern.

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.