Skip to main content
Glama
Stitch MCP Server

Stitch MCP Server

Clear Cache

stitch_cache_clear
DestructiveIdempotent

Clears cached Stitch projects and screens from the local SQLite database to reset offline data and support a fresh sync.

Instructions

Clear all cached projects and screens from the local SQLite database.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.4

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and local-only scope, so the safety profile is covered. The description adds genuine value by naming exactly what is destroyed (cached projects and screens) and where (the local SQLite database), giving the agent blast-radius context that annotations alone do not convey.

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?

A single sentence with the verb and the scope front-loaded; every clause (what is cleared, and that it is local SQLite) carries information. Nothing is padded or repeated from the title.

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?

For a simple, parameterless, destructive cache wipe, the definition covers scope, target, and storage location, and annotations supply safety semantics; no output schema is needed since there is no return payload to explain. It falls short only on the missing usage trigger and on whether remote or unsynced work is affected.

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?

The tool takes zero parameters, so there is nothing for the description to clarify beyond what the empty schema already shows. Baseline for a parameterless tool applies, with no additional argument meaning to add.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Uses a specific verb ('Clear') with a precisely bounded resource ('all cached projects and screens') and even names the storage layer ('local SQLite database'). The exhaustive 'all' scope implicitly separates it from the cache_status and cache_sync siblings, though no sibling is named explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description states what is cleared but gives no guidance on when an agent should invoke it, what preconditions exist, or how it relates to stitch_cache_status / stitch_cache_sync. The only implicit signal is that clearing is total, so no partial-clear path exists.

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