Score and rank candidates
score_candidatesCheck a list of listings against a saved buy box and rank them. Pass each listing as an object with whatever fields you scraped (price, mileage, year, seats, a description, etc.).
Numeric rules (max_X, X_max, min_X, X_min) exclude listings that break them.
dealbreakers found in the listing text exclude it.
must_haves, nice_to_haves, preferred_brands_or_models and target_X / X_target score the listing.
Anything the listing doesn't state is 'unknown', not a pass: verify those with the seller's data before recommending. Excluded listings are returned last with the rule they broke. Show the user the ranked results and get confirmation before acting.
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": {
"category": "<category>",
"listings": "<listings>"
},
"name": "score_candidates"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category | Yes | ||
| listings | Yes |