get-download-stats
Retrieve download statistics for top agents from Claude Agents Power. Input a limit to display results, aiding in informed decision-making for team composition and task efficiency.
Instructions
Get download statistics for agents
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of top agents to show |
Implementation Reference
- src/githubIntegration.ts:150-152 (handler)The core handler function that returns a copy of the Map tracking download counts for each agent fetched from GitHub.getDownloadStats(): Map<string, number> { return new Map(this.downloadStats); }
- src/agentManager.ts:266-268 (helper)Proxy method in AgentManager that delegates download stats retrieval to GitHubIntegration.getDownloadStats(): Map<string, number> { return this.githubIntegration.getDownloadStats(); }
- src/agentManager.ts:271-273 (helper)Helper method that returns the top most downloaded agents, used by the stats functionality.getMostDownloadedAgents(limit: number = 10): Array<{name: string, downloads: number}> { return this.githubIntegration.getMostDownloaded(limit); }
- src/index.ts:2321-2335 (handler)MCP tool handler for 'manage-agents' tool with 'stats' action, which retrieves and returns download statistics.const stats = agentManager.getMostDownloadedAgents(limit); return { content: [ { type: 'text', text: JSON.stringify({ success: true, stats, message: `Top ${limit} most downloaded agents`, }, null, 2), }, ], }; }
- src/index.ts:1522-1555 (schema)Input schema definition for the 'manage-agents' MCP tool, which includes 'stats' action for retrieving download statistics.name: 'manage-agents', description: 'Install agents, get stats, or refresh from GitHub', inputSchema: { type: 'object', properties: { action: { type: 'string', description: 'Management action to perform', enum: ['install', 'stats', 'refresh', 'version'], }, agentNames: { type: 'array', items: { type: 'string' }, description: 'Agent names to install (for install action)', }, targetPath: { type: 'string', description: 'Target directory for installation (for install action)', }, language: { type: 'string', description: 'Language preference for agents', enum: ['en', 'ko', 'ja', 'zh'], default: 'en', }, limit: { type: 'number', description: 'Number of top agents to show in stats', default: 10, }, }, required: ['action'], }, },