Gem favorit
set_favoriteUse this when the user wants a recipe or product saved to or removed from their Goma favourites, as the heart button in the Goma app. Needs a recipeId or productId from an earlier result. Removing a recipe takes it out of every recipe list the user owns; a list shared with their household keeps it.
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": {
"type": "<type>",
"id": "<id>",
"saved": "<saved>"
},
"name": "set_favorite"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | recipeId for a recipe, productId for a product. | |
| type | Yes | ||
| saved | Yes | True to save, false to remove. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| url | Yes | The user's saved recipes or Mine produkter on goma.gg. | |
| type | Yes | ||
| saved | Yes | Whether the item is now among the user's favourites. | |
| keptInSharedList | No | Set when a recipe is removed: true if a list shared with the household still holds it. |