Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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, }; } }
  • 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: {}, }, },
  • 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);

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/MiguelAlvRed/mobile-store-scraper-mcp'

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