Compare two dishes
compare_dishesCompare two dishes ingredient by ingredient: shared items, what is unique to each, a match score, and - for the pairs that have one (nearly 900) - an editorial comparison paragraph in the requested language. Works for any two dishes in the corpus, whether or not they are an edge in the equivalence graph.
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": {
"a": "<a>",
"b": "<b>"
},
"name": "compare_dishes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | First dish: slug or name. | |
| b | Yes | Second dish: slug or name. | |
| lang | No | Language for titles, ingredient names and URLs. | en |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | Yes | ||
| notes | Yes | ||
| score | Yes | ||
| only_a | Yes | ||
| only_b | Yes | ||
| paragraph | Yes | ||
| same_form | Yes | ||
| attribution | Yes | ||
| compare_url | Yes | ||
| score_basis | Yes | ||
| stored_score | Yes | ||
| is_graph_edge | Yes | ||
| below_threshold | Yes | ||
| excluded_generics | Yes | Pantry staples deliberately excluded from BOTH the score and the ingredient lists above, because they match almost everything (flour/water/oil/salt/yeast for food, water/salt/sugar for drinks). They are present in the dishes - they are just not evidence of similarity. | |
| shared_ingredients | Yes |