Skip to main content
Glama

AI Receptionist & Answering Service (OsmO)

Update a Call Rule

update_rule
Destructive

Use this when the user wants to change, pause or extend one of their screening rules. ruleId comes from list_rules; only the fields passed are changed: text, prompt, emoji, mentions, 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.

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.7/5.0
Behavior5/5

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

Beyond the annotations, it discloses the partial-update contract ('only the fields passed are changed'), the two-step confirmation gate where nothing happens without confirmed:true, the exact error behavior for an unknown ruleId, and the retention semantics of isActive:false. These are non-obvious behavioral traits an agent could not derive from destructiveHint alone.

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 dense sentences, no filler: trigger, prerequisite source of ruleId, mutation contract, and failure modes, in that order. The confirmation gate is front-loaded before the error case where it belongs.

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 still covers the mutation contract, the confirmation handshake, and the not_found failure, which is everything an agent needs to call it safely. Nothing material is left to inference.

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 the baseline is 3, but the description adds the cross-parameter rule that omitted fields are left untouched, plus the null-means-permanent meaning of expiresAt and the confirm-preview loop for confirmed. It largely mirrors schema text for the individual fields, which caps it below 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?

States a specific verb set (change, pause, extend) against a specific resource (screening rule), and names list_rules as the source of ruleId. An agent can tell this apart from add_rule or delete_rule from the verb alone.

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

Usage Guidelines4/5

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

The opening clause gives an explicit trigger condition tied to user intent, and 'pause or extend' clarifies that deactivation and expiry belong here rather than in delete_rule. It does not explicitly exclude alternatives such as add_rule, so it falls short of a 5.

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.