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.
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": "notion_purge_shared_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | ||
| max_age_hours | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |