get-categories
Retrieve available affinity categories to use when comparing audience influencers in Audiense Insights, enabling targeted marketing analysis.
Instructions
Retrieves the list of available affinity categories that can be used as the categories parameter in the compare-audience-influencers tool.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:178-192 (registration)Registers the 'get-categories' MCP tool, including its description, empty input schema, and inline handler function.server.tool( "get-categories", "Retrieves the list of available affinity categories that can be used as the categories parameter in the compare-audience-influencers tool.", {}, async () => { return { content: [ { type: "text", text: JSON.stringify(CATEGORIES, null, 2), }, ], }; } );
- src/index.ts:178-192 (handler)The inline async handler for 'get-categories' that returns the CATEGORIES data as a formatted JSON text response.server.tool( "get-categories", "Retrieves the list of available affinity categories that can be used as the categories parameter in the compare-audience-influencers tool.", {}, async () => { return { content: [ { type: "text", text: JSON.stringify(CATEGORIES, null, 2), }, ], }; } );
- src/categories.ts:1-74 (helper)Defines the CATEGORIES constant, an array of category objects used by the get-categories tool handler.export const CATEGORIES = [ { "label": "Airlines", "value": "Airlines" }, { "label": "Alcohol", "value": "Alcohol" }, { "label": "Apps", "value": "Apps" }, { "label": "Beauty", "value": "Beauty" }, { "label": "Beverages", "value": "Beverages" }, { "label": "Black community", "value": "Black community" }, { "label": "Books", "value": "Books" }, { "label": "Business", "value": "Business" }, { "label": "Celebrities", "value": "Celebrities" }, { "label": "Climate Change", "value": "Climate Change" }, { "label": "Computer Game", "value": "Computer Game" }, { "label": "Conference", "value": "Conference" }, { "label": "Corporate Social Responsibility", "value": "Corporate Social Responsibility" }, { "label": "Culture", "value": "Culture" }, { "label": "Ecommerce", "value": "Ecommerce" }, { "label": "Education", "value": "Education" }, { "label": "Electronics", "value": "Electronics" }, { "label": "Entertainment", "value": "Entertainment" }, { "label": "Erotic", "value": "Erotic" }, { "label": "Events", "value": "Events" }, { "label": "Family", "value": "Family" }, { "label": "Fashion", "value": "Fashion" }, { "label": "Finance", "value": "Finance" }, { "label": "Fitness", "value": "Fitness" }, { "label": "Food&drink", "value": "Food&drink" }, { "label": "Fun", "value": "Fun" }, { "label": "Gambling", "value": "Gambling" }, { "label": "Gov officials & agencies", "value": "Gov officials & agencies" }, { "label": "Healthcare", "value": "Healthcare" }, { "label": "Hobbies and interest", "value": "Hobbies and interest" }, { "label": "Household", "value": "Household" }, { "label": "Internet", "value": "Internet" }, { "label": "LGBTQ+", "value": "LGBTQ+" }, { "label": "Magazines", "value": "Magazines" }, { "label": "Media", "value": "Media" }, { "label": "Motor", "value": "Motor" }, { "label": "Movies", "value": "Movies" }, { "label": "Music", "value": "Music" }, { "label": "News", "value": "News" }, { "label": "Newspapers", "value": "Newspapers" }, { "label": "Night Life", "value": "Night Life" }, { "label": "Non profits", "value": "Non profits" }, { "label": "Online Show", "value": "Online Show" }, { "label": "Pets", "value": "Pets" }, { "label": "Place", "value": "Place" }, { "label": "Politics", "value": "Politics" }, { "label": "Professional Association", "value": "Professional Association" }, { "label": "Radio", "value": "Radio" }, { "label": "Religion", "value": "Religion" }, { "label": "Restaurants&cafes", "value": "Restaurants&cafes" }, { "label": "Science", "value": "Science" }, { "label": "Services", "value": "Services" }, { "label": "Shopping", "value": "Shopping" }, { "label": "Society", "value": "Society" }, { "label": "Sports", "value": "Sports" }, { "label": "Technology", "value": "Technology" }, { "label": "Telecom", "value": "Telecom" }, { "label": "Top brands", "value": "Top brands" }, { "label": "Travel", "value": "Travel" }, { "label": "TV", "value": "TV" }, { "label": "Blogs", "value": "Blogs" }, { "label": "Facebook", "value": "Facebook" }, { "label": "Instagram", "value": "Instagram" }, { "label": "Journalist", "value": "Journalist" }, { "label": "LinkedIn", "value": "LinkedIn" }, { "label": "Medium", "value": "Medium" }, { "label": "Pinterest", "value": "Pinterest" }, { "label": "Podcasts", "value": "Podcasts" }, { "label": "Snapchat", "value": "Snapchat" }, { "label": "TikTok", "value": "TikTok" }, { "label": "Twitch", "value": "Twitch" }, { "label": "YouTube", "value": "YouTube" } ];