Skip to main content
Glama

CallMCP — Phone Call MCP Server

Find Customers To Rebook

find_rebook_customers
Read-onlyIdempotent

List a business's customers who booked a week last year (for example Thanksgiving week) and have not booked the same week this year, biggest last-year spend first, from the orders in the business's connected booking system. Each row has the customer's name and company, a masked phone, whether there is an email, and last year's order numbers, dates and totals. Returns email_ready_lead_ids (recorded email permission, not on the do-not-email list) to pass straight to draft_email_campaign, and call_list (name, phone, last-year total) for staff to dial by hand: Kai never calls or texts these past customers. Customers whose details have not been looked up yet show contact 'not_looked_up'; prepare_rebook_customers fills them in. Read-only; needs a connected booking system.

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": "find_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
dataNo
errorNoPresent when success is false
countsNo
windowNo
successYesWhether the tool completed successfully
warningsNo
call_listNo
call_list_noteNo
email_ready_lead_idsNo
email_needs_permission_lead_idsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds genuinely non-obvious behavior beyond that: masking of phone numbers, the email-permission/do-not-email filtering behind email_ready_lead_ids, the 'not_looked_up' contact state, and the no-outbound-contact constraint. It stops short of stating scale limits or what happens when no booking system is connected.

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 core purpose leads the first sentence and the workflow hand-offs are packed into two dense but front-loaded sentences with no filler. It is wordy in places (the colons and parenthetical asides pile up), but every clause carries operational information rather than restating the title.

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 seven-parameter, zero-required tool with two alternative date-specification modes, the description supplies the workflow context, the privacy handling and the downstream tools. Since an output schema exists, it need not enumerate return fields, so the row description is a mild redundancy rather than a gap; the only real omission is failure behavior when no booking system is connected.

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%, including the holiday-week definitions, so the schema already carries parameter meaning. The description adds only the motivating example ('for example Thanksgiving week') and the semantic link between holiday and year; it does not explain the 92-day cap or the last_year_*/this_year_* interaction beyond what the schema states. Baseline 3 is appropriate.

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?

The description states a precise verb and resource plus the exact selection logic: customers who booked a given week last year and have not booked the same week this year, sorted by last-year spend, drawn from the connected booking system. The 'same week last year vs this year' criterion and the spend ordering make it impossible to confuse with siblings like prepare_rebook_customers.

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?

It routes output explicitly: email_ready_lead_ids go 'straight to draft_email_campaign', and records with contact 'not_looked_up' should be resolved via prepare_rebook_customers. It also states a prerequisite (a connected booking system) and an exclusion ('Kai never calls or texts these past customers'), which tells the agent when not to treat call_list as an auto-dial list.

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.