agentic_kpi_collect
Collects and visualizes key performance indicators for GitHub development workflows to track progress and identify areas for improvement.
Instructions
KPI収集・ダッシュボード生成
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | No | 集計期間 |
Implementation Reference
- server.ts:475-494 (handler)The handler function that implements the core logic for the 'agentic_kpi_collect' tool. It runs a Node.js script to collect KPIs for the specified period and returns the output in a formatted response.private async handleKPICollect(args: { period?: string }) { const period = args.period || '24h'; const { stdout } = await execAsync( `node scripts/collect-metrics.js --period=${period}` ); return { content: [ { type: 'text', text: `## 📊 KPI収集完了 **期間**: ${period} ${stdout}` } ] }; }
- server.ts:148-161 (schema)The tool definition in the TOOLS array, including name, description, and input schema for validating parameters like 'period'.{ name: 'agentic_kpi_collect', description: 'KPI収集・ダッシュボード生成', inputSchema: { type: 'object', properties: { period: { type: 'string', enum: ['6h', '24h', '7d', '30d'], description: '集計期間' } } } },
- server.ts:241-242 (registration)The switch case that registers and routes calls to the 'agentic_kpi_collect' handler within the CallToolRequestSchema handler.case 'agentic_kpi_collect': return await this.handleKPICollect(args as any);