list_industries
View the 7 industries covered by Gapbase and the number of validated gaps in each to understand database coverage before searching.
Instructions
List the 7 industries covered by GapBase and the number of validated gaps in each. Use this first to understand the database coverage before searching.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.js:210-216 (handler)The handler for the 'list_industries' tool. It calls the industryCounts() helper function and returns the industry breakdown along with total gap count.
case "list_industries": payload = { industries: industryCounts(), total_gaps: GAPS.length, _note: UPGRADE_NOTE, }; break; - src/index.js:120-129 (registration)Registration of the 'list_industries' tool in the TOOLS array, defining its name, description, and empty inputSchema.
const TOOLS = [ { name: "list_industries", description: "List the 7 industries covered by GapBase and the number of validated gaps in each. Use this first to understand the database coverage before searching.", inputSchema: { type: "object", properties: {}, }, }, - src/index.js:31-39 (helper)The industryCounts() helper function that computes the count of gaps per industry from the GAPS data array, returning sorted results.
function industryCounts() { const counts = {}; for (const g of GAPS) { counts[g.industry] = (counts[g.industry] || 0) + 1; } return Object.entries(counts) .map(([industry, count]) => ({ industry, count })) .sort((a, b) => b.count - a.count); }