/** * Twig Description Scorer * * Three dimensions, each 0-100: * - Intent Match (40%): cosine similarity to top agent queries for the category * - Specificity (35%): concreteness of outputs, constraints, examples * - Selectability (25%): would an LLM choose this vs. adjacent tools? */ export interface ScoreResult { tool: string; description: string; scores: { intentMatch: number; specificity: number; selectability: number; }; composite: number; grade: 'A' | 'B' | 'C' | 'D' | 'F'; issues: string[]; suggestions: string[]; } export interface ToolDefinition { name: string; description: string; inputSchema?: { properties?: Record; required?: string[]; }; } export declare function scoreDescription(tool: ToolDefinition, intentQueries?: string[]): ScoreResult;