Skip to main content
Glama
switch-parental-controls

switch-parental-controls

switch_set_bedtime_alarm

Idempotent

Set the daily start time for a device's bedtime alarm, using hour 16–23 (or 0 with minute 0 to disable it). Use it to enforce evening bedtime limits on a Nintendo Switch.

Instructions

Set the time from which a device shows the bedtime alarm, for every day.

Use it for the evening part of bedtime (16:00 to 23:00), or hour=0 and minute=0 to turn the alarm off. The morning end is set with switch_set_bedtime_end_time, a bedtime for single weekdays with switch_set_day_restrictions. Returns a confirmation.

Times outside 16:00 to 23:00 are rejected with the reason. 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>",
      "hour": "<hour>"
    },
    "name": "switch_set_bedtime_alarm"
  }
}

Input Schema

NameRequiredDescriptionDefault
hourYesHour for the bedtime alarm (16-23). Use 0 with minute=0 to disable the alarm.
minuteNoMinute for the bedtime alarm (0-59).
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. Changed6 schema fields changedv1.4.1
    • removedInput schema / $defs
      Removed value: -{
      -  "SetBedtimeAlarmInput": {
      -    "additionalProperties": false,
      -    "description": "Input model for setting the bedtime alarm.",
      -    "properties": {
      -      "device_id": {
      -        "description": "The unique device ID. Use switch_list_devices to find it.",
      -        "title": "Device Id",
      -        "type": "string"
      -      },
      -      "hour": {
      -        "description": "Hour for the bedtime alarm (16-23). Use 0 with minute=0 to disable the alarm.",
      -        "maximum": 23,
      -        "minimum": 0,
      -        "title": "Hour",
      -        "type": "integer"
      -      },
      -      "minute": {
      -        "default": 0,
      -        "description": "Minute for the bedtime alarm (0-59).",
      -        "maximum": 59,
      -        "minimum": 0,
      -        "title": "Minute",
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "device_id",
      -      "hour"
      -    ],
      -    "title": "SetBedtimeAlarmInput",
      -    "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 / hour
      Added value: +{
      +  "description": "Hour for the bedtime alarm (16-23). Use 0 with minute=0 to disable the alarm.",
      +  "maximum": 23,
      +  "minimum": 0,
      +  "title": "Hour",
      +  "type": "integer"
      +}
    • addedInput schema / properties / minute
      Added value: +{
      +  "default": 0,
      +  "description": "Minute for the bedtime alarm (0-59).",
      +  "maximum": 59,
      +  "minimum": 0,
      +  "title": "Minute",
      +  "type": "integer"
      +}
    • removedInput schema / properties / params
      Removed value: -{
      -  "$ref": "#/$defs/SetBedtimeAlarmInput"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "params"
      -]New value: +[
      +  "device_id",
      +  "hour"
      +]
  2. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare idempotentHint=true and destructiveHint=false, and the description adds substantial context beyond them: out-of-range times are rejected with a reason, the specific error strings for an unknown device_id, and a full authentication failure/recovery path via switch_get_login_url. It also confirms the success path returns a confirmation.

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 purpose, then constraints, then error behavior — a sensible ordering. The verbatim error-string enumeration is slightly verbose, but each line maps to a distinct failure mode an agent may need to handle, so the length is mostly earned.

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 3-parameter mutation tool, the description covers the valid input range, the disable convention, the day-scope semantics, auth prerequisites and recovery, and the error surface. Since an output schema exists, it correctly does not spend text describing return values.

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%, so the baseline is 3; the schema already documents the 16-23 hour range and the 'use 0 with minute=0 to disable' rule that the description repeats. The description does clarify that the setting applies to every day, but adds no new parameter-level syntax or interaction detail beyond the schema.

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?

States a specific verb and resource ('Set the time from which a device shows the bedtime alarm, for every day') and explicitly separates the evening boundary from the morning end (switch_set_bedtime_end_time) and weekday scoping (switch_set_day_restrictions), so the agent can distinguish it from siblings 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?

Gives the exact usage window (16:00 to 23:00) and a special-case invocation (hour=0 with minute=0 to disable), plus names the alternative tools for the morning end and single-weekday configuration. It states both when to use this tool and when to reach for another one.

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