cdp_score_spam
Analyze email or message content to determine spam probability using the CDP MCP Server's spam scoring API. Submit content as a JSON array for evaluation.
Instructions
Score email/message content for spam likelihood (POST /v2/{tenantId}/spam/score). The request body MUST be a JSON ARRAY: [{"subject": "...", "body": "...", "fromAddress": "...", "fromName": "..."}]. Passing a single object returns E400 'Cannot deserialize from Object value'. Pass the array as a JSON string.
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": {
"body": "<body>"
},
"name": "cdp_score_spam"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| tenant_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |