Skip to main content
Glama

list_providers

Retrieve a comprehensive list of all available LLM providers supported by the Just Prompt server for streamlined integration and access.

Instructions

List all available LLM providers

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Core handler function that iterates over ModelProviders enum to list all available providers with name, full_name, and short_name.
    def list_providers() -> List[Dict[str, str]]: """ List all available providers with their full and short names. Returns: List of dictionaries with provider information """ providers = [] for provider in ModelProviders: providers.append({ "name": provider.name, "full_name": provider.full_name, "short_name": provider.short_name }) return providers
  • Pydantic input schema for the list_providers tool (no parameters required).
    class ListProvidersSchema(BaseModel): pass
  • Registration of the list_providers tool in the MCP server's list_tools() function.
    Tool( name=JustPromptTools.LIST_PROVIDERS, description="List all available LLM providers", inputSchema=ListProvidersSchema.schema(), ),
  • MCP tool dispatch handler that calls list_providers_func() and formats the output as TextContent for the MCP protocol.
    elif name == JustPromptTools.LIST_PROVIDERS: providers = list_providers_func() provider_text = "\nAvailable Providers:\n" for provider in providers: provider_text += f"- {provider['name']}: full_name='{provider['full_name']}', short_name='{provider['short_name']}'\n" return [TextContent( type="text", text=provider_text )]
  • Constant definition for the tool name in JustPromptTools enum.
    LIST_PROVIDERS = "list_providers"

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/disler/just-prompt'

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