get_android_categories
Retrieve available app categories from the Google Play Store to filter and organize search results within the MCP appstore server.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- server.js:1617-1648 (handler)Handler function for get_android_categories tool. Fetches all Google Play Store categories using gplay.categories() and returns them as JSON.server.tool( "get_android_categories", {}, async () => { try { // Retrieve all categories from Google Play Store const categories = await gplay.categories(); return { content: [{ type: "text", text: JSON.stringify({ platform: "android", count: categories.length, categories }, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: JSON.stringify({ error: error.message, platform: "android" }, null, 2) }], isError: true }; } } );