Skip to main content
Glama

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
NameRequiredDescriptionDefault
limitNoNumber of top agents to show

Implementation Reference

  • 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);
    }
  • Proxy method in AgentManager that delegates download stats retrieval to GitHubIntegration.
    getDownloadStats(): Map<string, number> {
      return this.githubIntegration.getDownloadStats();
    }
  • 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);
    }
  • 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),
          },
        ],
      };
    }
  • 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'],
      },
    },
Install Server

Other Tools

Related 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/hongsw/claude-agents-power-mcp-server'

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