Skip to main content
Glama

db_cleanup_preview

Read-only

Counts WordPress database junk—revisions, auto-drafts, trashed posts, spam comments, expired transients, orphaned post meta—without deleting anything, so owners can review cleanup needs first.

Instructions

Count database junk without deleting anything: post revisions, auto-drafts, trashed posts, spam and trashed comments, expired transients and orphaned post meta. Deletes NOTHING — it is the number you show the owner before asking to clean up. Suggest a host backup before any cleanup.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "db_cleanup_preview"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.2

TDQS

A4.1/5.0
Behavior3/5

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

The readOnlyHint=true annotation already covers the safety profile, and the description reinforces it emphatically ('Deletes NOTHING'), which adds confidence but little new structured information. It does add useful behavioral context about scope (which junk categories are counted) and the operational advice about backups, but says nothing about the shape of the response beyond 'the number'.

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?

Two short sentences plus a backup caveat, front-loaded with the safety-critical fact that nothing is deleted. The 'without deleting anything' and 'Deletes NOTHING' statements are somewhat redundant, a minor inefficiency in an otherwise tight description.

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 zero-parameter, read-only counting tool with no output schema, the description covers what is counted, that nothing is mutated, and what to do afterward. The only gap is a lack of detail on how the counts are returned, which is minor given the tool's simplicity.

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 to disambiguate and the baseline applies. The description correctly adds no parameter noise.

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 and resource ('Count database junk') and then enumerates the exact categories counted: post revisions, auto-drafts, trashed posts, spam/trashed comments, expired transients, orphaned post meta. The 'preview' framing distinguishes it from an actual cleanup operation, so an agent can tell what it is without opening the schema.

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?

It gives a concrete usage situation ('the number you show the owner before asking to clean up') and a prerequisite warning ('Suggest a host backup before any cleanup'), which is exactly the kind of routing context an agent needs. It stops short of naming a sibling cleanup tool explicitly, so the alternative is only implied.

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