Rule-Based Lead Score
lead_score_rulesScore sales leads with your own weighted rules and see each rule's points. Send the leads (your record code plus any of job title, company size, source and last activity date) and the rules: title or source contains or equals some words, company size or days since last activity at least, at most or between two numbers, each with its points (negative to subtract). Send as_of when a rule uses days since activity, and a threshold if you want each lead marked as meeting it. Get back every lead's total, the points from each rule that matched, the leads ranked highest first, and which rules could not be checked because a value was missing. Answer fields: ok, verdict, result, rule, does_not, sources, observation, signature, verify. Errors: ok false with the reason (bad input, too large, hourly limit). Free. No model, no network, nothing you send is stored by the tool, and every answer is signed with LLPRO's key (check it at https://llpro.ai/lead-score-rules). Labels are your own text: emails, web addresses and long digit runs are refused. Not legal, tax or financial advice.
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": {
"leads": "<leads>",
"rules": "<rules>"
},
"name": "lead_score_rules"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as_of | No | Date to count days since last activity from, YYYY-MM-DD (needed when a rule uses days_since_activity). | |
| label | No | Optional label for the run (your own text, echoed back; not a person). | |
| leads | Yes | Leads to score (up to 200). | |
| rules | Yes | Scoring rules (up to 50), applied to every lead. | |
| threshold | No | Optional: score at or above which a lead meets your bar (for example a marketing-qualified lead). |