Skip to main content
Glama

ipynb_apply_to_notebooks

Apply identical operations across multiple Jupyter notebooks: set kernel, clear outputs, or update metadata in batch.

Instructions

Apply same operation to multiple Jupyter Notebooks (.ipynb).

Args: ipynb_filepaths: List of notebook paths (absolute paths preferred) operation: Operation name ('set_kernel', 'clear_outputs', 'update_metadata') operation_params: Parameters for the operation as a dictionary

Returns: Dict with 'success' and 'results' or 'error' key

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
operationYes
ipynb_filepathsYes
operation_paramsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

With no annotations provided, the description carries the full burden. It discloses the return format (dict with 'success' and 'results' or 'error') and lists allowed operations, but it lacks details on side effects (e.g., in-place file modification), error handling across multiple notebooks, or operation-specific behavior. Some transparency is present but significant gaps remain.

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 concise, well-structured with a summary line and clearly labeled Args/Returns sections. Every sentence adds necessary information without redundancy, and the formatting aids parsing.

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

Completeness3/5

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

Given the tool's complexity (multiple operations, batch processing) and lack of annotations, the description covers the essentials but omits important context such as whether results are returned per notebook, how partial failures are handled, and whether operations modify files directly. The output schema likely covers return structure, but the behavioral details for batch execution are incomplete.

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?

The schema has 0% description coverage, so the description must compensate. The Args section provides meaningful semantics for all three parameters: filepaths (list, absolute preferred), operation (allowed values listed), and operation_params (dictionary). It could be more precise about the expected keys for each operation, but it adds substantial value beyond the bare 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 'Apply same operation to multiple Jupyter Notebooks' with a specific verb and resource. It distinguishes from siblings by emphasizing the batch nature and listing the supported operations ('set_kernel', 'clear_outputs', 'update_metadata'), making its purpose unambiguous.

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 clear context: it is for applying the same operation to multiple notebooks. However, it does not explicitly mention when not to use it or point to alternative sibling tools for single notebook operations, though the batch wording implies that differentiation.

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