Skip to main content
Glama

maintenance_vacuum

Reclaim disk space after large purge operations by running VACUUM on local SQLite databases. Frees unused page allocations to reduce file size and provides maintenance guidance for remote Supabase backends.

Instructions

Reclaim disk space after large purge operations by running VACUUM on the local SQLite database.

Best called after deep_storage_purge removes many entries — SQLite reclaims page allocations only when explicitly vacuumed, so the file size stays the same until you call this tool.

For remote (Supabase) backends, returns guidance on triggering maintenance via the dashboard.

Note: On large databases this may take up to 60 seconds. The tool runs synchronously so you will know when it is safe to proceed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dry_runNoIf true, reports the current database file size without running VACUUM. Use this to preview how large the database is before committing to a full vacuum.
Behavior5/5

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

With no annotations provided, the description carries full behavioral disclosure. It reveals critical runtime traits: synchronous execution ('runs synchronously so you will know when it is safe'), duration ('up to 60 seconds'), backend-specific behavior (local vs. Supabase), and mechanical details ('SQLite reclaims page allocations only when explicitly vacuumed').

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?

Four tightly focused paragraphs with zero filler: 1) Purpose, 2) Prerequisites/mechanics, 3) Backend exceptions, 4) Performance warning. Every sentence advances understanding; the synchronous warning is bolded for visibility. Excellent information density.

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 maintenance tool with no output schema, the description comprehensively covers prerequisites (deep_storage_purge), execution model (synchronous, 60s duration), environmental constraints (local SQLite vs remote Supabase), and safety implications. No gaps remain for correct invocation.

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 coverage is 100%, so the schema fully documents the `dry_run` parameter. The main description text does not mention the parameter or add usage examples beyond what the schema provides. Baseline 3 is appropriate when the schema carries the full semantic load.

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 opens with a specific verb ('Reclaim disk space') and resource ('SQLite database'), clearly stating the tool performs VACUUM operations. It distinguishes from siblings by explicitly referencing `deep_storage_purge` as the prerequisite operation, clarifying this is a compaction follow-up rather than a general maintenance tool.

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 explicit when-to-use guidance ('Best called after `deep_storage_purge` removes many entries') and contextual prerequisites. Also clarifies backend limitations ('For remote (Supabase) backends, returns guidance...'), effectively stating when not to use the tool for actual vacuuming and what alternative path to take.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dcostenco/BCBA'

If you have feedback or need assistance with the MCP directory API, please join our Discord server