Skip to main content
Glama
switch-parental-controls

switch-parental-controls

switch_get_player

Read-onlyIdempotent

Retrieve one player's total and per-app playtime for today, returning nickname, avatar URL, and app durations so you can see what they played and for how long.

Instructions

Get today's playtime of one player, per app.

Use it for "what did play today and for how long". It returns the nickname, avatar URL, today's total and the time of each app played today. For other days use switch_get_playtime, for a month switch_get_monthly_summary, both with player_id.

Returns "Error: Player '' not found on device ''. ..." for an unknown player_id. 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>",
      "player_id": "<player_id>"
    },
    "name": "switch_get_player"
  }
}

Input Schema

NameRequiredDescriptionDefault
device_idYesThe unique device ID. Use switch_list_devices to find it.
player_idYesThe unique player ID. Use switch_list_players 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. Changed6 schema fields changedv1.4.1
    • removedInput schema / $defs / PlayerInput
      Removed value: -{
      -  "additionalProperties": false,
      -  "description": "Input model for player queries.",
      -  "properties": {
      -    "device_id": {
      -      "description": "The unique device ID. Use switch_list_devices to find it.",
      -      "title": "Device Id",
      -      "type": "string"
      -    },
      -    "player_id": {
      -      "description": "The unique player ID. Use switch_list_players to find it.",
      -      "title": "Player 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",
      -    "player_id"
      -  ],
      -  "title": "PlayerInput",
      -  "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"
      +}
    • removedInput schema / properties / params
      Removed value: -{
      -  "$ref": "#/$defs/PlayerInput"
      -}
    • addedInput schema / properties / player_id
      Added value: +{
      +  "description": "The unique player ID. Use switch_list_players to find it.",
      +  "title": "Player Id",
      +  "type": "string"
      +}
    • 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",
      +  "player_id"
      +]
  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 readOnly/idempotent/non-destructive, but the description adds what that structured data cannot: the exact contents returned (nickname, avatar URL, today's total, per-app time), and the failure modes with verbatim error text for unknown player_id, unknown device_id, missing session, and expired auth. That auth-recovery detail is operationally valuable beyond the annotations.

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?

Purpose is front-loaded, followed by usage, alternatives, return shape, and errors in a logical order with no filler. The block of quoted error strings is verbose but each line carries distinct diagnostic value, so it costs little.

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?

With annotations covering the safety profile, an output schema covering return shape, and full parameter descriptions, the description only needs to add routing and failure behavior — which it does, including the auth-expiry recovery step. Nothing an agent needs to call this correctly is missing.

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% and both required parameters already point at switch_list_devices and switch_list_players for discovery. The description only reinforces that player_id is the shared key with the daily/monthly variants; it adds no format or constraint detail 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?

The description opens with a specific verb+resource+scope: 'Get today's playtime of one player, per app.' It immediately distinguishes itself from switch_get_playtime (other days) and switch_get_monthly_summary (a month), so an agent can route correctly without opening sibling schemas.

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 gives an explicit triggering question ('what did <player> play today and for how long') plus concrete alternatives with the condition that selects each ('for other days use switch_get_playtime, for a month switch_get_monthly_summary'). The recovery path for expired auth ('log in again with switch_get_login_url') is also spelled out.

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