add_model_from_url
Integrate a custom chatbot model via URL into the MCP server for AI safety analysis. Provide configuration details to test and save the model for real-time deployment and prompt auditing.
Instructions
Add a new model using the provided configuration.
Args: config: A dictionary containing the url model configuration details. The structure of the ModelConfig is as follows: Example usage: { "model_saved_name": "example_model_name", # The name under which the model is saved. "model_version": "v1", # The version of the model. "testing_for": "URL", # The purpose for which the model is being tested. (Always URL) "model_name":"example_url", # The url of the chatbot site provided by user. "model_config": { "model_provider": "url", # Always fixed to 'url' "endpoint_url":"example_url", # Same as model_name "apikey":"none", # The API key to access the model. "input_modalities": ["text"], # Always fixed to ['text'] "output_modalities": ["text"], # Always fixed to ['text'] }, } Ask the user for the url before passing the config to the tool.
Returns: A dictionary containing the response message and details of the added model.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
config | Yes |