listReasoningModels
Retrieve a list of reasoning-capable AI models supported by the MindBridge MCP Server, enabling dynamic selection for diverse tasks across multiple providers.
Instructions
List all available models that support reasoning capabilities
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/server.ts:117-134 (handler)The handler function for the 'listReasoningModels' tool. It returns a JSON string containing the list of reasoning-optimized models from the REASONING_MODELS constant.
async () => { try { return { content: [{ type: 'text', text: JSON.stringify({ models: REASONING_MODELS, description: 'These models are specifically optimized for reasoning tasks and support the reasoning_effort parameter.' }, null, 2) }] }; } catch (error) { return { content: [{ type: 'text', text: `Error: ${error instanceof Error ? error.message : 'An unknown error occurred'}` }], isError: true }; } } - src/server.ts:113-135 (registration)Registration of the 'listReasoningModels' tool in the MindBridgeServer class using this.tool(), including description, empty input schema, and inline handler.
// Register listReasoningModels tool this.tool('listReasoningModels', 'List all available models that support reasoning capabilities', {}, async () => { try { return { content: [{ type: 'text', text: JSON.stringify({ models: REASONING_MODELS, description: 'These models are specifically optimized for reasoning tasks and support the reasoning_effort parameter.' }, null, 2) }] }; } catch (error) { return { content: [{ type: 'text', text: `Error: ${error instanceof Error ? error.message : 'An unknown error occurred'}` }], isError: true }; } } ); - src/providers/index.ts:78-84 (helper)The REASONING_MODELS constant, an array of model names optimized for reasoning tasks, used by the tool handler.
// Export available reasoning models export const REASONING_MODELS = [ MODEL_NAMES.OPENAI.O1, MODEL_NAMES.OPENAI.O3_MINI, MODEL_NAMES.DEEPSEEK.REASONER, MODEL_NAMES.ANTHROPIC.CLAUDE_37_SONNET ] as const;