Skip to main content
Glama
switch-parental-controls

switch-parental-controls

switch_set_daily_playtime_limit

Idempotent

Sets or removes the daily playtime limit for a Nintendo Switch device, controlling how many minutes are allowed each day in DAILY timer mode.

Instructions

Set the daily playtime limit of a device, or remove it with minutes=-1.

Use it to change the limit that applies to every day while the timer mode is DAILY. For different limits per weekday use switch_set_day_restrictions (with timer mode EACH_DAY_OF_THE_WEEK), for more time today only switch_add_extra_time. Returns a confirmation with the new limit.

Returns "Error: Device '' not found. ..." for an unknown device_id. Returns "Error: Not authenticated. ..." without a session token and "Error: Authentication failed. ..." when it expired; then log in again with switch_get_login_url.

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": {
      "device_id": "<device_id>",
      "minutes": "<minutes>"
    },
    "name": "switch_set_daily_playtime_limit"
  }
}

Input Schema

NameRequiredDescriptionDefault
minutesYesDaily playtime limit in minutes (0-360). Use -1 to remove the limit entirely.
device_idYesThe unique device ID. Use switch_list_devices to find it.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv1.4.1
    • removedInput schema / $defs
      Removed value: -{
      -  "SetPlaytimeLimitInput": {
      -    "additionalProperties": false,
      -    "description": "Input model for setting the daily playtime limit.",
      -    "properties": {
      -      "device_id": {
      -        "description": "The unique device ID. Use switch_list_devices to find it.",
      -        "title": "Device Id",
      -        "type": "string"
      -      },
      -      "minutes": {
      -        "description": "Daily playtime limit in minutes (0-360). Use -1 to remove the limit entirely.",
      -        "maximum": 360,
      -        "minimum": -1,
      -        "title": "Minutes",
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "device_id",
      -      "minutes"
      -    ],
      -    "title": "SetPlaytimeLimitInput",
      -    "type": "object"
      -  }
      -}
    • addedInput schema / properties / device_id
      Added value: +{
      +  "description": "The unique device ID. Use switch_list_devices to find it.",
      +  "title": "Device Id",
      +  "type": "string"
      +}
    • addedInput schema / properties / minutes
      Added value: +{
      +  "description": "Daily playtime limit in minutes (0-360). Use -1 to remove the limit entirely.",
      +  "maximum": 360,
      +  "minimum": -1,
      +  "title": "Minutes",
      +  "type": "integer"
      +}
    • removedInput schema / properties / params
      Removed value: -{
      -  "$ref": "#/$defs/SetPlaytimeLimitInput"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "params"
      -]New value: +[
      +  "device_id",
      +  "minutes"
      +]
  2. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=true), but the description adds real context beyond them: the shape of the success response ("a confirmation with the new limit") and the exact failure modes with their error strings and the recovery path via switch_get_login_url. It stops short of saying whether an in-progress session is affected or whether a currently-running timer is truncated.

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 action, then alternatives, then failure behavior — a logical progression with no filler. The error-message block is slightly verbose but each line corresponds to a distinct recovery action.

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 two-parameter mutation with an output schema and full annotation coverage, the description supplies everything an agent needs: scope, alternative routing, removal semantics, auth prerequisites, and error recovery. Return-value explanation is correctly omitted since an output schema exists.

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

Parameters3/5

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

Schema description coverage is 100%, with both parameters documented and the -1 sentinel and 0-360 bounds stated in the schema itself. The description restates the minutes=-1 removal convention but adds no format, unit, or edge-case detail beyond the schema, so the baseline of 3 applies.

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?

The description states a specific verb and resource ("Set the daily playtime limit of a device") and adds the removal semantics ("remove it with minutes=-1") plus the scoping condition (applies every day while timer mode is DAILY). It distinguishes itself from switch_set_day_restrictions and switch_add_extra_time by naming both and stating when each applies.

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 routing is given: use this for a uniform daily limit under DAILY mode, switch_set_day_restrictions for per-weekday limits under EACH_DAY_OF_THE_WEEK, and switch_add_extra_time for a one-off extension today. The condition that selects each alternative is stated, not left to inference.

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