get_user_storage
Check your storage usage and quota limits to manage submissions effectively.
Instructions
Check storage usage and quota information
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/users/index.js:204-227 (handler)The handler function for get_user_storage. Makes a GET request to /users/me/storage API endpoint and returns formatted storage information including usage, quota, percentage, and file breakdown (papers, figures, datasets, other). Shows a warning if usage exceeds 80%.
async getUserStorage(args) { try { const response = await this.baseUtils.makeApiRequest('/users/me/storage'); const storage = response.data; const usedMB = Math.round(parseInt(storage.storageUsedBytes || '0') / 1024 / 1024); const quotaGB = Math.round(parseInt(storage.storageQuotaBytes || '10737418240') / 1024 / 1024 / 1024); const usagePercent = Math.round((parseInt(storage.storageUsedBytes || '0') / parseInt(storage.storageQuotaBytes || '10737418240')) * 100); return this.baseUtils.formatResponse( `💾 **Storage Information**\n\n` + `**Usage:** ${usedMB} MB / ${quotaGB} GB (${usagePercent}%)\n` + `**Available:** ${quotaGB * 1024 - usedMB} MB remaining\n\n` + `**File Breakdown:**\n` + `• Papers: ${storage.paperCount || 0} files\n` + `• Figures: ${storage.figureCount || 0} files\n` + `• Datasets: ${storage.datasetCount || 0} files\n` + `• Other: ${storage.otherCount || 0} files\n\n` + `${usagePercent > 80 ? '⚠️ **Warning:** Storage usage is high. Consider cleaning up old files.' : '✅ Storage usage is within normal limits.'}` ); } catch (error) { throw new McpError(ErrorCode.InternalError, `Failed to get storage information: ${error.message}`); } } - src/tools/users/index.js:52-57 (schema)Tool definition/schema for get_user_storage. Has no required input parameters (empty properties object). Describes storage usage and quota information.
name: "get_user_storage", description: "Check storage usage and quota information", inputSchema: { type: "object", properties: {} } - src/tools/users/index.js:107-107 (registration)Registration of getUserStorage handler in the getToolHandlers() method of the UserTools class, mapping the tool name to the bound handler method.
"get_user_storage": this.getUserStorage.bind(this),