Check whether two products work together
check_compatibilityWhether two Trailhead Supply products work together (product + with), or which products fill a role for one product (product + role: accessory, requires, works_with; up to 8 products on sale, with price and stock). The verdict is listed (the catalogue links the two products), fits_rule (no link, but a catalogue rule matches them; reason says which) or unknown (the catalogue holds no data on the pair; unknown does not mean incompatible).
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": {
"product": "<product>"
},
"name": "check_compatibility"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | Instead of with: the relation to list products for, e.g. accessory for what fits it, requires for what it needs. | |
| with | No | The second product, named the same ways as product. Give this or role. | |
| locale | No | Answer language: en (default en). Names, labels and URLs follow it. | |
| product | Yes | The product: its public_id from an earlier answer, its page URL or slug on the store's website, or the manufacturer model number. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| with | Yes | ||
| reason | Yes | Why, in the answer language. | |
| matches | Yes | Role mode: the products filling the role, best first; empty in pair mode. | |
| product | Yes | ||
| verdict | Yes | ||
| truncated | No | Present and true only when the answer outgrew the size budget and its last list items were left out; ask narrower to see them. | |
| answer_type | No | What this answer is, for rendering. | |
| relation_type | Yes |