list_categories
List all 45 software categories, including their unique slugs and human-readable display names.
Instructions
List all 45 supported software categories with their slugs and display names.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- index.js:439-443 (handler)Handler function that executes the 'list_categories' tool logic. Maps over the CATEGORIES constant array and formats each category with its rank, name, and slug. Returns a string listing all 45 supported categories.
function listCategoriesFn() { const lines = CATEGORIES.map((c, i) => `${String(i + 1).padStart(2)}. ${c.name.padEnd(35)} (${c.slug})` ); return `Supported categories (${CATEGORIES.length} total):\n\n${lines.join('\n')}`; - index.js:151-158 (schema)Schema / tool definition for 'list_categories'. Declares the tool name, description ('List all 45 supported software categories with their slugs and display names.'), and an empty input schema (no parameters required).
{ name: 'list_categories', description: 'List all 45 supported software categories with their slugs and display names.', inputSchema: { type: 'object', properties: {}, }, }, - index.js:446-459 (registration)Dispatch function that routes the tool name 'list_categories' to its handler function listCategoriesFn() in a switch statement within callTool().
// --- Dispatch --- async function callTool(name, args) { switch (name) { case 'search_tools': return searchTools(args); case 'get_tool': return getTool(args); case 'compare_tools': return compareTools(args); case 'list_category': return listCategory(args); case 'get_alternatives':return getAlternatives(args); case 'get_pricing': return getPricing(args); case 'get_leaderboard': return getLeaderboard(args); case 'list_categories': return listCategoriesFn(); default: throw new Error(`Unknown tool: ${name}`); } - index.js:19-66 (helper)CATEGORIES constant array defining all 45 supported software categories with slug and name pairs. This data is used by the listCategoriesFn handler to produce the list of categories.
const CATEGORIES = [ { slug: 'ai-tools', name: 'AI Tools' }, { slug: 'llm', name: 'Large Language Models' }, { slug: 'ai-coding', name: 'AI Coding' }, { slug: 'ai-writing', name: 'AI Writing' }, { slug: 'ai-image', name: 'AI Image Generation' }, { slug: 'ai-video', name: 'AI Video' }, { slug: 'ai-audio', name: 'AI Audio' }, { slug: 'project-management', name: 'Project Management' }, { slug: 'crm', name: 'CRM' }, { slug: 'email-marketing', name: 'Email Marketing' }, { slug: 'customer-support', name: 'Customer Support' }, { slug: 'analytics', name: 'Analytics' }, { slug: 'design-tools', name: 'Design Tools' }, { slug: 'video-conferencing', name: 'Video Conferencing' }, { slug: 'cloud-hosting', name: 'Cloud Hosting' }, { slug: 'devops', name: 'DevOps' }, { slug: 'security', name: 'Security' }, { slug: 'cloud-security', name: 'Cloud Security' }, { slug: 'iam', name: 'Identity and Access Management' }, { slug: 'siem', name: 'SIEM' }, { slug: 'edr', name: 'Endpoint Detection and Response' }, { slug: 'vulnerability-management', name: 'Vulnerability Management' }, { slug: 'compliance', name: 'Compliance' }, { slug: 'erp', name: 'ERP' }, { slug: 'hr-tools', name: 'HR Tools' }, { slug: 'accounting', name: 'Accounting' }, { slug: 'legal-tech', name: 'Legal Tech' }, { slug: 'data-visualization', name: 'Data Visualization' }, { slug: 'bi-tools', name: 'Business Intelligence' }, { slug: 'database', name: 'Database' }, { slug: 'vector-db', name: 'Vector Database' }, { slug: 'api-management', name: 'API Management' }, { slug: 'payment-processing', name: 'Payment Processing' }, { slug: 'e-commerce', name: 'E-Commerce' }, { slug: 'email-infrastructure', name: 'Email Infrastructure' }, { slug: 'monitoring', name: 'Monitoring' }, { slug: 'logging', name: 'Logging' }, { slug: 'feature-flags', name: 'Feature Flags' }, { slug: 'a-b-testing', name: 'A/B Testing' }, { slug: 'crypto-exchanges', name: 'Crypto Exchanges' }, { slug: 'crypto-trading-bots', name: 'Crypto Trading Bots' }, { slug: 'defi-tools', name: 'DeFi Tools' }, { slug: 'dex', name: 'Decentralized Exchanges' }, { slug: 'nft-tools', name: 'NFT Tools' }, { slug: 'vpn', name: 'VPN' }, { slug: 'password-managers', name: 'Password Managers' }, ];