Skip to main content
Glama

get_dashboard_data

Extract aggregated pipeline run statistics and metrics from summary.json or HTML dashboard files to analyze performance and track results.

Instructions

Extract aggregated data from summary.json or the HTML dashboard, including overall run statistics and metrics.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
configNoPath to config.toml file to determine output directory

Implementation Reference

  • Main execution logic for the 'get_dashboard_data' tool. Locates the devpipe config, computes the output directory, reads summary.json, and returns the parsed dashboard data as JSON.
    case 'get_dashboard_data': { const configPath = args?.config || await findConfigFile(); if (!configPath) { throw new Error('No config.toml file found'); } const config = await parseConfig(configPath); const outputDir = getOutputDir(configPath, config); const summary = await readSummary(outputDir); if (!summary) { throw new Error('No summary.json found. Run devpipe first to generate dashboard data.'); } return { content: [ { type: 'text', text: JSON.stringify(summary, null, 2), }, ], }; }
  • src/index.ts:205-217 (registration)
    Registers the 'get_dashboard_data' tool in the MCP server's tool list, including its name, description, and input schema.
    { name: 'get_dashboard_data', description: 'Extract aggregated data from summary.json or the HTML dashboard, including overall run statistics and metrics.', inputSchema: { type: 'object', properties: { config: { type: 'string', description: 'Path to config.toml file to determine output directory', }, }, }, },
  • Defines the input schema for the 'get_dashboard_data' tool, accepting an optional config path.
    inputSchema: { type: 'object', properties: { config: { type: 'string', description: 'Path to config.toml file to determine output directory', }, }, },
  • Helper function that reads and parses the summary.json file from the devpipe output directory, providing the core dashboard data.
    export async function readSummary(outputDir: string): Promise<SummaryData | null> { try { const summaryPath = join(outputDir, 'summary.json'); const content = await readFile(summaryPath, 'utf-8'); return JSON.parse(content); } catch (error) { return null; } }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/drewkhoury/devpipe-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server