get_watchlist_events
Retrieve recent business events for companies on your watchlist, including funding rounds, acquisitions, executive hires, and contracts, to monitor market activity.
Instructions
Get recent events for companies on your watchlist: funding, acquisitions, executive hires, contracts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Look back days (1-90). Default: 7 | |
| types | No | Comma-separated event types |
Implementation Reference
- src/index.ts:290-310 (handler)The handler implementation for the get_watchlist_events tool, which fetches event data from the API based on user-provided parameters.
case "get_watchlist_events": { const data = await apiRequest("GET", "/watchlist/events", { days: (args as any).days, types: (args as any).types, }); const events = data.events || []; if (events.length === 0) { return textResult( `No events found for your ${data.tracked_companies} tracked companies in the last ${data.period_days} days.` ); } const summary = events .map((e: any, i: number) => { let detail = `${i + 1}. [${e.type.toUpperCase()}] ${e.company_name}: ${e.title}`; if (e.amount) detail += ` ($${(e.amount / 1_000_000).toFixed(1)}M)`; if (e.date) detail += ` | ${e.date}`; return detail; }) .join("\n"); return textResult(`${data.total} events for ${data.tracked_companies} tracked companies:\n\n${summary}`); } - src/index.ts:150-161 (schema)The schema definition and registration for the get_watchlist_events tool.
name: "get_watchlist_events", description: "Get recent events for companies on your watchlist: funding, acquisitions, " + "executive hires, contracts.", inputSchema: { type: "object" as const, properties: { days: { type: "number", description: "Look back days (1-90). Default: 7" }, types: { type: "string", description: "Comma-separated event types" }, }, }, },