Skip to main content
Glama
am-3

universal-notebook-mcp

by am-3

notebook_edit_cell

Edit a Jupyter notebook cell by replacing its source code or markdown text. Optionally create a timestamped backup before the change.

Instructions

Replace the source of a cell.

A timestamped .checkpoint_*.ipynb backup is written before the change unless checkpoint=false.

Args: notebook_path: Path to the .ipynb file, relative to the workspace root. cell_index: Zero-based index of the cell to edit. source: New source code or markdown text. checkpoint: Write a backup before editing (default: true).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sourceYes
cell_indexYes
checkpointNo
notebook_pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
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 backup behavior (timestamped .checkpoint_*.ipynb) and the checkpoint parameter to disable it. However, it does not mention potential side effects like kernel state changes, file locking, or error scenarios, leaving gaps in transparency.

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: two sentences plus bullet-pointed args. Every sentence adds value. The action is front-loaded, and the args are clearly listed with context. No wasted words.

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 tool has an output schema (not shown) which likely documents return values, reducing the burden on the description. The description covers the main behavioral aspect (backup) and parameter semantics. It lacks details on error handling, permission requirements, or cell existence checks, but overall provides sufficient context for a write operation.

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 input schema has 0% description coverage, but the tool description adds valuable semantics for all parameters: notebook_path is relative to workspace root, cell_index is zero-based, source is new text, checkpoint defaults to true and controls backup. This compensates fully for the schema's lack of descriptions.

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 starts with 'Replace the source of a cell', a clear verb-resource action. The verb 'replace' and resource 'source of a cell' accurately describe the core function, and it distinguishes from sibling tools like notebook_delete_cell or notebook_edit_cell_metadata.

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

Usage Guidelines2/5

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

No explicit guidance on when to use this tool versus alternatives. For instance, it does not mention that notebook_edit_cell_metadata should be used for metadata edits, or that notebook_read_cell is for reading. The absence of when-not or alternative recommendations reduces agent decision quality.

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/am-3/jupyter-mcp'

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