get_stats
Retrieve comprehensive GapBase statistics including total gaps, industry breakdown, and trending gap counts to understand the startup gap landscape.
Instructions
Get GapBase database statistics: total gaps, industry breakdown, trending gap count.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.js:108-118 (handler)The getStats function that executes the tool logic. Returns an object with total_gaps, industries (via industryCounts()), viral_social_gaps count, database name, website URL, source, and an upgrade note.
function getStats() { return { total_gaps: GAPS.length, industries: industryCounts(), viral_social_gaps: TRENDS.length, database: "GapBase", website: "https://thevibepreneur.com", source: "Validated pain points from Reddit, LinkedIn, and X.", _note: UPGRADE_NOTE, }; } - src/index.js:180-188 (schema)Tool schema registration for 'get_stats' in the TOOLS array. Defines name, description, and inputSchema (empty object, no parameters required).
{ name: "get_stats", description: "Get GapBase database statistics: total gaps, industry breakdown, trending gap count.", inputSchema: { type: "object", properties: {}, }, }, - src/index.js:229-232 (registration)Tool dispatch in the CallToolRequestSchema handler. When name is 'get_stats', calls getStats() and assigns the result to payload.
break; case "get_stats": payload = getStats(); break; - src/index.js:31-39 (handler)Helper function industryCounts() used by getStats to compute the per-industry gap counts from the GAPS array.
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); }