Skip to main content
Glama
switch-parental-controls

switch-parental-controls

switch_complete_login

Completes Nintendo login with the redirect URL from the 'Select this person' button, returns a session token to save as SWITCH_PARENTAL_CONTROLS_SESSION_TOKEN, and unlocks other tools.

Instructions

Finish the Nintendo login with the link copied after switch_get_login_url.

Use it once the user has the link of the "Select this person" button. It signs in, makes the other tools usable and returns the session token with the command to save it as SWITCH_PARENTAL_CONTROLS_SESSION_TOKEN.

Returns "Error: No pending login found. ..." if switch_get_login_url was not called first, and "Error: ..." if the link is invalid or the login fails.

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": {
      "redirect_url": "<redirect_url>"
    },
    "name": "switch_complete_login"
  }
}

Input Schema

NameRequiredDescriptionDefault
redirect_urlYesThe URL you were redirected to after clicking 'Select this person' on the Nintendo login page. It starts with 'npf71b963c1b7b6d119://' or similar.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv1.4.1
    • removedInput schema / $defs
      Removed value: -{
      -  "CompleteLoginInput": {
      -    "additionalProperties": false,
      -    "description": "Input model for completing the Nintendo login flow.",
      -    "properties": {
      -      "redirect_url": {
      -        "description": "The URL you were redirected to after clicking 'Select this person' on the Nintendo login page. It starts with 'npf71b963c1b7b6d119://' or similar.",
      -        "minLength": 10,
      -        "title": "Redirect Url",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "redirect_url"
      -    ],
      -    "title": "CompleteLoginInput",
      -    "type": "object"
      -  }
      -}
    • removedInput schema / properties / params
      Removed value: -{
      -  "$ref": "#/$defs/CompleteLoginInput"
      -}
    • addedInput schema / properties / redirect_url
      Added value: +{
      +  "description": "The URL you were redirected to after clicking 'Select this person' on the Nintendo login page. It starts with 'npf71b963c1b7b6d119://' or similar.",
      +  "minLength": 10,
      +  "title": "Redirect Url",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "params"
      -]New value: +[
      +  "redirect_url"
      +]
  2. First observedv0.1.0

TDQS

A4.7/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false, openWorldHint=true, idempotentHint=false and destructiveHint=false; the description adds meaningful behavior beyond that: it performs a sign-in, unblocks the other tools, returns a session token with a save instruction, and quotes the exact failure messages for a missing pending login or an invalid link. It stops short of saying whether the login link is single-use or time-limited, which matters for retry behavior.

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?

Three short, front-loaded blocks: what it does, when to call it, and what failures look like. No sentence is redundant, and the prerequisite appears before the error discussion where an agent will read it first.

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 single-parameter, stateful login-completion step, the definition covers purpose, prerequisite, side effects, credential handling and error strings; the output schema carries the return shape. Nothing an agent needs in order to call it correctly 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% and the parameter already documents the npf71b963c1b7b6d119:// prefix, so the baseline is 3. The description adds origin context the schema lacks: the value is the link copied after switch_get_login_url / from the 'Select this person' button, clarifying where the agent should source it.

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?

"Finish the Nintendo login with the link copied after switch_get_login_url" states a specific verb (finish/complete) and resource (Nintendo login), and explicitly ties itself to the sibling tool that produces its input. An agent can distinguish this from switch_get_login_url 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?

Gives an explicit precondition ("once the user has the link of the 'Select this person' button") and names the required prior call, switch_get_login_url, which effectively defines when not to use it. It also states the payoff ("makes the other tools usable"), so the sequencing decision is unambiguous.

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