LeadShield Contact Form & B2B Solicitation Blocker

v1.1.3
io.github.mooshee/leadshield Checked 4 days ago Published 1 month ago

Preview form screening and manage site rules.

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

leadshield_screen_submission Screen a contact form message

Check a message against the connected site's spam rules and, when configured, its intent classifier. Returns the screening decision and reason. This preview does not store the message, send it to a customer, or process a payment.

ParameterTypeDescription
message *stringInbound form message or inquiry text to evaluate.
site *stringA site connected to your LeadShield account, such as 'review-demo'.
countrystringTwo-letter ISO 3166-1 alpha-2 country code (e.g. 'US', 'CA').
emailstringSubmitter email address.
formTypestringOptional form-type preset to evaluate against.
namestringSubmitter full name.
phonestringSubmitter phone number.
timezonestringSubmitter IANA timezone (e.g. 'America/Los_Angeles').

leadshield_get_blocked_spam_report Get Blocked Contact Form Spam Report & Metrics

Read blocked-message counts, categories, screening stages, and recent submissions for your connected sites. The date window uses UTC calendar days and includes today.

ParameterTypeDescription
clientSlugstringA connected site to report on. Omit to combine only the sites connected to your account.
daysintegerLookback window in days (1 to 90, default 7).
limitintegerMaximum number of recent blocked records to include (1 to 50, default 10).

leadshield_get_spam_policy Inspect Site Contact Form Spam Policy & Form-Type Presets

Inspect the saved spam rules for a connected site, including countries, phone formats, URLs, keywords, and its form preset. Supply a formType to preview that preset without changing the saved policy.

ParameterTypeDescription
site *stringA site connected to your LeadShield account.
formTypestringOptional formType preset to preview.

leadshield_configure_spam_policy Preview or Save Site Screening Rules

Preview changes to a connected site's spam rules. Set dryRun to false to save them with write access. Saved rules affect future submissions. Omitted settings are preserved. A successful save returns the policy read back from storage.

ParameterTypeDescription
site *stringTarget site or client slug.
allowedCountriesarrayAllowed ISO 3166-1 alpha-2 country codes (e.g. ['US', 'CA']).
allowedPhoneFormatsarrayAccept a phone number when it matches any listed format. Supported formats: us-nanp, uk, au, eu, international, e164, any. US_NANP and E164 are accepted aliases. An empty list restores the single-form…
blockUrlsInMessagebooleanWhether to block URLs and HTML anchor tags in messages.
blockedKeywordsarrayKeywords or phrases that block a submission, matched without regard to case.
dryRunbooleanDefaults to true. Set to false with account write access to save changes.
formTypestringDefault form-type preset for this site.
maxUrlsintegerMaximum allowed URLs when blockUrlsInMessage is false.
requiredKeywordsarrayAt least one listed phrase must appear in the message, matched without regard to case. An empty list disables this rule.

leadshield_generate_guard_embed Generate a form guard setup snippet

Generate an HTML script snippet and setup addresses for a site. Choose HTML, HighLevel, WordPress, HubSpot, or Astro. The result is setup guidance; this tool does not install or activate the guard.

ParameterTypeDescription
site *stringYour site's LeadShield identifier, such as 'review-demo'.
formTypestringOptional formType preset attribute.
platformstringTarget website or CRM platform.