Skip to main content
Glama

get_sanitized_dataset

Destructive

Download an experiment's dataset with flagged poisoned samples removed as a .npz file for re-training, saving only inside the configured output directory.

Instructions

Download the experiment's suspect dataset with flagged poisoned samples removed, as a .npz file suitable for re-training. Requires the experiment to be completed with per-sample scores present. The saved file always lands inside POISONDASH_OUTPUT_DIR (the user's Downloads folder by default) -- output_path is resolved relative to that directory and any attempt to escape it, including via a symlink, is refused. Won't overwrite an existing file unless overwrite=true.

Input Schema

NameRequiredDescriptionDefault
overwriteNo
thresholdNoOverride the poisoning-score threshold; defaults to the experiment's stored threshold
output_pathNoWhere to save the file, relative to POISONDASH_OUTPUT_DIR (or an absolute path inside it)
experiment_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses the output-directory sandbox (POISONDASH_OUTPUT_DIR, Downloads default), that relative paths resolve there, that path escape attempts including symlinks are refused, and the overwrite guard. These are exactly the non-obvious side effects an agent needs before invoking a destructiveHint=true tool.

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

Conciseness5/5

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

Three sentences, each carrying distinct load (what it produces, the precondition, the filesystem safety rules). Purpose is front-loaded and the sandbox constraint follows immediately.

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

Completeness4/5

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

For a destructive write tool with no output schema, this covers prerequisites, path safety, and overwrite behavior. Minor omission: no mention of the resulting file's naming, size, or how errors (e.g., failed precondition) are surfaced, though these are largely inferable.

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

Parameters4/5

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

With 50% schema coverage, the description compensates well: it explains output_path resolution and its containment rule, and clarifies overwrite semantics ('won't overwrite unless overwrite=true'). It doesn't clarify what 'threshold' controls beyond the schema's own text or note experiment_id's role, leaving a small gap.

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 verb ('Download') and a precisely scoped resource ('the experiment's suspect dataset with flagged poisoned samples removed, as a .npz file'), which distinguishes it cleanly from the sibling get_dataset (the unfiltered dataset). Format and re-training intent are both named.

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?

Gives an explicit precondition ('Requires the experiment to be completed with per-sample scores present'), which tells the agent when this will fail. It does not name the alternative get_dataset or explain when the raw version is preferable, so it falls short of a 5.

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