Skip to main content
Glama
antigravity-desktop-live-quota-mcp

antigravity-desktop-live-quota-mcp

by Mefamex

clean_scratch_cache

Safely removes temporary scratch directories created by Antigravity Desktop sessions, with dry-run preview and optional age-based cleanup.

Instructions

Safely cleans temporary scratch directories (~/.gemini/antigravity/brain/*/scratch/) created by Antigravity Desktop during sessions.

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

Input Schema

NameRequiredDescriptionDefault
dry_runNoIf true, calculates the cleanable size without deleting files.
older_than_hoursNoCleans files older than the specified number of hours (0 means all).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.3.0
    • changedInput schema / properties / dry_run / description
      Previous value: -"True ise dosyaları silmeden temizlenecek boyutu hesaplar."New value: +"If true, calculates the cleanable size without deleting files."
    • changedInput schema / properties / older_than_hours / description
      Previous value: -"Belirtilen saatten eski dosyaları temizler (0 ise tümü)."New value: +"Cleans files older than the specified number of hours (0 means all)."
  2. Addedv1.1.1

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden for a deletion operation. It identifies the target directory pattern and says it is 'safe,' but does not define safety, explain whether active sessions are affected, disclose irreversibility, or state permission requirements; dry_run behavior is only covered by the schema.

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 description is a single front-loaded sentence that identifies the action, target, and origin with no wasted clauses. The word 'safely' is somewhat vague, but the overall structure is efficient and clear.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple two-parameter cleanup tool with a fully described schema and no output schema, the description adequately identifies the target. However, because there are no annotations for a destructive operation, it should do more to explain safety boundaries, active-session impact, and expected outcomes.

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 both dry_run and older_than_hours are already documented in the input schema. The description adds no parameter-specific meaning beyond that baseline.

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 gives a specific verb (cleans), a specific resource (temporary scratch directories), and an exact path pattern under Antigravity Desktop's brain directory. An agent can distinguish this from the status/badge siblings without opening the schema.

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?

It states that the operation is 'safe' but gives no conditions for when to invoke it, when to avoid it, or how it relates to alternatives such as status checks. There is no guidance about running it during active sessions or when disk pressure warrants cleanup.

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