Agent Desk

เครื่องมือตรวจสอบ TCPA และ Do Not Call แบบฟรีและโอเพนซอร์สสำหรับตัวแทนประกันภัยในสหรัฐฯ ให้คำตอบว่าโทรได้ รอ ตรวจสอบ หรือหยุด สำหรับการโทร การโทรอัตโนมัติ และข้อความ พร้อมแหล่งอ้างอิง

เซิร์ฟเวอร์ MCP แบบโฮสต์

npx add-mcp 'https://yellowstake.com/mcp'

ติดตั้งลง Claude Code, Codex, Cursor และอื่นๆ

เอกสาร

Agent Desk: can I call, autodial or text this lead? Go, wait, check or stop for each channel.

Code: MIT Rules data: CC BY 4.0 Node 20.10 or later No dependencies Try it in the browser

yellowstake/agent-desk MCP server As seen on Open Source Alternatives

Agent Desk

Can I call, autodial or text this lead, and when? Open rules and checks for US insurance agents who buy leads.

Give Agent Desk a lead (state or ZIP, the consent wording, your agency name, your Do Not Call scrub) and it answers go, wait, check or stop for each channel: a call by hand, an autodialed or prerecorded call, and a text. Every answer names the rule it comes from.

How it works: the lead goes through consent, Do Not Call, calling hours, call cap and insurance checks, and comes out as a verdict for a call by hand, an autodialed call and a text.

It checks:

  • Consent: does it name your agency, and does it cover texts and automated calls? Written consent must name the seller who calls (47 CFR § 64.1200(f)(9)).
  • Do Not Call: National Registry exceptions, the 31-day scrub window, the 3-month inquiry relationship, and the 12 states with their own lists.
  • Calling hours: the federal 8 a.m. to 9 p.m. window plus every stricter state, in every time zone the state spans, with the next opening.
  • Call caps: Florida, Maryland, Oklahoma and Oregon's 3-per-24-hours limits.
  • Insurance-specific rules: licensed-agent exemptions (narrower than most agents think), the Medicare unsolicited-contact ban, Mississippi's Medicare Advantage ban, and lead-vendor contract windows.
  • Recording consent: the 12 states where every party must agree to a recorded call.

Also included: a lead data check (fake phones, throwaway emails, test names, out-of-area ZIPs) that writes the return request to the vendor; an outreach message check (TCPA, CAN-SPAM, CMS Medicare marketing); and a lead cost calculator.

There are no dependencies and no network calls (except the optional data download below), and nothing is stored. Anything it can't confirm, such as an undated Do Not Call scrub, an agency name it can't find, or a partner list, comes back as check, never go. Yes/no fields accept any common spelling (Yes, Y, TRUE, 1); anything else counts as unknown.

Use it

In Claude, ChatGPT, Cursor or any MCP client (hosted): add https://yellowstake.com/mcp as a custom connector. No account. Each tool answers in plain text (verdict per channel, reasons with citations, wait times in the lead's local time), with the full JSON alongside as structured content.

As a local MCP server:

npx -y @yellowstake/agent-desk

If the package is already installed in your project, npx agent-desk-mcp starts the same server.

In your own code:

npm install @yellowstake/agent-desk
import { canContact, canContactMany, toText } from '@yellowstake/agent-desk';

const r = canContact({
  state: 'FL',
  inquiryDate: '2026-11-20',
  agencyName: 'Lakeside Insurance',
  consentText: 'By submitting, I agree to be contacted by Lakeside Insurance by phone and text, including by automated technology...',
  onNationalDnc: false,
  onStateDnc: false,
});
r.summary;                       // "Go: you can call by hand now."
r.channels.text.verdict;         // "go" | "wait" | "check" | "stop"
r.channels.text.reasons;         // [{ level, text, cite }]
r.channels.manualCall.nextAllowed; // ISO time when a "wait" opens

const batch = canContactMany(leads, { agencyName: 'Lakeside Insurance', licensedStates: ['FL', 'GA'] }); // up to 1,000 leads
batch.summary.text;              // { go: 812, wait: 140, stop: 48 }
batch.results[0].channels;       // same shape as canContact, per lead
batch.notes;                     // notes shared by several leads, once: [{ text, cite, states, leads }]

toText('check_lead_contact', r); // the same answer as readable text, as the MCP tools return it

Every answer looks like this, with the rule behind each reason:

Sample result for a Florida lead: call by hand is go; autodialed call and text are stop because the consent does not mention automated calls or texts, citing 47 CFR 64.1200.

On the web: yellowstake.com/tools/agent-desk has every tool, including a lead-list (CSV) check that runs in your browser.

Phone lookups: load the NANPA data yourself

The checks work without any phone data, using the area code alone. For carrier, line type (mobile, landline, VoIP, pager, toll-free) and numbers that cannot be in service, build a local copy of the public numbering data:

npx agent-desk-numbering                  # in a project that has the package: downloads NANPA and FCC files (about 60 MB), writes ~14 MB to its data/numbering
npx agent-desk-numbering --out /srv/nanpa # or pick the folder, then set AGENT_DESK_NUMBERING_DIR=/srv/nanpa
npx agent-desk-numbering --from ./files   # offline: npa_report.csv, co.zip, tb.zip (and fcc499.xml) you downloaded
npx -p @yellowstake/agent-desk agent-desk-numbering --out /srv/nanpa   # without installing the package

It reads four public files: NANPA's area code report, the assigned exchanges (about 205,000), the thousands-blocks (about 1.4 million), and the FCC Form 499 filer list for each carrier's type. NANPA updates daily; re-run the command on a schedule (a daily cron is plenty). It refuses to replace your data if a download comes back truncated, and swaps the new files in all at once.

import { lookupPhone } from '@yellowstake/agent-desk/phone';

const info = lookupPhone('(917) 723-1234');
info.lineType;        // "mobile"
info.carrier.brand;   // "T-Mobile"
info.status;          // "assigned", or "unassigned-block" / "unassigned-code" for numbers that cannot be in service

canContact({ ...lead, phoneInfo: info }); // a dead number is a stop; a landline gets a check for texts

With the data in place, the local MCP server (npx agent-desk-mcp, or npx -y @yellowstake/agent-desk with AGENT_DESK_NUMBERING_DIR set) also offers lookup_phone and adds phone details to lead checks automatically. Prefer not to host it? The hosted connector at https://yellowstake.com/mcp has the same tool, refreshed daily.

One limit: NANPA records the carrier a number block was assigned to. A ported number (a landline moved to a mobile carrier, say) still shows its original carrier, so treat line type as a strong hint, not proof.

Lead fields

FieldMeaning
state, zipWhere the lead is. A ZIP fills in or cross-checks the state; when they disagree, both states' rules apply
phoneThe lead's number. Places the lead by area code when there is no state or ZIP; the area code's calling hours and call limits also apply. Invalid and toll-free numbers are flagged
lineType / phoneInfomobile, landline, voip, pager or toll-free, or a full lookup result (carrier, status, state) from lookupPhone() or the hosted lookup_phone tool. A number that cannot be in service is a stop; a landline gets a check for texts
consentTextThe exact consent wording the person agreed to
agencyName / consentNamesYouYour agency name (matched in the consent), or tell it directly
inquiryDateWhen the form was submitted
onNationalDnc, onStateDnc, lastDncScrubYour scrub results and date
onInternalDncOpted out or on your own list
ownLeadThe person contacted your agency directly (creates the 3-month inquiry exception)
lastPurchaseDateExisting customers: their last purchase (18-month exception for live calls; Oregon's hours and cap waiver)
requestedContactThe person asked you to contact them (Medicare; Mississippi's Medicare Advantage ban)
partnerListIncludesYouThe consent names "partners" and your agency is on that list
callerIsLicenseeThe licensed agent is personally calling (Oklahoma and Indiana exemptions)
optedOutThe person asked you to stop
lineauto, home, life, health, medicare, commercial
vendor, certificateClaimedLead vendor, and whether you claimed the TrustedForm or Jornaya certificate
licensedStates, callsLast24h, atYour licensed states, contacts in the last 24 hours, and the time to check (default now)
contactLogTimes of earlier sales contacts (array, or separated by ;). Gives the exact time a state call limit reopens

The rules data

rules/ is plain JSON, licensed CC BY 4.0. Every rule carries its citation and the date it was checked.

  • states.json: all 50 states and DC. Calling hours, holidays, call caps, automated-call windows, state Do Not Call list, automated-call law, recording consent and licensed-agent exemptions.
  • federal.json: TCPA and Telemarketing Sales Rule basics: hours, written consent, Do Not Call, scrub age, established business relationship, opt-outs (including FCC 26-67), identification and damages.
  • insurance.json: CMS Medicare marketing limits, state Medicare bans, lead-vendor contact windows, and consent-certificate retention.
  • area-codes.json: US area code to state and the toll-free area codes, from the NANPA NPA report (node scripts/area-codes.mjs refreshes it). For full number-level data, see Phone lookups above.

Laws change. Corrections with a citation are welcome as pull requests.

Not legal advice

Agent Desk is a planning aid. It can't see your consent records, your scrub results or how your dialer works, and it doesn't cover every rule. Telemarketer registration notes come from a secondary source, and holiday checks cover federal holidays plus each state's main holidays. Check with counsel before you rely on it.

License

Code: MIT. The rules data in rules/ is licensed separately under CC BY 4.0. Built by Yellow Stake.