Set Daily Screen Time Limit
safelagoon_set_daily_limitSet how much total SafeLagoon screen time a child gets per day. Unlike a blocking window, this does not care when the time is spent — once the allowance is used up for the day, use is blocked.
Give the allowance in minutes, up to 1440 (24 hours). If a daily allowance already exists for the same days it is updated rather than duplicated. That update overwrites the previous minutes in place with no undo/history; the old allowance is not kept. To revert, call this again with the earlier minutes from safelagoon_list_screentime_rules, or remove it with safelagoon_delete_daily_limit.
Leave days empty to apply the allowance every day. Pass real weekday names only; if the parent wrote a word that is not a day, ask them instead of guessing. name is the limit's label, never a child's name: a child the parent names is the profile_id. When creating a rule, prefer a canned name (Weekends, Weekdays, Bedtime, School days, Daily allowance) over an invented one, so name_local applies.
The parent portal renders this result as a card. Do not repeat the card data as a table or list; one short insight is enough. Parent-facing rule labels are days_local, applies_to_local, blocks_local, and canned name_local. English days / applies_to / blocks / name are for the portal parser — copy the *_local fields in prose.
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": {
"profile_id": "<profile_id>",
"minutes": "<minutes>"
},
"name": "safelagoon_set_daily_limit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | ||
| name | No | ||
| minutes | Yes | ||
| profile_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| created | No | ||
| updated | No | ||
| replaced_existing | Yes |