Skip to main content
Glama

clean_pipeline

Apply a sequence of cleaning operations in order to create a new clean dataset, with optional materialization for faster downstream queries.

Instructions

Apply a sequence of cleaning ops in order. Returns one new source.

    `ops` is a list of `{"kind": str, "args": dict}` (the same shape that
    `auto_clean` produces). Each op runs sequentially against the previous
    stage's output. Final stage gets `alias` (default `{source}_clean`).

    `materialize=True` (default) collapses the final result into a real
    DuckDB TABLE so downstream queries (run_sql, auto_modeling_audit,
    suggest_plots, etc.) don't have to re-evaluate the whole filter/
    replace chain. Turn off for short-lived exploratory cleanups where
    you won't query the output much.
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
opsYes
aliasNo
source_idYes
materializeNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

With no annotations provided, the description carries full burden and delivers: sequential op execution, default alias behavior, materialization into a real DuckDB TABLE, and the trade-off of disabling it. This is rich behavioral disclosure beyond the basic operation.

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 description is information-dense and well-structured, covering purpose, ops format, and materialization trade-off in a compact paragraph. No wasted words, though slightly longer than minimal.

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?

For a tool with 4 parameters and no annotations, the description is remarkably complete: operation semantics, parameter formats, defaults, and side effects are all addressed. The existing output schema covers return values, so nothing critical is missing.

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

Parameters5/5

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

Schema has 0% description coverage, but the description explains the critical `ops` structure (list of kind/args dicts), `alias` default, and `materialize` behavior. `source_id` is self-evident from context, so all meaningful semantics are covered.

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

Purpose4/5

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

The description clearly states 'Apply a sequence of cleaning ops in order' and 'Returns one new source', providing a specific verb and resource. It implicitly distinguishes itself from single-op cleaning tools by emphasizing sequential application, but does not explicitly name alternatives like auto_clean or clean_drop_duplicates.

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 description gives clear usage context: ops run sequentially, and materialization is recommended for heavy downstream use vs short-lived exploratory cleanups. However, it does not explicitly state when to prefer this tool over alternative cleaning tools or when not to use it.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/charliecpeterson/edamcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server