apple_update_category
Modify primary and secondary App Store categories for iOS applications to improve discoverability and align with target audiences.
Instructions
Update app primary/secondary category
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| appInfoId | Yes | AppInfo ID | |
| primaryCategoryId | No | Primary category ID (e.g. SOCIAL_NETWORKING) | |
| secondaryCategoryId | No | Secondary category ID |
Implementation Reference
- src/apple/tools.ts:54-79 (handler)Implementation of the 'apple_update_category' tool which updates an app's primary or secondary category.
const updateAppInfoCategory: ToolDef = { name: 'apple_update_category', description: 'Update app primary/secondary category', schema: z.object({ appInfoId: z.string().describe('AppInfo ID'), primaryCategoryId: z.string().optional().describe('Primary category ID (e.g. SOCIAL_NETWORKING)'), secondaryCategoryId: z.string().optional().describe('Secondary category ID'), }), handler: async (client, args) => { const relationships: any = {}; if (args.primaryCategoryId) { relationships.primaryCategory = { data: { type: 'appCategories', id: args.primaryCategoryId }, }; } if (args.secondaryCategoryId) { relationships.secondaryCategory = { data: { type: 'appCategories', id: args.secondaryCategoryId }, }; } return client.request(`/appInfos/${args.appInfoId}`, { method: 'PATCH', body: { data: { type: 'appInfos', id: args.appInfoId, relationships } }, }); }, };