Skip to main content
Glama

AI Receptionist & Answering Service (OsmO)

Add a Call Rule

add_rule

Use this when the user wants a new screening rule for their incoming calls, e.g. "put my family straight through" or "tell sales callers I'm not interested". Takes the rule in the user's words (text), the same rule as an instruction to the receptionist (prompt), an emoji, the people it is about (mentions, each a name and full number), and optionally expiresAt. Without confirmed:true nothing is added: it returns confirmation_required with the exact rule. A rule that names someone not tagged in mentions is refused with name_detected_pending_confirmation and a nextStep; confirmedGeneralScope:true marks a rule meant for every caller.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "add_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."
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.
expiresAtNoWhen the rule stops (ISO 8601); omit to keep it.
confirmedGeneralScopeNotrue marks the rule as applying to every caller, not only the people in mentions.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare the safety profile (readOnlyHint=false, destructiveHint=false, openWorldHint=false); the description goes far beyond by disclosing the two-step confirmation protocol, the exact failure mode ('name_detected_pending_confirmation' with a nextStep) when a named person isn't in mentions, and the meaning of the general-scope flag.

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?

The trigger condition is front-loaded and each subsequent clause carries distinct information — inputs, the confirmation gate, the error case, the scope flag. The middle sentence is dense and packs all parameters into one run-on list, which slightly hurts scanability but wastes no words.

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 7-parameter write tool with no output schema, the description covers the critical behavioral contract: nothing is created without confirmed:true, the preview payload name is known, and one refusal path is documented. It does not describe what a successful response contains, which an agent would want after confirming.

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 real meaning: text and prompt are the same rule in two registers (user's words vs. receptionist instruction), mentions pairs a name with a full number, and expiresAt is explicitly optional. It restates rather than extends the schema's own explanation of confirmed.

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 — 'a new screening rule for their incoming calls' — and anchors it with two natural-language user intents, so an agent can tell this apart from update_rule or delete_rule without opening any schema.

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 'Use this when the user wants a new screening rule' plus quoted example utterances give a clear trigger condition. It never explicitly names an alternative such as update_rule for modifying an existing rule, so it stops short of full when/when-not routing.

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.