Skip to main content
Glama

Truncate collection

truncate_collection

Clear all records in a collection while preserving its schema. Use to reset data for testing or redeployments, knowing the action cannot be undone.

Instructions

Delete ALL records of a collection while keeping the collection/schema itself. Cannot be undone.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idOrNameYesCollection id or name to truncate.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the burden of behavioral disclosure. It explicitly states the destructive scope ('Delete ALL records') and warns 'Cannot be undone,' which is the most critical side effect. It does not mention permissions, cascade/dependency effects, or whether auto-increment counters reset, but the core risk is disclosed.

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?

The description is two short sentences with no fluff; the destructive scope and irreversibility are front-loaded. Every sentence contributes essential information and nothing is wasted.

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 one-parameter destructive tool with no output schema, the description covers the core outcome and the key risk of irreversibility. It could be slightly more helpful by naming the alternative for deleting the whole collection, but that is not necessary 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?

The only parameter, idOrName, has a complete schema description ('Collection id or name to truncate'), and the tool description does not add additional parameter detail. Since schema description coverage is 100%, the description adds no extra meaning and the baseline 3 applies.

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 uses a specific verb ('Delete') and resource ('ALL records of a collection'), and clarifies that the collection/schema itself is preserved. This clearly distinguishes it from siblings like delete_collection and delete_record without needing to inspect them.

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?

The description clearly frames when this tool applies: removing every record while retaining the collection structure. It does not explicitly name alternatives or say when not to use it, but the contrast with delete_collection and delete_record is embedded in the wording. This is clear context, though not an explicit exclusion list.

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

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/nestebe/pocketbase-mcp'

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