Skip to main content
Glama

AI Call Screening & Spam Call Blocker (OsmO)

Add a Call Rule

add_rule

Use this when the user wants a new screening rule for their incoming calls, e.g. "put Mom through" or "take a message from delivery drivers". Takes the rule in the user's words (text), the same rule as an instruction to the call assistant (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. Existing rules are changed with update_rule.

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

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

Annotations only declare that this is a non-destructive, non-open-world write; the description goes well beyond that by disclosing the confirmation_required preview round-trip, the name_detected_pending_confirmation refusal with a nextStep, and the effect of confirmedGeneralScope on caller scope. It stops short of saying whether rules can collide with existing ones or what a successful response contains, but the behavioral surface that matters for a mutation is covered.

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?

Front-loaded with the usage trigger and examples, then the parameters, then the failure modes and the sibling pointer, so a reader can stop early and still act. It is one dense paragraph with some run-on clauses (the mentions and expiresAt clauses sit awkwardly mid-list), but no sentence is filler.

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?

There is no output schema, so the description must carry return behavior, and it does: it names the confirmation_required preview and the name_detected_pending_confirmation error with its nextStep. Combined with full schema coverage and annotations, an agent has everything needed to drive the confirm flow correctly.

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, and the description earns above that by explaining the workflow semantics the schema only states flatly: confirmed:true replays an earlier preview, confirmedGeneralScope widens scope beyond mentions, and mentions entries must carry a full international number. The description's phrasing of text/prompt/emoji largely echoes the schema rather than adding to it, which keeps this from 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?

States a specific verb and resource (add a screening rule for incoming calls) and grounds it in two concrete user phrasings ("put Mom through", "take a message from delivery drivers"). It also explicitly separates itself from update_rule, which handles changes to existing rules, so an agent can route 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?

Opens with an explicit when-to-use trigger ("Use this when the user wants a new screening rule") and names the alternative for the adjacent case ("Existing rules are changed with update_rule"). It further specifies the two-step confirm flow and the condition under which the tool refuses, which is guidance an agent must have to call this successfully.

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.