Skip to main content
Glama
jonasliesas

singlestore-mcp-server

by jonasliesas

Clean up work tables

cleanup_work_tables
Read-only

Scan SingleStore databases for leftover SAS work and temporary tables, review details like age, size, and dependencies, then drop selected tables safely from the Clean-up panel.

Instructions

Open the Schema Explorer's Clean-up panel for leftover SAS work tables.

SAS jobs leave work tables behind in SingleStore (SAS Data Management
``_dm…`` tables, SAS flow ``_flw…`` tables, ``SASTMP…`` / ``_tmp…``). The
panel scans every non-system database by name pattern (editable, and
optionally every table older than N days) and shows per table its rows,
size, creator, age, last use in the query history and dependent views.
The user selects tables, confirms, and they are dropped one by one (with a
dry-run mode and a log). Nothing is dropped by this call; only the user
can drop from the panel. Use this when the user wants to find or clean up
leftover, temporary or SAS work tables.

The result includes ``browser_url``, which opens this view full-window in
the user's browser: post it as a clickable link right under the app.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.8.1

TDQS

A4.3/5.0
Behavior5/5

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

Annotations declare readOnlyHint=true and the description corroborates this precisely, explaining nothing is dropped by the call and only the user can drop from the panel. It adds substantial context beyond the annotation: the dry-run mode, the log, the per-table metadata shown, and the returned browser_url that should be posted as a clickable link.

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-loaded with the action in the first sentence, then supporting detail. The middle paragraph is dense but each clause (name patterns, per-table columns, confirmation flow) earns its place; the description runs long for a panel-opening tool but wastes little.

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?

With no output schema and no parameters, the description carries the full burden and does so: it covers what the panel shows, what the call does and does not do, and how to handle the returned browser_url. Nothing an agent needs to invoke or present the result is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/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 disambiguate; baseline for a parameterless tool is 4.

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?

States a specific verb and resource: 'Open the Schema Explorer's Clean-up panel for leftover SAS work tables.' The closing clarification ('Nothing is dropped by this call; only the user can drop from the panel') implicitly separates it from sibling tools like schema_explorer_cleanup_drop, but 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 Guidelines4/5

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

Provides a clear when-to-use trigger: 'Use this when the user wants to find or clean up leftover, temporary or SAS work tables.' It does not name the alternative tools (schema_explorer_cleanup_scan/settings/drop) or state when not to use it.

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

Deploy Server

Other Tools