get_database_statistics
Extract and analyze database statistics to monitor node performance, system health, and documentation coverage on the n8n-MCP server for efficient workflow automation troubleshooting.
Instructions
Node stats: 525 total, 263 AI tools, 104 triggers, 87% docs coverage. Verifies MCP working.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/mcp-tools-engine.ts:100-108 (handler)The core handler function for the 'get_database_statistics' tool. It retrieves the total number of nodes and counts AI tool nodes from the database repository, then returns a statistics object including predefined categories.async getDatabaseStatistics(args: any) { const count = await this.repository.getNodeCount(); const aiTools = await this.repository.getAIToolNodes(); return { totalNodes: count, aiToolsCount: aiTools.length, categories: ['trigger', 'transform', 'output', 'input'] }; }