Skip to main content
Glama

LeadShield Contact Form & B2B Solicitation Blocker

Configure or Preview Server-Side Site Spam Policy

leadshield_configure_spam_policy
Idempotent

Preview (dryRun: true) or update server-side contact form spam rules for a site, including allowedCountries, allowedPhoneFormats, blockUrlsInMessage, formType preset, blockedKeywords, and requiredKeywords. Example: leadshield_configure_spam_policy({"site":"pacific-coast-detailing","allowedCountries":["US","CA"],"blockUrlsInMessage":true,"dryRun":true})

Input Schema

NameRequiredDescriptionDefault
siteYesTarget site or client slug.
dryRunNoDefaults to true. Set to false with operator authorization to persist changes.
maxUrlsNoMaximum allowed URLs when blockUrlsInMessage is false.
formTypeNoDefault form-type preset for this site.
blockedKeywordsNoAdditional custom keywords or phrases to block in Stage 0.
allowedCountriesNoAllowed ISO 3166-1 alpha-2 country codes (e.g. ['US', 'CA']).
requiredKeywordsNoOptional keywords where at least one must appear.
blockUrlsInMessageNoWhether to block URLs and HTML anchor tags in messages.
allowedPhoneFormatsNoAllowed phone format presets (e.g. ['US_NANP', 'E164']).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.