Skip to main content
Glama

CallMCP — Phone Call MCP Server

Prepare Customers To Rebook

prepare_rebook_customers
Idempotent

For the customers find_rebook_customers lists as 'not_looked_up', read their name, phone and email from the business's booking system and save them as past customers, so the list can be emailed and called. Past customers raise no new-lead alerts and are never put in Kai call or text campaigns. Reads a few customers a minute (the booking system's limit), so one call may not finish: when remaining is above 0, call again. A customer that cannot be read stays on the list. Sends nothing. Requires an admin of the business.

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

Input Schema

NameRequiredDescriptionDefault
yearNoOptional with holiday: the year to fill (default: this year). Last year's week is the year before.
holidayNoCompare this holiday's week last year with the same week this year (Monday to Sunday around the holiday; Memorial Day and Labor Day take the seven days ending on the holiday; new-years is the week of New Year's Eve). Use this or this_year_start/this_year_end.
business_idNoRequired when the account has more than one business.
last_year_endNoOptional: last day of the earlier range.
this_year_endNoLast day, YYYY-MM-DD (inclusive, at most 92 days).
last_year_startNoOptional: first day of the earlier range. Default: the same weekdays 52 weeks before.
this_year_startNoOptional instead of holiday: first day, YYYY-MM-DD.

Output Schema

NameRequiredDescriptionDefault
codeNo
doneNo
listNo
errorNoPresent when success is false
successYesWhether the tool completed successfully
preparedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Adds far more than the annotations disclose: a throughput limit of a few customers per minute, the possibility the call does not finish and must be repeated, failure semantics (an unreadable customer stays on the list), an explicit no-outbound-messages guarantee, and an admin permission requirement. All of this is consistent with readOnlyHint=false, idempotentHint=true and destructiveHint=false, and the idempotency claim is reinforced by the retry guidance.

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?

Dense but front-loaded: the target population, the effect, the exclusions, the rate limit and the permission requirement each appear once with no padding. Slightly clipped phrasing ('Reads a few customers a minute') costs a little clarity, but nothing is redundant.

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?

With an output schema present (presumably carrying remaining), the description need not explain return values, and it covers the operational risks of a rate-limited, resumable write well. The remaining gap is that it never ties the year/holiday range parameters to which customers are in scope, leaving that entirely to the schema.

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 description coverage is 100%, so the schema already explains year, holiday, business_id and the this_year/last_year range pairs in detail, setting the baseline at 3. The description adds nothing about how the week-comparison scope shapes which customers are prepared, so it neither compensates nor detracts.

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 chain (read name, phone, email from the business's booking system and save them as past customers) on a precisely scoped resource: the customers find_rebook_customers marked 'not_looked_up'. That explicit linkage to the sibling tool makes the tool distinguishable 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?

Gives the trigger condition (the 'not_looked_up' output of find_rebook_customers), the follow-up rule (call again while remaining is above 0), and explicit exclusions (past customers raise no new-lead alerts and are never put in Kai call or text campaigns). An agent knows both when to call it and what it should not be confused with.

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.