Skip to main content
Glama
switch-parental-controls

switch-parental-controls

switch_get_device

Read-onlyIdempotent

Retrieve one device's current parental control settings and today's playtime, including timer mode, daily limit, remaining time, restriction mode, bedtime, players, and tracked apps.

Instructions

Get the current parental control settings and today's usage of one device.

Use it to see how a device is set up: timer mode, daily limit, today's playtime and remaining time, restriction mode (forced termination or alarm only), bedtime alarm and end, and the number of players and tracked apps. For the settings of each day of the week there is no read tool; for playtime history use switch_get_playtime or switch_get_monthly_summary.

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>"
    },
    "name": "switch_get_device"
  }
}

Input Schema

NameRequiredDescriptionDefault
device_idYesThe unique device ID (e.g. 'abc123'). Use switch_list_devices to find it.
response_formatNoOutput format: 'markdown' for human-readable or 'json' for machine-readable.markdown

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv1.4.1
    • removedInput schema / $defs / DeviceInput
      Removed value: -{
      -  "additionalProperties": false,
      -  "description": "Input model requiring a device ID.",
      -  "properties": {
      -    "device_id": {
      -      "description": "The unique device ID (e.g. 'abc123'). Use switch_list_devices to find it.",
      -      "title": "Device Id",
      -      "type": "string"
      -    },
      -    "response_format": {
      -      "$ref": "#/$defs/ResponseFormat",
      -      "default": "markdown",
      -      "description": "Output format: 'markdown' for human-readable or 'json' for machine-readable."
      -    }
      -  },
      -  "required": [
      -    "device_id"
      -  ],
      -  "title": "DeviceInput",
      -  "type": "object"
      -}
    • addedInput schema / properties / device_id
      Added value: +{
      +  "description": "The unique device ID (e.g. 'abc123'). Use switch_list_devices to find it.",
      +  "title": "Device Id",
      +  "type": "string"
      +}
    • removedInput schema / properties / params
      Removed value: -{
      -  "$ref": "#/$defs/DeviceInput"
      -}
    • addedInput schema / properties / response_format
      Added value: +{
      +  "$ref": "#/$defs/ResponseFormat",
      +  "default": "markdown",
      +  "description": "Output format: 'markdown' for human-readable or 'json' for machine-readable."
      +}
    • changedInput schema / required
      Previous value: -[
      -  "params"
      -]New value: +[
      +  "device_id"
      +]
  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, idempotent, non-destructive, openWorld), so the description's contribution is the failure modes: quoted error strings for an unknown device_id, a missing session, and an expired session, plus the recovery step (re-run switch_get_login_url). That auth-recovery path is information the agent cannot get from annotations. Return shape is not described, but an output schema exists, so that omission is acceptable.

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 fields, then routing alternatives, then errors — a logical order for an agent reading top-down. The multi-line verbatim error-string block is slightly verbose for the value it adds, which keeps it off a 5.

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 read tool with full annotations and an output schema, everything an agent needs to call it correctly is present: how to obtain device_id, what the response contains conceptually, when to prefer a sibling, and how to recover from auth failures. No material gap remains.

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 device_id documented and pointed at switch_list_devices, and response_format documented with an enum. The description adds no further parameter meaning (no format or ID syntax detail beyond the schema), so this sits at the baseline where the schema does the work.

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?

Opens with a specific verb and resource ("Get the current parental control settings and today's usage of one device") and then enumerates exactly which fields come back: timer mode, daily limit, playtime, remaining time, restriction mode, bedtime alarm, player and app counts. That enumeration separates it cleanly from aggregate siblings like switch_get_today_summary and history tools.

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?

Explicitly states when to use this tool (per-device setup inspection) and where to go instead: "for playtime history use switch_get_playtime or switch_get_monthly_summary." It also flags a real capability gap so the agent stops searching — "For the settings of each day of the week there is no read tool" — which prevents a doomed retry loop.

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