Skip to main content
Glama

prune_failed_subjects

Remove cortical tiles outputs for subjects that failed quality control. Reads a QC file and deletes files for subjects with qc=0 or missing entries.

Instructions

Remove cortical_tiles outputs for all subjects that failed QC.

Reads a QC TSV/CSV file with 'participant_id' and 'qc' columns and deletes all files belonging to subjects with qc==0 or absent from the QC file. Equivalent to having run cortical_tiles with --sk_qc_path from the start.

Use dry_run=True to preview what would be deleted without modifying anything.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
qcYes
outputYes
dry_runNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses that the tool deletes files (destructive), reads a QC file, and supports dry-run preview. It also specifies the scope (only cortical_tiles outputs) and the deletion condition. It could be more explicit about side effects or reversibility, but the information is sufficient for safe invocation.

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?

The description is three concise sentences: purpose, detailed behavior, and usage tip. It front-loads the verb-resource pair and avoids fluff. Every sentence adds essential information without redundancy.

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?

Given the existence of an output schema, the description does not need to explain return values. It covers the input format, behavior, and a safety preview. Missing context includes dependencies (e.g., QC file must exist) and scope confirmation (ensures it only deletes cortical_tiles outputs), but overall it adequately prepares an agent for correct invocation.

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?

The schema coverage is 0%, so the description must compensate. It explains the 'qc' parameter (TSV/CSV with specific columns) and 'dry_run' (preview mode), but 'output' is not explicitly defined—only implied as the cortical_tiles output directory. This adds some value but leaves a gap for one required parameter.

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?

The description clearly states the verb (remove), resource (cortical_tiles outputs), and condition (subjects that failed QC). It explains how failure is determined (qc==0 or absent from QC file), making the tool's purpose precise and distinct from siblings like purge_subject.

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 provides context for when to use this tool: after cortical_tiles if the QC flag was not used initially, and it offers a preview option (dry_run=True). It does not explicitly list alternatives or when not to use it, but the equivalence to a flag and the sample use case are clear enough for an agent to infer appropriate usage.

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/Barthelemy-Drabczuk/champollion_sulcal_mcp'

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