Skip to main content
Glama

notion_purge_shared_files

Delete old files from the shared MCP mount to clean up attachments after uploading to Notion. Use dry_run to preview which files would be removed.

Instructions

Delete files from the cross-MCP shared mount (SHARED_DIR, /shared inside the container) whose modification time is older than max_age_hours. Use this to clean up attachments handed over from the companion google-accounts-mcp server once they've been uploaded to Notion.

A host-level TTL sweep (if you run one) makes this automatic; the tool is mainly for agents that want to clean up proactively at the end of a workflow without waiting for it.

Set dry_run=True to list victims without deleting. Only regular files are touched — subdirectories are left alone.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dry_runNo
max_age_hoursNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses that only regular files are touched, subdirectories are left alone, and dry_run can list victims before deletion. This adds meaningful behavioral context beyond the raw schema, though it stops short of explicitly stating that the deletion is permanent and irreversible.

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 organized into three short paragraphs: the core action, the use case/alternative, and operational details. Every sentence adds value, and the most important information is front-loaded. No filler or 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 that an output schema exists, the description covers purpose, usage, behavioral constraints, and parameters well. One minor ambiguity remains about whether the tool recurses into subdirectories (it says 'subdirectories are left alone' but not whether files inside them are candidates), but overall the description is sufficiently complete for correct invocation.

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?

Despite 0% schema description coverage, the description fully explains both parameters: max_age_hours defines the age threshold for deletion, and dry_run switches to listing victims without deleting. This adds clear semantic meaning beyond the bare schema types and defaults.

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 'Delete files from the cross-MCP shared mount' — a specific verb and resource — and adds the age condition 'modification time is older than max_age_hours.' This clearly distinguishes it from sibling tools like notion_purge_file by targeting the shared mount and bulk age-based cleanup.

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 explicitly says 'Use this to clean up attachments handed over from the companion google-accounts-mcp server once they've been uploaded to Notion' and contrasts it with a host-level TTL sweep, noting the tool is for proactive cleanup at workflow end. It provides clear context and intent, though it does not name alternative tools or exclusions.

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/snickery/notion-mcp'

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