google-play-datasafety
Retrieve detailed data safety information for any Google Play app, including shared and collected data, security practices, and privacy policy URL, to assess app compliance and user privacy.
Instructions
Get data safety information for a Google Play app. Returns an object with:
dataShared: Array of shared data items, each containing:
data: Name of the data being shared (e.g., 'User IDs')
optional: Boolean indicating if sharing is optional
purpose: Comma-separated list of purposes (e.g., 'Analytics, Marketing')
type: Category of data (e.g., 'Personal info')
dataCollected: Array of collected data items with same structure as dataShared
securityPractices: Array of security practices, each containing:
practice: Name of the security practice
description: Detailed description of the practice
privacyPolicyUrl: URL to the app's privacy policy
Data types can include: Personal info, Financial info, Messages, Contacts, App activity, App info and performance, Device or other IDs
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| appId | Yes | Google Play package name (e.g., 'com.dxco.pandavszombies') | |
| lang | No | Language code for data safety info (default: en) | en |
Implementation Reference
- src/server.js:638-641 (handler)The asynchronous handler function that fetches data safety information using the gplay library and returns it as a JSON-formatted text content block.async ({ appId, lang }) => { const datasafety = await gplay.datasafety({ appId, lang }); return { content: [{ type: "text", text: JSON.stringify(datasafety) }] }; }
- src/server.js:634-637 (schema)Zod schema validating the tool's input parameters: appId (string, required) and lang (string, optional with default 'en').{ appId: z.string().describe("Google Play package name (e.g., 'com.dxco.pandavszombies')"), lang: z.string().default("en").describe("Language code for data safety info (default: en)") },
- src/server.js:620-642 (registration)The server.tool registration call that defines the 'google-play-datasafety' tool, including its description, input schema, and handler function.server.tool("google-play-datasafety", "Get data safety information for a Google Play app. Returns an object with:\n" + "- dataShared: Array of shared data items, each containing:\n" + " - data: Name of the data being shared (e.g., 'User IDs')\n" + " - optional: Boolean indicating if sharing is optional\n" + " - purpose: Comma-separated list of purposes (e.g., 'Analytics, Marketing')\n" + " - type: Category of data (e.g., 'Personal info')\n" + "- dataCollected: Array of collected data items with same structure as dataShared\n" + "- securityPractices: Array of security practices, each containing:\n" + " - practice: Name of the security practice\n" + " - description: Detailed description of the practice\n" + "- privacyPolicyUrl: URL to the app's privacy policy\n\n" + "Data types can include: Personal info, Financial info, Messages, Contacts,\n" + "App activity, App info and performance, Device or other IDs", { appId: z.string().describe("Google Play package name (e.g., 'com.dxco.pandavszombies')"), lang: z.string().default("en").describe("Language code for data safety info (default: en)") }, async ({ appId, lang }) => { const datasafety = await gplay.datasafety({ appId, lang }); return { content: [{ type: "text", text: JSON.stringify(datasafety) }] }; } );