Skip to main content
Glama

cleanup_old_ranges

Delete test and temporary ranges while preserving production ranges for specified users. Requires confirmation to prevent accidental deletion.

Instructions

Delete all ranges EXCEPT those belonging to specified users.

Useful for cleaning up test/temporary ranges while keeping production ones.

Args: keep_user_ids: List of user IDs whose ranges should be KEPT (not deleted) confirm: Must be set to True to actually delete (safety measure)

Returns: Deletion results

Example: # Keep ranges for 'admin' and 'tjnull', delete all others result = await cleanup_old_ranges( keep_user_ids=["admin", "tjnull"], confirm=True )

Safety: - Requires confirm=True to prevent accidental deletion - Shows preview of what will be deleted - Explicitly protects specified user ranges

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keep_user_idsYes
confirmNo
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It effectively describes key behavioral traits: the destructive nature ('Delete all ranges'), safety mechanisms ('confirm=True', 'preview of what will be deleted'), and protection logic ('Explicitly protects specified user ranges'). However, it doesn't mention potential side effects like error handling or performance impact.

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 well-structured and appropriately sized, with clear sections (Args, Returns, Example, Safety) that make it easy to parse. Every sentence adds value: the opening statement sets purpose, sections provide necessary details, and the safety section addresses critical concerns without redundancy.

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?

Given the tool's complexity (destructive operation with safety measures) and lack of annotations/output schema, the description is mostly complete. It covers purpose, parameters, safety, and provides an example. However, it doesn't detail the return value ('Deletion results' is vague) or potential error conditions, leaving some gaps for a destructive tool.

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

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description adds significant meaning beyond the input schema, which has 0% description coverage. It explains both parameters thoroughly: 'keep_user_ids' is described as 'List of user IDs whose ranges should be KEPT (not deleted)' and 'confirm' as 'Must be set to True to actually delete (safety measure)'. The example further clarifies usage with concrete values.

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 clearly states the tool's purpose with specific verb ('Delete') and resource ('ranges'), and distinguishes it from siblings by specifying it deletes ranges except those belonging to specified users. It explicitly differentiates from tools like 'delete_range' or 'delete_range_by_user' by focusing on selective deletion based on user IDs.

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?

The description provides explicit usage guidelines: it states when to use ('Useful for cleaning up test/temporary ranges while keeping production ones'), includes a safety measure ('confirm=True to actually delete'), and implicitly suggests alternatives by specifying what it does not delete (ranges of specified users). This gives clear context for when to choose this tool over other deletion tools.

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/tjnull/Ludus-FastMCP'

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