google-play-datasafety
Retrieve Google Play app data safety details including collected and shared data types, security practices, and privacy policy links for compliance and security analysis.
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 handler function that executes the tool: calls gplay.datasafety with appId and lang, then returns the result as JSON string in MCP content format.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 input schema defining parameters: appId (required string), lang (optional string, defaults to '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)Full server.tool registration: name 'google-play-datasafety', detailed description of output, input schema, and inline 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) }] }; } );