Skip to main content
Glama
switch-parental-controls

switch-parental-controls

switch_add_extra_time

Add extra playtime for a single device today only, on top of its daily limit. Use it for one-off bonus minutes; repeated calls increase today's extra time without changing other days.

Instructions

Give a device extra playtime for today only, on top of its limit.

Use it for a one-off "30 more minutes today"; the limit of other days stays as it is. Every call adds to the extra time already given. To change the limit itself use switch_set_daily_playtime_limit. Returns a confirmation.

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_add_extra_time"
  }
}

Input Schema

NameRequiredDescriptionDefault
minutesYesNumber of extra minutes to add for today (must be positive).
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: -{
      -  "AddExtraTimeInput": {
      -    "additionalProperties": false,
      -    "description": "Input model for adding extra playtime.",
      -    "properties": {
      -      "device_id": {
      -        "description": "The unique device ID. Use switch_list_devices to find it.",
      -        "title": "Device Id",
      -        "type": "string"
      -      },
      -      "minutes": {
      -        "description": "Number of extra minutes to add for today (must be positive).",
      -        "maximum": 360,
      -        "minimum": 1,
      -        "title": "Minutes",
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "device_id",
      -      "minutes"
      -    ],
      -    "title": "AddExtraTimeInput",
      -    "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": "Number of extra minutes to add for today (must be positive).",
      +  "maximum": 360,
      +  "minimum": 1,
      +  "title": "Minutes",
      +  "type": "integer"
      +}
    • removedInput schema / properties / params
      Removed value: -{
      -  "$ref": "#/$defs/AddExtraTimeInput"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "params"
      -]New value: +[
      +  "device_id",
      +  "minutes"
      +]
  2. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations declare non-read-only, non-idempotent, non-destructive, open-world, but say nothing about cumulative semantics — the description supplies that critical detail that repeated calls stack. It also discloses the specific error strings for unknown device and missing/expired auth, and routes the agent to switch_get_login_url for recovery, which is real behavioral context beyond 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?

The core behavior and the sibling disambiguation are front-loaded in the first two sentences, and each sentence carries information. The quoted error strings are somewhat verbose but earn their place as actionable failure guidance; minor trimming of the trailing error list would tighten it.

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 present, the description covers purpose, scope, accumulation behavior, the alternative tool, and the failure/auth recovery paths. Nothing an agent needs before invoking it — including how to resolve the device_id — is missing.

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

Parameters4/5

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

Schema coverage is 100%, so both parameters are already documented, including the 1–360 bounds for minutes and the pointer to switch_list_devices for device_id. The description still adds meaning the schema lacks: that minutes is additive to previously granted extra time and expires at end of day, which changes how an agent should compute the value.

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 opens with a specific verb and resource (give a device extra playtime) plus a precise scope (today only, on top of its limit). It explicitly contrasts itself with switch_set_daily_playtime_limit, so an agent can distinguish the two mutation tools without opening either 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?

It states the concrete use case ("a one-off '30 more minutes today'"), the key side effect (every call accumulates on top of existing extra time), and the boundary (other days' limits are untouched). It also names the alternative tool to use when the agent wants to change the limit itself, which is explicit when-not guidance.

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