vizro-mcp

Official
by mckinsey

validate_model_config

Validate Vizro dashboard configurations for accuracy and completeness. Returns Python code, PyCafe links for remote files, and automatically opens them if enabled. Ensures proper integration of data files and model settings.

Instructions

Validate Vizro model configuration. Run ALWAYS when you have a complete dashboard configuration.

If successful, the tool will return the python code and, if it is a remote file, the py.cafe link to the chart. The PyCafe link will be automatically opened in your default browser if auto_open is True. Args: config: Either a JSON string or a dictionary representing a Vizro model configuration data_infos: List of DFMetaData objects containing information about the data files auto_open: Whether to automatically open the PyCafe link in a browser Returns: ValidationResults object with status and dashboard details

Input Schema

NameRequiredDescriptionDefault
auto_openNo
configYes
data_infosYes

Input Schema (JSON Schema)

{ "$defs": { "DFMetaData": { "properties": { "column_names_types": { "anyOf": [ { "additionalProperties": { "type": "string" }, "type": "object" }, { "type": "null" } ], "default": null, "title": "Column Names Types" }, "file_location_type": { "enum": [ "local", "remote" ], "title": "File Location Type", "type": "string" }, "file_name": { "title": "File Name", "type": "string" }, "file_path_or_url": { "title": "File Path Or Url", "type": "string" }, "read_function_string": { "enum": [ "pd.read_csv", "pd.read_json", "pd.read_html", "pd.read_parquet", "pd.read_excel" ], "title": "Read Function String", "type": "string" } }, "required": [ "file_name", "file_path_or_url", "file_location_type", "read_function_string" ], "title": "DFMetaData", "type": "object" } }, "properties": { "auto_open": { "default": true, "title": "Auto Open", "type": "boolean" }, "config": { "additionalProperties": true, "title": "Config", "type": "object" }, "data_infos": { "items": { "$ref": "#/$defs/DFMetaData" }, "title": "Data Infos", "type": "array" } }, "required": [ "config", "data_infos" ], "title": "validate_model_configArguments", "type": "object" }

You must be authenticated.

Other Tools from vizro-mcp

Related Tools

ID: lvw130aakq