list_modes
Lists available output modes for prompt optimization, including concise, detailed, structured, and technical formats, to help users select the best format for their AI platform needs.
Instructions
List available output modes for prompt optimization (concise, detailed, structured, step-by-step, bullet-points, technical, simple)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:92-99 (handler)The list_modes tool handler - registered via server.tool() with an inline async function that returns the MODES array as JSON. This is both the registration point and the handler implementation.
server.tool( "list_modes", "List available output modes for prompt optimization (concise, detailed, structured, step-by-step, bullet-points, technical, simple)", {}, async () => { return { content: [{ type: "text" as const, text: JSON.stringify(MODES, null, 2) }] }; } ); - The MODES constant definition - an array of mode objects each with id, label, and description. This is the data source returned by the list_modes tool.
export const MODES: { id: Mode; label: string; description: string }[] = [ { id: 'concise', label: 'Concise', description: 'Short and to the point' }, { id: 'detailed', label: 'Detailed', description: 'Comprehensive with examples' }, { id: 'structured', label: 'Structured', description: 'Organized with clear sections' }, { id: 'step-by-step', label: 'Step-by-Step', description: 'Sequential instructions' }, { id: 'bullet-points', label: 'Bullet Points', description: 'List format, scannable' }, { id: 'technical', label: 'Technical', description: 'Expert-level depth' }, { id: 'simple', label: 'Simple', description: 'Plain language, easy to understand' }, ]; - src/engine/config/categories.ts:2-2 (schema)The Mode type definition - a union type of all valid mode identifiers: 'concise' | 'detailed' | 'structured' | 'step-by-step' | 'bullet-points' | 'technical' | 'simple'
export type Mode = 'concise' | 'detailed' | 'structured' | 'step-by-step' | 'bullet-points' | 'technical' | 'simple';