Skip to main content
Glama

Set Daily Screen Time Limit

safelagoon_set_daily_limit
DestructiveIdempotent

Set 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

NameRequiredDescriptionDefault
daysNo
nameNo
minutesYes
profile_idYes

Output Schema

NameRequiredDescriptionDefault
createdNo
updatedNo
replaced_existingYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare destructiveHint=true and idempotentHint=true; the description earns credit by explaining exactly what that means in practice — an existing rule for the same days is updated rather than duplicated, the previous minutes are overwritten in place with no undo/history, and the revert path is given. It also discloses the 1440-minute ceiling and the portal card rendering constraint, none of which appear in structured fields.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core verb and the key contrast to blocking windows, and the mutation/undo warning sits in its own paragraph where it is easy to find. The third paragraph stacks four distinct rules (days, name vs profile_id, canned names) into one dense block, which is slightly harder to parse than the rest.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive upsert with a zero-coverage schema, the description covers everything an agent needs: the unit and ceiling, upsert and overwrite semantics, the revert route, parameter meanings, and how to present the result to the parent. Return values need not be explained because an output schema exists.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must carry all four parameters, and it does: `minutes` has a range bound (up to 1440), `days` has a null/empty semantic (applies every day) plus a format constraint (real weekday names only), `name` is explicitly a rule label rather than a child's name with a canned preference, and `profile_id` is identified as the child. No parameter is left ambiguous.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb and resource — set the total daily SafeLagoon screen-time allowance for a child — and immediately distinguishes it from the sibling blocking-window concept ("Unlike a blocking window, this does not care when the time is spent"). The agent can separate this from schedule tools and from safelagoon_delete_daily_limit without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit when-to-use and when-not guidance: use this for a total daily allowance, use safelagoon_list_screentime_rules to recover earlier minutes for a revert, use safelagoon_delete_daily_limit to remove the rule. It also states the empty-`days` default, says to ask the parent rather than guess at an invalid weekday, and says to prefer canned names.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.