Skip to main content
Glama

Find Cleanup

find_cleanup
Read-onlyIdempotent

Suggests cleanup candidates in the library: duplicate items (same normalized url), dead links, failed extractions, never-opened old items, untagged items, and near-duplicate tags. Each category reports the candidates, the total number of candidates and whether the list was truncated. The item categories list one id with a reason; the group categories list one entry per group: duplicates gives the group's ids (capped), its size and whether the id list was truncated, near-duplicate tags gives the group's tag names. Read-only: it reports what could be cleaned up, it never changes anything. Dead links are items whose recorded failure is an origin HTTP error and failed extractions are every other recorded failure; no network requests are made, so a link that was never fetched is not detected.

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": "find_cleanup"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax entries per category (at most 100). For duplicates, one entry per group of duplicate urls.
categoriesNoCategories to check (default: all). One or more of duplicates, dead_links, failed_extraction, never_opened, untagged, near_duplicate_tags.
older_than_daysNoFor never_opened: how old an item must be (in days) to count as never opened.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description reinforces this ('it never changes anything') while adding real behavioral context the annotations cannot carry: the per-category return shape, truncation reporting, and the important limitation that links never fetched are not detected because no network requests are made.

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?

It is front-loaded with the purpose and categories, then layers output shape and the read-only guarantee. The final sentence is dense but every clause carries non-obvious information; there is little redundancy despite the length.

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, the description fully compensates by describing what each category returns (ids with reasons, group sizes, tag names) and the truncation flag. Combined with the definitional nuance on dead vs failed extraction, an agent can call and interpret this tool correctly without further data.

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 100%, so the baseline is 3, but the description adds genuine meaning by defining what each category value actually means (duplicates = same normalized url, dead links = origin HTTP errors, failed extractions = all other recorded failures). It also clarifies that group categories differ structurally from item categories, which helps the agent interpret limit.

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?

The description opens with a specific verb and resource ('Suggests cleanup candidates in the library') and enumerates the six candidate categories, so an agent knows exactly what it returns. It does not, however, differentiate itself from the cleanup-oriented sibling tag_cleanup, leaving overlap for the agent to resolve.

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?

Usage is implied by the enumeration of categories and the read-only framing, but there is no explicit when-to-use / when-not guidance and no alternative tool is named. The agent must infer that this is a diagnostic prelude to the mutation tools like delete_item or merge_tags.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.