app-store-privacy
Retrieve detailed privacy information for App Store apps, including data collection categories, usage purposes, and management options for user privacy choices.
Instructions
Get privacy details for an App Store app. Returns an object with:
managePrivacyChoicesUrl: URL to manage privacy choices (if available)
privacyTypes: Array of privacy data types, each containing:
privacyType: Name of the privacy category
identifier: Unique identifier for the privacy type
description: Detailed description of how data is used
dataCategories: Array of data categories, each containing:
dataCategory: Category name
identifier: Category identifier
dataTypes: Array of specific data types collected
purposes: Array of purposes for data collection Note: Currently only available for US App Store.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Numeric App ID (e.g., 553834731) |
Implementation Reference
- src/server.js:265-268 (handler)The handler function for the 'app-store-privacy' tool. It takes an app ID, fetches privacy details using the external 'store.privacy' method from '@jeromyfu/app-store-scraper', and returns the result as a JSON string in the MCP content format.async ({ id }) => { const privacy = await store.privacy({ id }); return { content: [{ type: "text", text: JSON.stringify(privacy) }] }; }
- src/server.js:263-264 (schema)Zod schema for input validation: requires a numeric 'id' parameter representing the App Store app ID.id: z.number().describe("Numeric App ID (e.g., 553834731)") },
- src/server.js:249-269 (registration)Registration of the 'app-store-privacy' tool on the MCP server, including name, description, input schema, and handler function.server.tool("app-store-privacy", "Get privacy details for an App Store app. Returns an object with:\n" + "- managePrivacyChoicesUrl: URL to manage privacy choices (if available)\n" + "- privacyTypes: Array of privacy data types, each containing:\n" + " - privacyType: Name of the privacy category\n" + " - identifier: Unique identifier for the privacy type\n" + " - description: Detailed description of how data is used\n" + " - dataCategories: Array of data categories, each containing:\n" + " - dataCategory: Category name\n" + " - identifier: Category identifier\n" + " - dataTypes: Array of specific data types collected\n" + " - purposes: Array of purposes for data collection\n" + "Note: Currently only available for US App Store.", { id: z.number().describe("Numeric App ID (e.g., 553834731)") }, async ({ id }) => { const privacy = await store.privacy({ id }); return { content: [{ type: "text", text: JSON.stringify(privacy) }] }; } );