Set how often a category comes
upsert_category_frequency_ruleSet how many times a week a meal category should be on the plan, at least and at most. A rule about the same thing is changed, not added twice. Soft unless the household says it must hold.
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>",
"minimumPerWeek": "<minimumPerWeek>",
"maximumPerWeek": "<maximumPerWeek>",
"strength": "<strength>"
},
"name": "upsert_category_frequency_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category | Yes | The meal category. | |
| strength | Yes | Soft unless the household says the rule must hold. Hard ONLY when the words are must/never/always (må/aldri/alltid/skal/kan ikke/ikke lov). Everything else is Soft — a preference the planner may bend on a tight week — including a bare statement said in passing («Taco på fredager», «Fisk to ganger i uka», «Maks 30 minutter på hverdager») and helst/gjerne/prøv. «Maks», «minst» and a number name the limit, not its strength: they do not make a rule Hard. | |
| maximumPerWeek | Yes | Maximum dinners per week. | |
| minimumPerWeek | Yes | Minimum dinners per week. |