list_models
Retrieve and display a list of available AI models, including detailed information about the first model, for analysis and integration within the Enkrypt AI MCP Server.
Instructions
List all models and print details of the first model.
Returns: A dictionary containing the list of models.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Input Schema (JSON Schema)
{
"properties": {},
"title": "list_modelsArguments",
"type": "object"
}
Implementation Reference
- src/mcp_server.py:326-338 (handler)The core handler function for the 'list_models' MCP tool. It is registered via the @mcp.tool() decorator and retrieves the list of all models using model_client.get_model_list(), returning them as a dictionary.@mcp.tool() def list_models() -> Dict[str, Any]: """ List all models and print details of the first model. Returns: A dictionary containing the list of models. """ # List all models models = model_client.get_model_list() # Return the list of models as a dictionary return models.to_dict()