Skip to main content
Glama

notebook_execute_all

Run all code cells in a Jupyter notebook sequentially, stopping on error. Returns a summary of each cell's execution result.

Instructions

Execute all code cells in the notebook in order. Markdown and raw cells are skipped. If stop_on_error is True (default), execution stops at the first cell that raises an exception. Returns a summary of results for each code cell executed.

python_path: which Python to use if no kernel is running yet (see cell_execute).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
timeoutNo
stop_on_errorNo
python_pathNo
Behavior4/5

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

Annotations are all false, so the description provides necessary behavioral details: stop_on_error behavior, skipping non-code cells, and return of summaries. No contradictions with annotations.

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 front-loaded with the main purpose and keeps sentences focused. It could integrate the python_path explanation more efficiently, but overall concise and well-structured.

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 no output schema, the description mentions returning a summary but lacks details on its structure. Edge cases like missing notebook or kernel state are not addressed. Adequate for basic understanding but not comprehensive.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must explain parameters. It explains stop_on_error and python_path, but fails to describe 'name' (required) and 'timeout' (default 30). Only 2 of 4 parameters are covered.

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 executes all code cells in order, skipping markdown and raw cells. This distinguishes it from sibling tool cell_execute (single cell) and other notebook tools.

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 implies usage for batch execution but does not explicitly state when to use this tool versus cell_execute. The reference to cell_execute for python_path hints at its existence but lacks direct comparison.

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/Try3D/JupyterMCP'

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