willitsend

v0.1.0
io.github.abryfs/willitsend Checked 4 days ago Published 4 months ago

Deterministic pre-send lint for SMS/iMessage: silent carrier filtering and segment blowups.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

preflight_message Preflight a message before sending

Analyzes (lints) a draft SMS/iMessage BEFORE you send it — it sends nothing itself, makes no delivery attempt, and has no side effects. Call this first, before send_message or any other messaging tool, on every outbound draft. Returns: a verdict (pass, warn, block, or needs_context — block-severity issues that depend on context you didn't provide, like whether this is the first message to this contact); a list of findings, each with a severity, a stable rule id, a plain-language explanation, an optional concrete fix, and a citation URL (AgentPhone docs, CTIA, or Twilio guidelines) backing…

ParameterTypeDescription
body *stringThe exact message text to preflight. Pass an empty string for a media-only send. This text is used only for local analysis — the tool never stores or forwards it anywhere.
brand_namestringSender brand or company name that should be identifiable in a first message. Without it the brand-identification check degrades to advisory only.
campaign_typestring10DLC campaign tier, if known, to attach a static daily-send-cap illustration to the trace.
destination_capabilitiesobjectKnown delivery capabilities for the destination, if you already looked them up. Passing this explicitly always takes precedence over — and skips — this server's own optional lookup.
destination_line_typestringDestination phone line type, if known from an external lookup. Never guess this from the number itself — VoIP lines often have unreliable iMessage/SMS delivery.
is_first_message_to_contactbooleanWhether this is the first outbound message ever sent to this contact. Set true or false when you know it — first messages carry stricter compliance rules (opt-out language, brand identification, opt…
media_urlsarrayMedia attachment URLs. 2-20 entries triggers an iMessage carousel; check the returned findings for carousel-size warnings on other channels.
recipientsarray2+ destinations to create a new iMessage group (iMessage only, never delivers as SMS). Do not combine with to_number.
reply_to_message_idstringiMessage-only threaded reply target message id.
response_formatstringOutput size. "detailed" (default): full messages, fixes, and citation URLs. "concise": one line per finding (severity, rule, fix), ~10x fewer tokens — same engine, same verdict, everything needed to…
send_stylestringiMessage-only visual send effect (e.g. "confetti", "slam"). Silently dropped outside iMessage — flagged unless the channel is confirmed iMessage.
to_numberstringSingle destination: E.164 phone number (e.g. +15551234567), email (iMessage only), a 5-6 digit short code, or a grp_ group id. Omit when using `recipients` for a multi-recipient group.