gp_developer
Retrieve all Google Play Store apps published by a specific developer using their developer ID, with options to filter by country, language, and result count.
Instructions
[Google Play] Get all apps by a developer
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| devId | Yes | Google Play developer ID | |
| country | No | Two-letter country code (default: us) | us |
| lang | No | Language code (default: en) | en |
| num | No | Number of results (default: 60) |
Implementation Reference
- src/server.js:701-736 (handler)Main handler function for gp_developer tool: extracts parameters, builds Google Play developer URL, fetches HTML, parses apps using parseGPList, and returns JSON-formatted list of apps by developer.async function handleGPDeveloper(args) { try { const { devId, country = 'us', lang = 'en', num = 60 } = args; if (!devId) { throw new Error('devId is required'); } const url = buildGPDeveloperUrl({ devId, country, lang, num }); const html = await fetchText(url); const apps = parseGPList(html); // Uses same parser as list return { content: [ { type: 'text', text: JSON.stringify({ developerId: devId, apps, count: apps.length, }, null, 2), }, ], }; } catch (error) { return { content: [ { type: 'text', text: JSON.stringify({ error: error.message }, null, 2), }, ], isError: true, }; } }
- src/server.js:1303-1331 (schema)Tool schema definition including name, description, and input schema for validating gp_developer tool calls.{ name: 'gp_developer', description: '[Google Play] Get all apps by a developer', inputSchema: { type: 'object', properties: { devId: { type: 'string', description: 'Google Play developer ID', }, country: { type: 'string', description: 'Two-letter country code (default: us)', default: 'us', }, lang: { type: 'string', description: 'Language code (default: en)', default: 'en', }, num: { type: 'number', description: 'Number of results (default: 60)', default: 60, }, }, required: ['devId'], }, },
- src/server.js:1474-1475 (registration)Registration in the switch statement that dispatches CallToolRequest for 'gp_developer' to the handleGPDeveloper function.case 'gp_developer': return await handleGPDeveloper(args);
- src/server.js:45-45 (helper)Import alias for buildGPDeveloperUrl helper function used to construct the developer page URL.buildDeveloperUrl as buildGPDeveloperUrl,