set_preference
Set allergies, dietary needs, favorite foods, and location preferences to build a Purdue dining profile and personalize meal recommendations.
Instructions
Set a dietary preference, allergy, or food preference.
Use this to set up the user's profile. Examples:
- set_preference("allergy", "peanuts")
- set_preference("dislike", "tofu")
- set_preference("favorite", "grilled chicken")
- set_preference("favorite_location", "wiley")
- set_preference("vegetarian", "true")
- set_preference("diet", "high protein")
Args:
key: Preference type — "allergy", "dislike", "favorite", "favorite_location",
"vegetarian", "diet", or any custom key
value: The preference value
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": {
"key": "<key>",
"value": "<value>"
},
"name": "set_preference"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| value | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |