Skip to main content
Glama

Data Cleaning & Validation for AI Agents

Data Cleaning & Validation — Get Engine Script (large files)

data_cleaning_get_engine
Read-only

For files above the data_cleaning cap (over 20,000 rows), or exports already in your code sandbox. Returns a complete numpy-only Python script with the same engine as data_cleaning; it reads the CSV / TSV / JSON files named in the call (rules from JSON or a .txt file, one per line), prints the decision cards, and writes data_cleaning_result.json, clean_rows.csv, change_log.csv and cleaning_profile.json. The input file is never modified. No data reaches this server on this path.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

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

Input Schema

NameRequiredDescriptionDefault
paramsNoOther inputs exactly as data_cleaning takes them (job, field_weights ...).
rows_pathNorows file in your sandbox (CSV / TSV / JSON).
rules_pathNorules file in your sandbox (CSV / TSV / JSON; .txt one rule per line).
history_pathNohistory file in your sandbox (CSV / TSV / JSON).
target_schema_pathNotarget_schema file in your sandbox (CSV / TSV / JSON).
confirmed_fixes_pathNoconfirmed_fixes file in your sandbox (CSV / TSV / JSON).
cleaning_profile_pathNocleaning_profile file in your sandbox (CSV / TSV / JSON).

Output Schema

NameRequiredDescriptionDefault
notesNo
pathsNo
scriptYes
languageNo
requiresNo
instructionsYes
writes_filesNo
engine_versionYes
scipy_requiredNo
data_requirementsNo
network_access_requiredNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes well beyond the annotations: it discloses that the tool returns a script rather than transformed data, that no data reaches the server on this path, that the input file is never modified despite the script writing clean_rows.csv and other outputs, and that decision cards are printed. That resolves the exact concern an agent would have given readOnlyHint=true with a tool that emits file-writing code.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The qualifying condition is front-loaded in the first clause, which is the right ordering for a routing decision. The second sentence is a long enumeration but each artifact named is load-bearing; no filler sentences.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists so return values need no explanation, and the description nonetheless names the produced files. With seven fully described parameters, nested params, and annotations covering safety, nothing an agent needs to select or invoke this correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so all seven path parameters and the nested params object are already documented in the schema, including the '.txt one rule per line' detail. The description confirms which file types are read but adds no format, encoding, or path-resolution meaning beyond the schema — baseline 3.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific deliverable (a complete numpy-only Python script from the same engine as data_cleaning) plus the exact artifacts it produces. The scope statement 'files above the data_cleaning cap (over 20,000 rows), or exports already in your code sandbox' separates it from its only sibling by a concrete threshold.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The trigger condition is explicit: use this above the 20,000-row cap or when the export is already in the sandbox, which implies data_cleaning for everything else. It stops short of an explicit 'use data_cleaning instead when X' instruction, so the when-not side is inferred from the cap rather than stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.