Skip to main content
Glama
switch-parental-controls

switch-parental-controls

switch_clear_cache

Idempotent

Delete locally cached monthly summaries so they are fetched again when past-month playtime or summary data looks stale; optionally filter by device, year, or month without contacting Nintendo.

Instructions

Delete the local copies of past monthly summaries, so they are fetched again.

Use it when switch_get_monthly_summary or switch_get_playtime show old or unexpected numbers for a past month; for a single call, skip_cache=true on those tools does the same without deleting anything. Without arguments it clears everything, or only one device, year or month. It does not contact Nintendo and changes nothing on the console.

Returns "✓ Cleared cached file(s)." or "No cached files found matching the given filters."

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "switch_clear_cache"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearNoLimit clearing to this year. Omit to clear all years.
monthNoLimit clearing to this month (1-12). Requires year to be set.
device_idNoLimit clearing to this device ID. Omit to clear cache for all devices.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv1.4.1
    • removedInput schema / $defs
      Removed value: -{
      -  "ClearCacheInput": {
      -    "additionalProperties": false,
      -    "description": "Input model for clearing the historic data cache.",
      -    "properties": {
      -      "device_id": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Limit clearing to this device ID. Omit to clear cache for all devices.",
      -        "title": "Device Id"
      -      },
      -      "month": {
      -        "anyOf": [
      -          {
      -            "maximum": 12,
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Limit clearing to this month (1-12). Requires year to be set.",
      -        "title": "Month"
      -      },
      -      "year": {
      -        "anyOf": [
      -          {
      -            "maximum": 2100,
      -            "minimum": 2017,
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Limit clearing to this year. Omit to clear all years.",
      -        "title": "Year"
      -      }
      -    },
      -    "title": "ClearCacheInput",
      -    "type": "object"
      -  }
      -}
    • addedInput schema / properties / device_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Limit clearing to this device ID. Omit to clear cache for all devices.",
      +  "title": "Device Id"
      +}
    • addedInput schema / properties / month
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maximum": 12,
      +      "minimum": 1,
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Limit clearing to this month (1-12). Requires year to be set.",
      +  "title": "Month"
      +}
    • removedInput schema / properties / params
      Removed value: -{
      -  "$ref": "#/$defs/ClearCacheInput"
      -}
    • addedInput schema / properties / year
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maximum": 2100,
      +      "minimum": 2017,
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Limit clearing to this year. Omit to clear all years.",
      +  "title": "Year"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "params"
      -]
  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 declare readOnlyHint=false, destructiveHint=false, idempotentHint=true and openWorldHint=false; the description adds the key context that only local cache files are deleted and that they are regenerated by refetching. It also explicitly reassures 'It does not contact Nintendo and changes nothing on the console,' which is consistent with the annotations. It stops short of describing whether deletion is reversible beyond the refetch, but the cache-rebuild consequence covers the practical risk.

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 definition is short and front-loaded: action first, then when-to-use, then the lighter alternative, then the no-argument default. The return-value sentence is slightly redundant given an output schema exists, but it is brief and does not bloat the description.

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 three-parameter, zero-required cache-clearing tool, the definition covers what is deleted, what is not touched, when to prefer it, and what to use instead for a single call. Combined with the fully described schema and an output schema, an agent has everything needed to call it correctly.

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%, so the schema already documents year, month and device_id including the 'requires year to be set' constraint. The description's 'only one device, year or month' phrasing restates what the schema already encodes rather than adding new filter semantics. Baseline 3 is appropriate when the schema carries the parameter detail.

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 first sentence gives a specific verb and resource ('Delete the local copies of past monthly summaries') plus the consequence ('so they are fetched again'). It also names the sibling tools whose output this affects, so the agent can place it relative to switch_get_monthly_summary and switch_get_playtime.

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 trigger condition explicitly ('when ... show old or unexpected numbers for a past month') and the lighter alternative for the single-call case ('skip_cache=true on those tools does the same without deleting anything'). The default scope ('Without arguments it clears everything') is also given, leaving nothing to inference.

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