import {
  getEvaluatorType,
  listEvaluators
} from "./chunk-GWEW5XON.js";
import "./chunk-CAY57CKF.js";
import "./chunk-KOO5733S.js";

// src/tools/list-evaluators.ts
async function handleListEvaluators() {
  const evaluators = await listEvaluators();
  if (!Array.isArray(evaluators) || evaluators.length === 0) {
    return "No evaluators found in this project.\n\n> Tip: Use `platform_create_evaluator` to create your first evaluator. Call `discover_schema({ category: 'evaluators' })` to see available evaluator types.";
  }
  const lines = [];
  lines.push(`# Evaluators (${evaluators.length} total)
`);
  for (const e of evaluators) {
    const evaluatorType = getEvaluatorType(e);
    lines.push(`## ${e.name}`);
    lines.push(`**ID**: ${e.id}`);
    if (e.slug) lines.push(`**Slug**: ${e.slug}`);
    if (evaluatorType) lines.push(`**Type**: ${evaluatorType}`);
    lines.push(`**Kind**: ${e.type}`);
    lines.push("");
  }
  lines.push(
    "> Use `platform_get_evaluator` with the ID or slug to see full evaluator details."
  );
  return lines.join("\n");
}
export {
  handleListEvaluators
};
//# sourceMappingURL=list-evaluators-K5OGB6TX.js.map