Skip to main content
Glama

Clear screen cache

clear_screen_cache
DestructiveIdempotent

Delete the files a screen has stored, so it downloads them again.

When to use:

  • An old or broken file keeps playing after refresh_screens.

When NOT to use:

  • A change that has not appeared: use refresh_screens first.

What to know:

  • Only the copies on the device are deleted; the files in the library stay. Media shows late while it downloads again. Needs screen.edit.

Parameters:

  • Example: {screenId:"scr_7"}.

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": "clear_screen_cache"
  }
}

Input Schema

NameRequiredDescriptionDefault
groupIdNoEvery screen in this screen group (list_items kind screen_groups). Use it alone, not with screenId or screenIds.
screenIdNoOne screen that gets the action. A screen id comes from list_items kind screens.
screenIdsNoThe screens that get the action, when there are several. Combined with screenId into one set; each screen gets it once.

Output Schema

NameRequiredDescriptionDefault
queuedNoHow many screens the action was sent to. Screens out of this connection's reach are left out.
stagedNoMany-screen call on a large fleet: screens that get the action in a later wave.
statusNoOne-screen call: the command's state, pending until the device confirms it.
commandIdsNoIds of the commands that were queued, one per screen.
alreadySavedNoMany-screen call: screens left out because they already had this action waiting.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations: it scopes the destruction to on-device copies while library files survive, warns that media will show late while re-downloading, and states the screen.edit permission requirement. The annotations only flag destructive/idempotent; the description supplies the blast radius, the permission gate, and the user-visible side effect.

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-loads the core action in one sentence, then uses labeled sections for when/when-not and behavioral notes, so an agent can scan it quickly. The trailing 'Parameters: - Example' line is the weakest part, duplicating what the schema already offers.

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?

An output schema exists, so return values need no explanation; what remains — destructive scope, prerequisites, transient effects, and the alternative path — is all covered. An agent has everything needed to invoke this safely on a 3-param, zero-required destructive 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 description coverage is 100%, so groupId, screenId, and screenIds (including their mutual exclusivity and combination rules) are fully documented in the schema already. The description adds only a single example payload {screenId:"scr_7"}, which is a usage form rather than new semantic meaning, so the baseline of 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 precise verb and resource: 'Delete the files a screen has stored, so it downloads them again.' That result clause distinguishes it from refresh_screens, which appears in the usage guidance as the sibling to try first.

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?

Provides an explicit 'When to use' (stale or broken file persisting after refresh_screens) and an explicit 'When NOT to use' that routes to the named alternative for a different symptom (a change that has not appeared). The decision boundary between the two tools is unambiguous.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources