get_model_details
Retrieve detailed information about a specific AI model by providing its saved name and version. Use this tool to access model configurations and metadata for red-teaming tasks and AI safety analysis.
Instructions
Retrieve details of a specific model using its saved name.
Args: model_saved_name: The name under which the model is saved. model_version: The version of the model to be used for the redteam task. Returns: A dictionary containing the details of the model.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model_saved_name | Yes | ||
| model_version | Yes |
Input Schema (JSON Schema)
{
"properties": {
"model_saved_name": {
"title": "Model Saved Name",
"type": "string"
},
"model_version": {
"title": "Model Version",
"type": "string"
}
},
"required": [
"model_saved_name",
"model_version"
],
"title": "get_model_detailsArguments",
"type": "object"
}
Implementation Reference
- src/mcp_server.py:340-355 (handler)The core handler function for the 'get_model_details' MCP tool. Decorated with @mcp.tool() for registration. It retrieves specific model details via model_client.get_model() based on saved name and version, converting the result to a dictionary.@mcp.tool() def get_model_details(model_saved_name: str, model_version: str) -> Dict[str, Any]: """ Retrieve details of a specific model using its saved name. Args: model_saved_name: The name under which the model is saved. model_version: The version of the model to be used for the redteam task. Returns: A dictionary containing the details of the model. """ # Retrieve model details model_details = model_client.get_model(model_saved_name=model_saved_name, model_version=model_version) # Return the model details as a dictionary return model_details.to_dict()