Skip to main content
Glama

Tables Truncate Table

tables_truncate_table
Destructive

Remove all data rows from a table while preserving its schema. Requires confirmation before execution.

Instructions

Truncate all data rows from a table while preserving schema. Requires confirmation.

Input Schema

NameRequiredDescriptionDefault
confirmNo
table_nameYesQuote names that aren't all uppercase, exactly as list tools return them.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv3.0.0
    • addedInput schema / properties / table_name / description
      Added value: +"Quote names that aren't all uppercase, exactly as list tools return them."
  2. Addedv2.0.4

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, so the safety profile is covered structurally. The description adds the one piece annotations cannot convey: what survives the operation (the schema), plus the confirmation requirement. It omits whether the operation is reversible, which matters given undrop_table exists for the drop path.

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?

Two short sentences, no filler, with the effect and the preserved object front-loaded before the confirmation prerequisite.

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 an irreversible destructive mutation with an output schema and annotations present, the description covers effect and prerequisite but says nothing about recoverability or blast radius (irreversible vs. undrop-able). Adequate to invoke correctly, thin on consequences.

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?

Schema coverage is 50% and the uncovered parameter is 'confirm' (default false). The description's 'Requires confirmation' is the only signal that confirm must actually be set true rather than left at its default — meaningful added semantics beyond the schema.

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 (truncate) and resource (table) and scopes the effect precisely: all data rows removed, schema preserved. That phrasing implicitly separates it from drop_table, though it never names the sibling, so the agent must infer the boundary.

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

Usage Guidelines3/5

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

'Requires confirmation' hints at a prerequisite, but there is no explicit when-to-use guidance or comparison against drop_table, undrop_table, or DML-based deletion. Usage is implied rather than stated.

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