get_values
Retrieve available ethical and ownership values to filter origin-verified products and brands. Access canonical tokens and display labels for sustainability, vegan, and cruelty-free criteria.
Instructions
List all supported ethical/ownership values that can be used to filter products and brands. Returns canonical value tokens with display labels.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/staticData.js:17-26 (handler)Main handler function that executes the get_values tool logic. Maps CANONICAL_VALUES to labeled tokens and returns them with usage instructions.
export function handleGetValues() { return { values: CANONICAL_VALUES.map(v => ({ token: v, label: VALUE_LABELS[v] || v })), total: CANONICAL_VALUES.length, usage: 'Pass the "token" values in the "values" array when calling search_products or search_brands.' }; } - src/tools/staticData.js:8-15 (schema)Tool schema definition (name, description, inputSchema) for get_values. Input schema accepts an empty object as this tool requires no parameters.
export const getValuesTool = { name: 'get_values', description: 'List all supported ethical/ownership values that can be used to filter products and brands. Returns canonical value tokens with display labels.', inputSchema: { type: 'object', properties: {} } }; - src/index.js:59-68 (registration)Tool registration in the MCP server. getValuesTool is added to the tools array returned by ListToolsRequestSchema handler.
server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: [ searchProductsTool, searchBrandsTool, refineSearchTool, getValuesTool, getCategoriesTool, getCountriesTool ] })); - src/index.js:90-92 (registration)Tool handler registration in the CallToolRequestSchema switch statement. Dispatches 'get_values' calls to handleGetValues().
case 'get_values': result = handleGetValues(); break; - src/types.js:6-49 (helper)Data constants and label mappings used by the get_values handler. CANONICAL_VALUES defines the valid tokens and VALUE_LABELS provides human-readable display labels.
export const CANONICAL_VALUES = [ 'women-owned', 'black-owned', 'indigenous-owned', 'latino-owned', 'aapi-owned', 'veteran-owned', 'family-owned', 'lgbtq-owned', 'minority-owned', 'b-corp', 'organic', 'sustainable', 'vegan', 'non-gmo', 'fair-trade', 'social-impact', 'fragrance-free', 'plastic-free', 'cruelty-free', 'non-toxic', 'gluten-free' ]; export const CANONICAL_COUNTRIES = [ 'Canada', 'USA' ]; export const CANONICAL_CATEGORIES = [ 'Beauty', 'Personal Care', 'Baby', 'Health & Wellness', 'Supplements', 'Home & Kitchen', 'Cleaning', 'Food & Grocery', 'Beverages', 'Pet Care', 'Fashion', 'Accessories', 'Electronics', 'Office', 'Outdoors', 'Sports', 'Toys' ]; export const CANONICAL_CLASSIFICATIONS = [ 'fully-canadian', 'canadian-manufactured', 'canadian-operations' ]; export const VALUE_LABELS = { 'women-owned': 'Women-Owned', 'black-owned': 'Black-Owned', 'indigenous-owned': 'Indigenous-Owned', 'latino-owned': 'Latino-Owned', 'aapi-owned': 'AAPI-Owned', 'veteran-owned': 'Veteran-Owned', 'family-owned': 'Family-Owned', 'lgbtq-owned': 'LGBTQ+-Owned', 'minority-owned': 'Minority-Owned', 'b-corp': 'B Corp Certified', 'organic': 'Organic', 'sustainable': 'Sustainable', 'vegan': 'Vegan', 'non-gmo': 'Non-GMO', 'fair-trade': 'Fair Trade', 'social-impact': 'Social Impact', 'fragrance-free': 'Fragrance-Free', 'plastic-free': 'Plastic-Free', 'cruelty-free': 'Cruelty-Free', 'non-toxic': 'Non-Toxic', 'gluten-free': 'Gluten-Free' };