{"at":"2026-11-23T02:05:36.699Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T02:05:37.590Z","dir":"received","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"name":"dashai_mcp","version":"0.3.1"}},"cacheScope":"private","capabilities":{"prompts":{"listChanged":true},"resources":{"listChanged":true,"subscribe":true},"tools":{"listChanged":true}},"resultType":"complete","supportedVersions":["2026-07-28"],"ttlMs":0}}}
{"at":"2026-11-23T02:05:37.590Z","dir":"sent","era":"server_discover","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T02:05:37.592Z","dir":"received","era":"server_discover","message":{"id":2,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"name":"dashai_mcp","version":"0.3.1"}},"cacheScope":"private","resultType":"complete","tools":[{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"dashAI server status"},"description":"Checks that dashAI is running and summarizes what is loaded.\n\nCall this FIRST when something fails or when you do not know whether the\nbackend is up: it tells \"dashAI is down\" apart from \"that id does not\nexist\", which are two problems with different fixes.\n\nArgs:\n    params (NoArgs): no parameters.\n\nReturns:\n    str: JSON with the following schema:\n    {\n        \"base_url\": str,      # which instance is being targeted\n        \"reachable\": bool,    # whether it responded\n        \"datasets\": int,      # number of loaded datasets\n        \"runs\": int,          # number of recorded runs\n        \"queue_empty\": bool,  # whether the job queue is empty\n        \"compatibility\": {    # live API vs the release verified end to end\n            \"verified_against\": str,   # e.g. \"dashAI 0.9.7.post1\"\n            \"status\": str,             # \"ok\" | \"mismatch\" | \"unknown\"\n            \"warnings\": [str],         # only on mismatch: what differs\n            \"note\": str                # only on mismatch/unknown\n        }\n    }\n    On failure: \"Error: <what happened and what to do>\".\n","inputSchema":{"$defs":{"NoArgs":{"additionalProperties":false,"properties":{},"title":"NoArgs","type":"object"}},"properties":{"params":{"$ref":"#/$defs/NoArgs"}},"required":["params"],"title":"dashai_server_infoArguments","type":"object"},"name":"dashai_server_info","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"dashai_server_infoOutput","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"List datasets"},"description":"Lists the datasets loaded in dashAI.\n\nReturns only id, name, date and status — just enough to pick one. To see\ncolumns and types use dashai_describe_dataset with the id.\n\nArgs:\n    params (ListDatasets): contains:\n        - limit (int): maximum to return, 1-200 (default 50)\n\nReturns:\n    str: JSON {\"count\": int, \"datasets\": [{\"id\", \"name\", \"created\", \"status\"}]}\n    If there are none: a message explaining how to load data from the GUI.\n","inputSchema":{"$defs":{"ListDatasets":{"additionalProperties":false,"properties":{"limit":{"default":50,"description":"Maximum number of datasets to return","maximum":200,"minimum":1,"title":"Limit","type":"integer"}},"title":"ListDatasets","type":"object"}},"properties":{"params":{"$ref":"#/$defs/ListDatasets"}},"required":["params"],"title":"dashai_list_datasetsArguments","type":"object"},"name":"dashai_list_datasets","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"dashai_list_datasetsOutput","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"Describe a dataset"},"description":"Returns everything needed to configure a training run over a dataset.\n\nGathers into a single call what the raw API splits into four (`/{id}`,\n`/info`, `/types` and `/sample`), because deciding which columns are input\nand which is output requires seeing them together.\n\nArgs:\n    params (DescribeDataset): contains:\n        - dataset_id (int): dataset id\n        - include_sample (bool): include sample rows (default True)\n\nReturns:\n    str: JSON {\"dataset\": {...}, \"info\": {...}, \"column_types\": {...}, \"sample\": [...]}\n    If one part is unavailable it comes back as null instead of failing whole.\n","inputSchema":{"$defs":{"DescribeDataset":{"additionalProperties":false,"properties":{"dataset_id":{"description":"Dataset id, as listed by dashai_list_datasets","minimum":1,"title":"Dataset Id","type":"integer"},"include_sample":{"default":true,"description":"Include ~10 sample rows. Set to false if the dataset has very wide columns.","title":"Include Sample","type":"boolean"}},"required":["dataset_id"],"title":"DescribeDataset","type":"object"}},"properties":{"params":{"$ref":"#/$defs/DescribeDataset"}},"required":["params"],"title":"dashai_describe_datasetArguments","type":"object"},"name":"dashai_describe_dataset","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"dashai_describe_datasetOutput","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"List available models, metrics and tasks"},"description":"Lists the registered components: models, metrics, tasks and optimizers.\n\nALWAYS use this before dashai_train_model. The names dashAI expects are\nexact and case-sensitive, and the catalogue changes with the plugins that\ninstance has installed — they cannot be guessed.\n\nArgs:\n    params (ListComponents): contains:\n        - types (Optional[List[str]]): filter by 'Model', 'Metric', 'Task', 'Optimizer'\n\nReturns:\n    str: JSON {\"count\": int, \"components\": [{\"name\": str, \"type\": str, \"schema\": {...}}]}\n    The `schema` field describes the hyperparameters that component accepts.\n","inputSchema":{"$defs":{"ListComponents":{"additionalProperties":false,"properties":{"types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"description":"Filter by component type. Valid values: 'Model', 'Metric', 'Task', 'Optimizer'. With no filter it returns the whole registry, which is long.","title":"Types"}},"title":"ListComponents","type":"object"}},"properties":{"params":{"$ref":"#/$defs/ListComponents"}},"required":["params"],"title":"dashai_list_componentsArguments","type":"object"},"name":"dashai_list_components","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"dashai_list_componentsOutput","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":true,"readOnlyHint":false,"title":"Train a model"},"description":"Trains a model on a dataset and returns the id of the enqueued job.\n\nIt does NOT wait for it to finish. Training can take minutes or hours, so\ndashAI enqueues it and this tool returns immediately; progress is polled\nwith dashai_job_status.\n\nCollapses the three calls the raw API demands:\n  1. POST /model-session/  creates the experiment (dataset, task, columns, metrics)\n  2. POST /run/            creates the run (model, hyperparameters)\n  3. POST /job/            enqueues the ModelJob\n\nArgs:\n    params (TrainModel): contains:\n        - dataset_id (int), task_name (str), model_name (str)\n        - input_columns / output_columns (List[str])\n        - metrics (List[str]), goal_metric (str)\n        - parameters (Dict): model hyperparameters\n        - splits (Dict[str, float]): proportions adding up to 1.0\n        - optimizer_name (str), optimizer_parameters (Dict)\n        - run_name (Optional[str])\n\nReturns:\n    str: JSON {\"job_id\": str, \"run_id\": int, \"model_session_id\": int, \"status\": \"enqueued\", \"next_step\": str}\n    On failure: \"Error: ...\" stating which parameter dashAI rejected.\n\nExamples:\n    - \"Train a random forest on dataset 3 predicting 'species'\"\n    - Do not use it to read results: that is dashai_get_run, with the run_id.\n","inputSchema":{"$defs":{"TrainModel":{"additionalProperties":false,"description":"Everything needed for the full model-session → run → job path.","properties":{"dataset_id":{"description":"Id of the dataset to use","minimum":1,"title":"Dataset Id","type":"integer"},"goal_metric":{"description":"Metric that is optimized and compared against. Must be one of `metrics`.","minLength":1,"title":"Goal Metric","type":"string"},"input_columns":{"description":"Input columns (features)","items":{"type":"string"},"minItems":1,"title":"Input Columns","type":"array"},"metrics":{"description":"Metrics to compute, from dashai_list_components(types=['Metric']). E.g. ['Accuracy', 'F1']. Applied to train, validation and test.","items":{"type":"string"},"minItems":1,"title":"Metrics","type":"array"},"model_name":{"description":"Exact model name, from dashai_list_components(types=['Model']). E.g. 'RandomForestClassifier', 'DistilBertTransformer'. Case-sensitive.","minLength":1,"title":"Model Name","type":"string"},"optimizer_name":{"default":"","description":"Hyperparameter optimizer (optional). Empty trains once.","title":"Optimizer Name","type":"string"},"optimizer_parameters":{"additionalProperties":true,"description":"Optimizer parameters","title":"Optimizer Parameters","type":"object"},"output_columns":{"description":"Output columns (target)","items":{"type":"string"},"minItems":1,"title":"Output Columns","type":"array"},"parameters":{"additionalProperties":true,"description":"Model hyperparameters. Empty uses dashAI's defaults. E.g. {'n_estimators': 100}","title":"Parameters","type":"object"},"run_name":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Name to identify the run","title":"Run Name"},"splits":{"additionalProperties":{"type":"number"},"description":"Split proportions. The three keys must add up to 1.0.","title":"Splits","type":"object"},"task_name":{"description":"Exact task name, from dashai_list_components(types=['Task']). E.g. 'TabularClassificationTask', 'TextClassificationTask'.","minLength":1,"title":"Task Name","type":"string"}},"required":["dataset_id","task_name","model_name","input_columns","output_columns","metrics","goal_metric"],"title":"TrainModel","type":"object"}},"properties":{"params":{"$ref":"#/$defs/TrainModel"}},"required":["params"],"title":"dashai_train_modelArguments","type":"object"},"name":"dashai_train_model","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"dashai_train_modelOutput","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"Job status"},"description":"Polls the status of an enqueued job (training, prediction, explanation).\n\ndashAI's statuses: `not_started` (queued), `started` (running), `finished`\n(done) and `error` (failed). Telling `started` from `error` matters: the\nfirst is worth waiting on, the second does not improve by polling again.\n\nArgs:\n    params (JobStatus): contains:\n        - job_id (str): id returned when enqueuing\n\nReturns:\n    str: JSON {\"job_id\": str, \"status\": str, \"finished\": bool, \"failed\": bool, \"raw\": {...}}\n","inputSchema":{"$defs":{"JobStatus":{"additionalProperties":false,"properties":{"job_id":{"description":"Job id returned by dashai_train_model or dashai_predict","minLength":1,"title":"Job Id","type":"string"}},"required":["job_id"],"title":"JobStatus","type":"object"}},"properties":{"params":{"$ref":"#/$defs/JobStatus"}},"required":["params"],"title":"dashai_job_statusArguments","type":"object"},"name":"dashai_job_status","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"dashai_job_statusOutput","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"List training runs"},"description":"Lists the recorded training runs, with their status.\n\nUseful for comparing models trained within the same experiment.\n\nArgs:\n    params (ListRuns): contains:\n        - model_session_id (Optional[int]): filter by experiment\n        - limit (int): maximum to return, 1-200 (default 50)\n\nReturns:\n    str: JSON {\"count\": int, \"runs\": [{\"id\", \"name\", \"model_name\", \"status\", \"goal_metric\"}]}\n","inputSchema":{"$defs":{"ListRuns":{"additionalProperties":false,"properties":{"limit":{"default":50,"description":"Maximum number of runs to return","maximum":200,"minimum":1,"title":"Limit","type":"integer"},"model_session_id":{"anyOf":[{"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Filter by model session (experiment)","title":"Model Session Id"}},"title":"ListRuns","type":"object"}},"properties":{"params":{"$ref":"#/$defs/ListRuns"}},"required":["params"],"title":"dashai_list_runsArguments","type":"object"},"name":"dashai_list_runs","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"dashai_list_runsOutput","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"Results of a run"},"description":"Returns the configuration and metrics of a training run.\n\nThis is where results are read once dashai_job_status says `finished`. If\nthe run did not finish, the metrics will come back empty — that is not an\nerror.\n\nArgs:\n    params (GetRun): contains:\n        - run_id (int): run id\n\nReturns:\n    str: JSON with the full run: model parameters, status and metrics per\n    split (train / validation / test).\n","inputSchema":{"$defs":{"GetRun":{"additionalProperties":false,"properties":{"run_id":{"description":"Run id","minimum":1,"title":"Run Id","type":"integer"}},"required":["run_id"],"title":"GetRun","type":"object"}},"properties":{"params":{"$ref":"#/$defs/GetRun"}},"required":["params"],"title":"dashai_get_runArguments","type":"object"},"name":"dashai_get_run","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"dashai_get_runOutput","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":true,"readOnlyHint":false,"title":"Predict with a trained model"},"description":"Enqueues a prediction using the model of an already finished run.\n\nLike training, it is asynchronous: it returns a job_id and the result is\nfollowed with dashai_job_status.\n\nCollapses the two calls the GUI makes (read from\nDatasetPredictionPanel + createPrediction + enqueuePredictionJob, not\nfrom the docs):\n  1. POST /predict/           creates the Prediction row ({run_id, dataset_id})\n  2. POST /job/  PredictJob   enqueues with {prediction_id} — NOT run_id\n\nPassing only run_id to the job raises KeyError 'prediction_id' inside\nPredictJob.run. The Prediction row must exist first.\n\nArgs:\n    params (Predict): contains:\n        - run_id (int): id of a finished run\n        - dataset_id (Optional[int]): dataset to score; defaults to the\n          run's training dataset (from its model session)\n\nReturns:\n    str: JSON {\"job_id\", \"run_id\", \"prediction_id\", \"dataset_id\",\n    \"status\": \"enqueued\", \"next_step\"}\n","inputSchema":{"$defs":{"Predict":{"additionalProperties":false,"properties":{"dataset_id":{"anyOf":[{"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Dataset to predict on. If omitted, the run's training dataset is used. Must have the same input columns as the model; pick it from dashai_list_datasets.","title":"Dataset Id"},"run_id":{"description":"Id of an already finished run (status FINISHED)","minimum":1,"title":"Run Id","type":"integer"}},"required":["run_id"],"title":"Predict","type":"object"}},"properties":{"params":{"$ref":"#/$defs/Predict"}},"required":["params"],"title":"dashai_predictArguments","type":"object"},"name":"dashai_predict","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"dashai_predictOutput","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"Prediction class counts"},"description":"Returns class counts for a finished prediction — never the rows.\n\ndashAI stores predictions as an Arrow dataset on disk and GET /predict/\nonly returns the SQL row (id, status, paths). This tool reads that row\nand, when the job is finished, aggregates the output column. The label\nlist never leaves the function.\n\nArgs:\n    params (GetPrediction): contains prediction_id from dashai_predict.\n\nReturns:\n    str: JSON {prediction_id, run_id, dataset_id, status, finished,\n    n, n_classes, class_counts}. Paths and row lists are stripped.\n","inputSchema":{"$defs":{"GetPrediction":{"additionalProperties":false,"properties":{"prediction_id":{"description":"Id returned by dashai_predict","minimum":1,"title":"Prediction Id","type":"integer"}},"required":["prediction_id"],"title":"GetPrediction","type":"object"}},"properties":{"params":{"$ref":"#/$defs/GetPrediction"}},"required":["params"],"title":"dashai_get_predictionArguments","type":"object"},"name":"dashai_get_prediction","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"dashai_get_predictionOutput","type":"object"}}],"ttlMs":0}}}
{"at":"2026-11-23T02:05:37.743Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T02:05:38.649Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"prompts":{"listChanged":false},"resources":{"listChanged":false,"subscribe":false},"tools":{"listChanged":false}},"protocolVersion":"2025-11-25","serverInfo":{"name":"dashai_mcp","version":"0.3.1"}}}}
{"at":"2026-11-23T02:05:38.649Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T02:05:38.649Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T02:05:38.651Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"dashAI server status"},"description":"Checks that dashAI is running and summarizes what is loaded.\n\nCall this FIRST when something fails or when you do not know whether the\nbackend is up: it tells \"dashAI is down\" apart from \"that id does not\nexist\", which are two problems with different fixes.\n\nArgs:\n    params (NoArgs): no parameters.\n\nReturns:\n    str: JSON with the following schema:\n    {\n        \"base_url\": str,      # which instance is being targeted\n        \"reachable\": bool,    # whether it responded\n        \"datasets\": int,      # number of loaded datasets\n        \"runs\": int,          # number of recorded runs\n        \"queue_empty\": bool,  # whether the job queue is empty\n        \"compatibility\": {    # live API vs the release verified end to end\n            \"verified_against\": str,   # e.g. \"dashAI 0.9.7.post1\"\n            \"status\": str,             # \"ok\" | \"mismatch\" | \"unknown\"\n            \"warnings\": [str],         # only on mismatch: what differs\n            \"note\": str                # only on mismatch/unknown\n        }\n    }\n    On failure: \"Error: <what happened and what to do>\".\n","inputSchema":{"$defs":{"NoArgs":{"additionalProperties":false,"properties":{},"title":"NoArgs","type":"object"}},"properties":{"params":{"$ref":"#/$defs/NoArgs"}},"required":["params"],"title":"dashai_server_infoArguments","type":"object"},"name":"dashai_server_info","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"dashai_server_infoOutput","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"List datasets"},"description":"Lists the datasets loaded in dashAI.\n\nReturns only id, name, date and status — just enough to pick one. To see\ncolumns and types use dashai_describe_dataset with the id.\n\nArgs:\n    params (ListDatasets): contains:\n        - limit (int): maximum to return, 1-200 (default 50)\n\nReturns:\n    str: JSON {\"count\": int, \"datasets\": [{\"id\", \"name\", \"created\", \"status\"}]}\n    If there are none: a message explaining how to load data from the GUI.\n","inputSchema":{"$defs":{"ListDatasets":{"additionalProperties":false,"properties":{"limit":{"default":50,"description":"Maximum number of datasets to return","maximum":200,"minimum":1,"title":"Limit","type":"integer"}},"title":"ListDatasets","type":"object"}},"properties":{"params":{"$ref":"#/$defs/ListDatasets"}},"required":["params"],"title":"dashai_list_datasetsArguments","type":"object"},"name":"dashai_list_datasets","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"dashai_list_datasetsOutput","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"Describe a dataset"},"description":"Returns everything needed to configure a training run over a dataset.\n\nGathers into a single call what the raw API splits into four (`/{id}`,\n`/info`, `/types` and `/sample`), because deciding which columns are input\nand which is output requires seeing them together.\n\nArgs:\n    params (DescribeDataset): contains:\n        - dataset_id (int): dataset id\n        - include_sample (bool): include sample rows (default True)\n\nReturns:\n    str: JSON {\"dataset\": {...}, \"info\": {...}, \"column_types\": {...}, \"sample\": [...]}\n    If one part is unavailable it comes back as null instead of failing whole.\n","inputSchema":{"$defs":{"DescribeDataset":{"additionalProperties":false,"properties":{"dataset_id":{"description":"Dataset id, as listed by dashai_list_datasets","minimum":1,"title":"Dataset Id","type":"integer"},"include_sample":{"default":true,"description":"Include ~10 sample rows. Set to false if the dataset has very wide columns.","title":"Include Sample","type":"boolean"}},"required":["dataset_id"],"title":"DescribeDataset","type":"object"}},"properties":{"params":{"$ref":"#/$defs/DescribeDataset"}},"required":["params"],"title":"dashai_describe_datasetArguments","type":"object"},"name":"dashai_describe_dataset","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"dashai_describe_datasetOutput","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"List available models, metrics and tasks"},"description":"Lists the registered components: models, metrics, tasks and optimizers.\n\nALWAYS use this before dashai_train_model. The names dashAI expects are\nexact and case-sensitive, and the catalogue changes with the plugins that\ninstance has installed — they cannot be guessed.\n\nArgs:\n    params (ListComponents): contains:\n        - types (Optional[List[str]]): filter by 'Model', 'Metric', 'Task', 'Optimizer'\n\nReturns:\n    str: JSON {\"count\": int, \"components\": [{\"name\": str, \"type\": str, \"schema\": {...}}]}\n    The `schema` field describes the hyperparameters that component accepts.\n","inputSchema":{"$defs":{"ListComponents":{"additionalProperties":false,"properties":{"types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"description":"Filter by component type. Valid values: 'Model', 'Metric', 'Task', 'Optimizer'. With no filter it returns the whole registry, which is long.","title":"Types"}},"title":"ListComponents","type":"object"}},"properties":{"params":{"$ref":"#/$defs/ListComponents"}},"required":["params"],"title":"dashai_list_componentsArguments","type":"object"},"name":"dashai_list_components","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"dashai_list_componentsOutput","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":true,"readOnlyHint":false,"title":"Train a model"},"description":"Trains a model on a dataset and returns the id of the enqueued job.\n\nIt does NOT wait for it to finish. Training can take minutes or hours, so\ndashAI enqueues it and this tool returns immediately; progress is polled\nwith dashai_job_status.\n\nCollapses the three calls the raw API demands:\n  1. POST /model-session/  creates the experiment (dataset, task, columns, metrics)\n  2. POST /run/            creates the run (model, hyperparameters)\n  3. POST /job/            enqueues the ModelJob\n\nArgs:\n    params (TrainModel): contains:\n        - dataset_id (int), task_name (str), model_name (str)\n        - input_columns / output_columns (List[str])\n        - metrics (List[str]), goal_metric (str)\n        - parameters (Dict): model hyperparameters\n        - splits (Dict[str, float]): proportions adding up to 1.0\n        - optimizer_name (str), optimizer_parameters (Dict)\n        - run_name (Optional[str])\n\nReturns:\n    str: JSON {\"job_id\": str, \"run_id\": int, \"model_session_id\": int, \"status\": \"enqueued\", \"next_step\": str}\n    On failure: \"Error: ...\" stating which parameter dashAI rejected.\n\nExamples:\n    - \"Train a random forest on dataset 3 predicting 'species'\"\n    - Do not use it to read results: that is dashai_get_run, with the run_id.\n","inputSchema":{"$defs":{"TrainModel":{"additionalProperties":false,"description":"Everything needed for the full model-session → run → job path.","properties":{"dataset_id":{"description":"Id of the dataset to use","minimum":1,"title":"Dataset Id","type":"integer"},"goal_metric":{"description":"Metric that is optimized and compared against. Must be one of `metrics`.","minLength":1,"title":"Goal Metric","type":"string"},"input_columns":{"description":"Input columns (features)","items":{"type":"string"},"minItems":1,"title":"Input Columns","type":"array"},"metrics":{"description":"Metrics to compute, from dashai_list_components(types=['Metric']). E.g. ['Accuracy', 'F1']. Applied to train, validation and test.","items":{"type":"string"},"minItems":1,"title":"Metrics","type":"array"},"model_name":{"description":"Exact model name, from dashai_list_components(types=['Model']). E.g. 'RandomForestClassifier', 'DistilBertTransformer'. Case-sensitive.","minLength":1,"title":"Model Name","type":"string"},"optimizer_name":{"default":"","description":"Hyperparameter optimizer (optional). Empty trains once.","title":"Optimizer Name","type":"string"},"optimizer_parameters":{"additionalProperties":true,"description":"Optimizer parameters","title":"Optimizer Parameters","type":"object"},"output_columns":{"description":"Output columns (target)","items":{"type":"string"},"minItems":1,"title":"Output Columns","type":"array"},"parameters":{"additionalProperties":true,"description":"Model hyperparameters. Empty uses dashAI's defaults. E.g. {'n_estimators': 100}","title":"Parameters","type":"object"},"run_name":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Name to identify the run","title":"Run Name"},"splits":{"additionalProperties":{"type":"number"},"description":"Split proportions. The three keys must add up to 1.0.","title":"Splits","type":"object"},"task_name":{"description":"Exact task name, from dashai_list_components(types=['Task']). E.g. 'TabularClassificationTask', 'TextClassificationTask'.","minLength":1,"title":"Task Name","type":"string"}},"required":["dataset_id","task_name","model_name","input_columns","output_columns","metrics","goal_metric"],"title":"TrainModel","type":"object"}},"properties":{"params":{"$ref":"#/$defs/TrainModel"}},"required":["params"],"title":"dashai_train_modelArguments","type":"object"},"name":"dashai_train_model","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"dashai_train_modelOutput","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"Job status"},"description":"Polls the status of an enqueued job (training, prediction, explanation).\n\ndashAI's statuses: `not_started` (queued), `started` (running), `finished`\n(done) and `error` (failed). Telling `started` from `error` matters: the\nfirst is worth waiting on, the second does not improve by polling again.\n\nArgs:\n    params (JobStatus): contains:\n        - job_id (str): id returned when enqueuing\n\nReturns:\n    str: JSON {\"job_id\": str, \"status\": str, \"finished\": bool, \"failed\": bool, \"raw\": {...}}\n","inputSchema":{"$defs":{"JobStatus":{"additionalProperties":false,"properties":{"job_id":{"description":"Job id returned by dashai_train_model or dashai_predict","minLength":1,"title":"Job Id","type":"string"}},"required":["job_id"],"title":"JobStatus","type":"object"}},"properties":{"params":{"$ref":"#/$defs/JobStatus"}},"required":["params"],"title":"dashai_job_statusArguments","type":"object"},"name":"dashai_job_status","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"dashai_job_statusOutput","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"List training runs"},"description":"Lists the recorded training runs, with their status.\n\nUseful for comparing models trained within the same experiment.\n\nArgs:\n    params (ListRuns): contains:\n        - model_session_id (Optional[int]): filter by experiment\n        - limit (int): maximum to return, 1-200 (default 50)\n\nReturns:\n    str: JSON {\"count\": int, \"runs\": [{\"id\", \"name\", \"model_name\", \"status\", \"goal_metric\"}]}\n","inputSchema":{"$defs":{"ListRuns":{"additionalProperties":false,"properties":{"limit":{"default":50,"description":"Maximum number of runs to return","maximum":200,"minimum":1,"title":"Limit","type":"integer"},"model_session_id":{"anyOf":[{"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Filter by model session (experiment)","title":"Model Session Id"}},"title":"ListRuns","type":"object"}},"properties":{"params":{"$ref":"#/$defs/ListRuns"}},"required":["params"],"title":"dashai_list_runsArguments","type":"object"},"name":"dashai_list_runs","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"dashai_list_runsOutput","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"Results of a run"},"description":"Returns the configuration and metrics of a training run.\n\nThis is where results are read once dashai_job_status says `finished`. If\nthe run did not finish, the metrics will come back empty — that is not an\nerror.\n\nArgs:\n    params (GetRun): contains:\n        - run_id (int): run id\n\nReturns:\n    str: JSON with the full run: model parameters, status and metrics per\n    split (train / validation / test).\n","inputSchema":{"$defs":{"GetRun":{"additionalProperties":false,"properties":{"run_id":{"description":"Run id","minimum":1,"title":"Run Id","type":"integer"}},"required":["run_id"],"title":"GetRun","type":"object"}},"properties":{"params":{"$ref":"#/$defs/GetRun"}},"required":["params"],"title":"dashai_get_runArguments","type":"object"},"name":"dashai_get_run","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"dashai_get_runOutput","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":false,"openWorldHint":true,"readOnlyHint":false,"title":"Predict with a trained model"},"description":"Enqueues a prediction using the model of an already finished run.\n\nLike training, it is asynchronous: it returns a job_id and the result is\nfollowed with dashai_job_status.\n\nCollapses the two calls the GUI makes (read from\nDatasetPredictionPanel + createPrediction + enqueuePredictionJob, not\nfrom the docs):\n  1. POST /predict/           creates the Prediction row ({run_id, dataset_id})\n  2. POST /job/  PredictJob   enqueues with {prediction_id} — NOT run_id\n\nPassing only run_id to the job raises KeyError 'prediction_id' inside\nPredictJob.run. The Prediction row must exist first.\n\nArgs:\n    params (Predict): contains:\n        - run_id (int): id of a finished run\n        - dataset_id (Optional[int]): dataset to score; defaults to the\n          run's training dataset (from its model session)\n\nReturns:\n    str: JSON {\"job_id\", \"run_id\", \"prediction_id\", \"dataset_id\",\n    \"status\": \"enqueued\", \"next_step\"}\n","inputSchema":{"$defs":{"Predict":{"additionalProperties":false,"properties":{"dataset_id":{"anyOf":[{"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Dataset to predict on. If omitted, the run's training dataset is used. Must have the same input columns as the model; pick it from dashai_list_datasets.","title":"Dataset Id"},"run_id":{"description":"Id of an already finished run (status FINISHED)","minimum":1,"title":"Run Id","type":"integer"}},"required":["run_id"],"title":"Predict","type":"object"}},"properties":{"params":{"$ref":"#/$defs/Predict"}},"required":["params"],"title":"dashai_predictArguments","type":"object"},"name":"dashai_predict","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"dashai_predictOutput","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":true,"readOnlyHint":true,"title":"Prediction class counts"},"description":"Returns class counts for a finished prediction — never the rows.\n\ndashAI stores predictions as an Arrow dataset on disk and GET /predict/\nonly returns the SQL row (id, status, paths). This tool reads that row\nand, when the job is finished, aggregates the output column. The label\nlist never leaves the function.\n\nArgs:\n    params (GetPrediction): contains prediction_id from dashai_predict.\n\nReturns:\n    str: JSON {prediction_id, run_id, dataset_id, status, finished,\n    n, n_classes, class_counts}. Paths and row lists are stripped.\n","inputSchema":{"$defs":{"GetPrediction":{"additionalProperties":false,"properties":{"prediction_id":{"description":"Id returned by dashai_predict","minimum":1,"title":"Prediction Id","type":"integer"}},"required":["prediction_id"],"title":"GetPrediction","type":"object"}},"properties":{"params":{"$ref":"#/$defs/GetPrediction"}},"required":["params"],"title":"dashai_get_predictionArguments","type":"object"},"name":"dashai_get_prediction","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"dashai_get_predictionOutput","type":"object"}}]}}}
