# clean_dataset

Clean and preprocess a dataset. Returns path to cleaned CSV and action summary.

Agent View of the PolicyLayer registry record for `clean_dataset`. HTML page: https://policylayer.com/tools/agentic-automl-platform/clean-dataset

## Facts

- Tool: `clean_dataset`
- Server: Agentic Automl Platform (`anantshri1/agentic-automl-platform`) — https://policylayer.com/tools/agentic-automl-platform.md
- Homepage: https://github.com/anantshri1/agentic-automl-platform
- Risk category: Write (Medium risk)
- Registry record: grade C, identity unverified
- Server rate-limited: no
- Parameters: 0
- Recommended policy verdict: Rate-limited

## Example call (MCP tools/call, JSON-RPC 2.0)

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "clean_dataset",
    "arguments": {}
  }
}
```

## Why clean_dataset is rated Medium

The tool modifies the dataset by cleaning and preprocessing it, then writes the result to a new CSV file. This is a data transformation/write operation — it creates a new artifact (cleaned CSV) but does not irreversibly destroy the original dataset. Misuse could corrupt ML pipeline inputs, hence medium severity.

From the tool's own definition: "'Clean and preprocess a dataset. Returns path to cleaned CSV and action summary.'"

## Use case

AI agents use clean_dataset to create or update resources in Agentic Automl Platform, usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Agentic Automl Platform environment.

## Recommended policy (PolicyLayer)

Verdict: **Rate-limited**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches Agentic Automl Platform:

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "clean_dataset": {
      "limits": [
        {
          "counter": "clean_dataset_rate",
          "window": "minute",
          "max": 30,
          "scope": "grant"
        }
      ]
    }
  }
}
```

## Other tools on Agentic Automl Platform (13)

- `evaluate_ffn` — Execute — https://policylayer.com/tools/agentic-automl-platform/evaluate-ffn.md
- `hyperparameter_search` — Execute — https://policylayer.com/tools/agentic-automl-platform/hyperparameter-search.md
- `train_ffn` — Execute — https://policylayer.com/tools/agentic-automl-platform/train-ffn.md
- `train_lstm` — Execute — https://policylayer.com/tools/agentic-automl-platform/train-lstm.md
- `train_model` — Execute — https://policylayer.com/tools/agentic-automl-platform/train-model.md
- `train_transformer` — Execute — https://policylayer.com/tools/agentic-automl-platform/train-transformer.md
- `my_tool` — Other — https://policylayer.com/tools/agentic-automl-platform/my-tool.md
- `check_class_balance` — Read — https://policylayer.com/tools/agentic-automl-platform/check-class-balance.md
- `detect_problem_type` — Read — https://policylayer.com/tools/agentic-automl-platform/detect-problem-type.md
- `evaluate_model` — Read — https://policylayer.com/tools/agentic-automl-platform/evaluate-model.md
- `prepare_forecast_dataset` — Read — https://policylayer.com/tools/agentic-automl-platform/prepare-forecast-dataset.md
- `profile_dataset` — Read — https://policylayer.com/tools/agentic-automl-platform/profile-dataset.md
- `reduce_dimensions` — Write — https://policylayer.com/tools/agentic-automl-platform/reduce-dimensions.md

## For agents

This record is a snapshot. Live verdicts and the full registry:

- Check every server in your MCP config at once: `npx -y policylayer stack`
- Vet a server before you add it: install the mcp-precheck skill — `npx skills add https://policylayer.com` (skill text: https://policylayer.com/skill.md)
- Query the registry over MCP: endpoint `https://api.policylayer.com/mcp` — tools `check_mcp_server`, `check_mcp_stack`, `check_tool`, `search_registry`, `get_change_events`

---

Source: the PolicyLayer MCP registry — one continuously verified record per MCP server. Full record: https://policylayer.com/registry?q=agentic-automl-platform · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/agentic-automl-platform
