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
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_providers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
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 - src/just_prompt/server.py:70-71 (schema)Pydantic input schema for the list_providers tool (no parameters required).
class ListProvidersSchema(BaseModel): pass - src/just_prompt/server.py:142-146 (registration)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(), ), - src/just_prompt/server.py:199-207 (handler)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 )] - src/just_prompt/server.py:41-41 (registration)Constant definition for the tool name in JustPromptTools enum.
LIST_PROVIDERS = "list_providers"