Skip to main content
Glama

ipynb_delete_cells_batch

Delete multiple cells from a Jupyter Notebook by specifying their indices. Use to batch-remove unnecessary cells without a Jupyter server.

Instructions

Delete multiple cells by indices from a Jupyter Notebook (.ipynb).

Args: ipynb_filepath: Path to Jupyter Notebook (.ipynb) file (absolute path preferred) cell_indices: List of cell indices to delete (0-based indexing)

Returns: Dict with 'success', 'cells_deleted', 'new_cell_count' or 'error' key

Note: Deletions are processed in descending order to maintain index validity. Provide indices as they appear before any deletions occur.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cell_indicesYes
ipynb_filepathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It discloses the non-obvious descending-order deletion processing to maintain index validity, instructs that indices should be as they appear before any deletions, and lists the return keys ('success', 'cells_deleted', 'new_cell_count'). This adds significant context beyond obvious deletion behavior.

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 well-structured with clear sections: summary, Args, Returns, and Note. It is concise, front-loaded with the action, and every sentence contributes useful 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?

The description is nearly complete given the presence of an output schema and detailed parameter explanations. It covers the critical non-obvious detail of descending-order processing. It could potentially mention that the file is modified on disk and that deletions are irreversible, but these are inferable from the tool's purpose. Overall, it is adequate for a batch deletion tool.

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?

The schema has 0% description coverage, but the description fully compensates with an Args section explaining both parameters: ipynb_filepath (path to .ipynb, absolute path preferred) and cell_indices (list of 0-based indices). This adds meaning beyond the bare type definitions in the schema.

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 tool's purpose: 'Delete multiple cells by indices from a Jupyter Notebook (.ipynb).' This is a specific verb+resource construction, and the emphasis on 'multiple cells' distinguishes it from the singular ipynb_delete_cell sibling.

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

Usage Guidelines3/5

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

The description provides no explicit comparison to alternatives or guidance on when to use this tool over others. The name and phrase 'multiple cells' imply batch usage, and the note about descending order is a usage constraint, but there is no direct exclusion or alternative-referencing guidance.

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/jsamuel1/jupyter-editor-mcp'

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