Preview or Save Site Screening Rules
leadshield_configure_spam_policyPreview 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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"site": "<site>"
},
"name": "leadshield_configure_spam_policy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | Target site or client slug. | |
| dryRun | No | Defaults to true. Set to false with account write access to save changes. | |
| maxUrls | No | Maximum allowed URLs when blockUrlsInMessage is false. | |
| formType | No | Default form-type preset for this site. | |
| blockedKeywords | No | Keywords or phrases that block a submission, matched without regard to case. | |
| allowedCountries | No | Allowed ISO 3166-1 alpha-2 country codes (e.g. ['US', 'CA']). | |
| requiredKeywords | No | At least one listed phrase must appear in the message, matched without regard to case. An empty list disables this rule. | |
| blockUrlsInMessage | No | Whether to block URLs and HTML anchor tags in messages. | |
| allowedPhoneFormats | No | Accept 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-format setting. |