Skip to main content
Glama
switch-parental-controls

switch-parental-controls

switch_set_content_restriction_level

Idempotent

Set the age-rating content restriction level for all games on a Nintendo Switch device, choosing NONE, CHILDREN, YOUNG_TEENS, OLDER_TEENS, or CUSTOM to control which games may start.

Instructions

Set which games may start, by age rating, for all apps of a device.

Use it to change the age rating filter: NONE, CHILDREN, YOUNG_TEENS, OLDER_TEENS or CUSTOM. To allow one blocked app use switch_set_app_allow_list instead. 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>",
      "level": "<level>"
    },
    "name": "switch_set_content_restriction_level"
  }
}

Input Schema

NameRequiredDescriptionDefault
levelYesContent restriction level: 'NONE' (no restriction), 'CHILDREN' (young child), 'YOUNG_TEENS', 'OLDER_TEENS' (teen), or 'CUSTOM'.
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: -{
      -  "SetContentRestrictionInput": {
      -    "additionalProperties": false,
      -    "description": "Input model for setting the content restriction level.",
      -    "properties": {
      -      "device_id": {
      -        "description": "The unique device ID. Use switch_list_devices to find it.",
      -        "title": "Device Id",
      -        "type": "string"
      -      },
      -      "level": {
      -        "description": "Content restriction level: 'NONE' (no restriction), 'CHILDREN' (young child), 'YOUNG_TEENS', 'OLDER_TEENS' (teen), or 'CUSTOM'.",
      -        "pattern": "^(NONE|CHILDREN|YOUNG_TEENS|OLDER_TEENS|CUSTOM)$",
      -        "title": "Level",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "device_id",
      -      "level"
      -    ],
      -    "title": "SetContentRestrictionInput",
      -    "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 / level
      Added value: +{
      +  "description": "Content restriction level: 'NONE' (no restriction), 'CHILDREN' (young child), 'YOUNG_TEENS', 'OLDER_TEENS' (teen), or 'CUSTOM'.",
      +  "pattern": "^(NONE|CHILDREN|YOUNG_TEENS|OLDER_TEENS|CUSTOM)$",
      +  "title": "Level",
      +  "type": "string"
      +}
    • removedInput schema / properties / params
      Removed value: -{
      -  "$ref": "#/$defs/SetContentRestrictionInput"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "params"
      -]New value: +[
      +  "device_id",
      +  "level"
      +]
  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?

Beyond the annotations (readOnlyHint=false, idempotentHint=true, destructiveHint=false), it discloses failure modes verbatim: unknown device_id, missing session token, and expired token with the remedy of re-running switch_get_login_url. What it does not cover is how the CUSTOM level behaves — whether it needs a follow-up call to define per-app rules or leaves existing rules in place — which matters for a mutating tool.

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

Conciseness5/5

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

Front-loaded with the action, then the alternative, then the outcome and error contract. The quoted error strings are slightly verbose but each maps to a distinct recovery path, so nothing is wasted.

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

Completeness4/5

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

An output schema exists, so return values need not be spelled out and 'Returns a confirmation' suffices. Auth and device-not-found paths are fully covered; the only shortfall is the unexplained CUSTOM mode on a two-parameter mutation tool.

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 coverage is 100%, so both parameters are already documented, including the enumerated level values and the pointer to switch_list_devices for device_id. The description restates the enum and adds no format or semantics beyond the schema, so the baseline 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?

States a specific verb and resource ('Set which games may start, by age rating') plus the scope ('for all apps of a device'), which pins down that this is device-wide rather than per-title. It is immediately distinguishable from switch_set_app_allow_list, which the description names as the per-app route.

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 an explicit use case ('change the age rating filter') and an explicit alternative with the condition that selects it: 'To allow one blocked app use switch_set_app_allow_list instead.' That is the key routing decision for this family of tools, and it is stated rather than implied.

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