import {
  getDashboard
} from "./chunk-U2QIW2SW.js";
import "./chunk-CAY57CKF.js";
import "./chunk-KOO5733S.js";

// src/tools/get-dashboard.ts
async function handleGetDashboard(params) {
  const dashboard = await getDashboard(params.id);
  const lines = [];
  lines.push(`# ${dashboard.name}
`);
  lines.push(`**ID**: ${dashboard.id}`);
  lines.push(`**Order**: ${dashboard.order}`);
  lines.push(`**Graphs**: ${Array.isArray(dashboard.graphs) ? dashboard.graphs.length : 0}`);
  lines.push(`**Created**: ${dashboard.createdAt}`);
  lines.push(`**Updated**: ${dashboard.updatedAt}`);
  if (Array.isArray(dashboard.graphs) && dashboard.graphs.length > 0) {
    lines.push("\n## Graphs\n");
    lines.push("```json");
    lines.push(JSON.stringify(dashboard.graphs, null, 2));
    lines.push("```");
  }
  return lines.join("\n");
}
export {
  handleGetDashboard
};
//# sourceMappingURL=get-dashboard-WSAO6IQ4.js.map