gp_categories
Retrieve available app categories from Google Play Store to organize and filter mobile applications for analysis or discovery.
Instructions
[Google Play] Get list of available categories
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/server.js:867-895 (handler)The main handler function for the 'gp_categories' tool. It fetches the Google Play categories page using buildCategoriesUrl, parses the HTML with parseCategories, and returns a JSON-formatted list of categories.async function handleGPCategories(args) { try { const url = buildCategoriesUrl(); const html = await fetchText(url); const categories = parseCategories(html); return { content: [ { type: 'text', text: JSON.stringify({ categories, count: categories.length, }, null, 2), }, ], }; } catch (error) { return { content: [ { type: 'text', text: JSON.stringify({ error: error.message }, null, 2), }, ], isError: true, }; } }
- src/server.js:1404-1411 (schema)The input/output schema definition for the 'gp_categories' tool, registered in ListToolsRequestSchema handler. No input parameters required.{ name: 'gp_categories', description: '[Google Play] Get list of available categories', inputSchema: { type: 'object', properties: {}, }, },
- src/server.js:1482-1483 (registration)Registration and dispatch logic in the CallToolRequestSchema handler's switch statement, mapping the tool name to its handler function.case 'gp_categories': return await handleGPCategories(args);