---
name: sweep-recall
description: Use when you need to find which service customers (for example chimney sweep customers) are due again this month or next, from a list of past jobs with dates.
---

# Build a monthly due list from past service jobs

## Option 1: the MCP endpoint

Endpoint: https://sweeprecall.duewright.com/mcp (Streamable HTTP, stateless, no login; `initialize` is optional). One tool: `build_due_list`. Replies come as one SSE `data:` line.
Input: `jobs` (1 to 500 objects: `customer` label, `last_service_date` YYYY-MM-DD, optional `interval_months` 1 to 60, default 12, optional `note`) and optional `month` (YYYY-MM, default this month, UTC).
Output: JSON text with `month`, `overdue`, `dueThisMonth`, `dueNextMonth` (each entry: customer, lastServiceDate, intervalMonths, dueDate, note, reminderText) and `counts` (jobs, customers, dueLater, skippedAfterMonth). The job rows are not stored or logged.

```sh
curl -s -X POST https://sweeprecall.duewright.com/mcp -H 'content-type: application/json' -H 'accept: application/json, text/event-stream' -H 'mcp-protocol-version: 2025-06-18' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"build_due_list","arguments":{"jobs":[{"customer":"J. Hearth, 12 Quarry Ln","last_service_date":"2025-11-04"},{"customer":"M. Flint, 3 Linden Rd","last_service_date":"2025-06-20","interval_months":18}],"month":"2026-11"}}}'
```

## Option 2: do it yourself

1. Group the jobs by customer and keep the latest service date per customer.
2. Due date = last service date plus the interval in months (12 for a yearly sweep). Clamp the day to the end of the month: 2024-01-31 plus 1 month is 2024-02-29.
3. Compare the due month with the chosen month: earlier is overdue, the same month is due now, one month later is due next month.
4. Skip jobs dated after the chosen month.

## Limits

The MCP endpoint is free with no account: 50 tool calls per IP per UTC day and 2000 per day for all callers together. Over a limit, the tool returns an error that says when to try again.

## Paid key

After payment, the /welcome page shows one API key, once. Send it as `Authorization: Bearer <key>`, never in a URL. `GET https://sweeprecall.duewright.com/api/entitlement` returns 200 while the subscription is active, 401 for a missing or unknown key and 402 when the subscription is not active.

## More

Pricing and the paid monthly service: https://sweeprecall.duewright.com/pricing?ref=agent
