Skip to main content
Glama

listProviders

Retrieve all configured language model providers and their available models using the MindBridge MCP Server to enable efficient model selection and orchestration.

Instructions

List all configured LLM providers and their available models

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The inline async handler function for the 'listProviders' tool. It fetches all available providers, their models, and reasoning support using ProviderFactory methods, formats as JSON, and returns as MCP content or error.
    async () => { try { const providers = this.providerFactory.getAvailableProviders(); const result: Record<string, { models: string[]; supportsReasoning: boolean; }> = {}; for (const provider of providers) { result[provider] = { models: this.providerFactory.getAvailableModelsForProvider(provider), supportsReasoning: this.providerFactory.supportsReasoningEffort(provider) }; } return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; } catch (error) { return { content: [{ type: 'text', text: `Error: ${error instanceof Error ? error.message : 'An unknown error occurred'}` }], isError: true }; } }
  • src/server.ts:82-111 (registration)
    Registers the 'listProviders' tool with the MCP server using this.tool(). Includes empty schema {} and inline handler. No input params required.
    // Register listProviders tool this.tool('listProviders', 'List all configured LLM providers and their available models', {}, async () => { try { const providers = this.providerFactory.getAvailableProviders(); const result: Record<string, { models: string[]; supportsReasoning: boolean; }> = {}; for (const provider of providers) { result[provider] = { models: this.providerFactory.getAvailableModelsForProvider(provider), supportsReasoning: this.providerFactory.supportsReasoningEffort(provider) }; } return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; } catch (error) { return { content: [{ type: 'text', text: `Error: ${error instanceof Error ? error.message : 'An unknown error occurred'}` }], isError: true }; } } );
  • ProviderFactory method used by listProviders handler to get the list of configured provider names.
    public getAvailableProviders(): string[] { return Array.from(this.providers.keys()); }
  • ProviderFactory method used to fetch available models for a specific provider instance.
    public getAvailableModelsForProvider(providerName: string): string[] { const provider = this.getProvider(providerName); return provider ? provider.getAvailableModels() : []; }
  • ProviderFactory method used to check if a provider supports reasoning effort parameter.
    public supportsReasoningEffort(providerName: string): boolean { const provider = this.getProvider(providerName); return provider ? provider.supportsReasoningEffort() : false; }

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pinkpixel-dev/mindbridge-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server