Skip to main content
Glama
am-3

universal-notebook-mcp

by am-3

notebook_insert_cell

Insert a new cell at any position in a Jupyter notebook, shifting down existing cells. Specify cell type and source code or text.

Instructions

Insert a new cell at the given position.

Cells at index and above are shifted down. To append after the last cell, pass index equal to the total number of cells.

Args: notebook_path: Path to the .ipynb file, relative to the workspace root. index: Position to insert at (0 = before first cell). source: Source code or text for the new cell. cell_type: 'code', 'markdown', or 'raw' (default: 'code'). checkpoint: Write a backup before editing (default: true).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
indexYes
sourceYes
cell_typeNocode
checkpointNo
notebook_pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations exist, so the description fully carries the burden. It discloses cell shifting, append behavior, and checkpoint backup. It does not mention error conditions or permissions, but this is sufficient for a simple insertion tool.

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, front-loading the main action and behavioral note, then listing parameters in a clear block. Every sentence serves a purpose, with no 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 5 parameters and existence of an output schema, the description covers behavior and parameter semantics well. However, it does not describe the return value or error conditions, which would enhance completeness.

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?

Schema description coverage is 0%, so the description must compensate. It provides meaningful explanations for all parameters (notebook_path, index, source, cell_type, checkpoint), including defaults and options, adding significant value beyond the raw 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 'Insert a new cell at the given position,' which is a specific verb and resource. It also explains the shifting behavior and append trick, distinguishing it from sibling tools like notebook_edit_cell or notebook_delete_cell.

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 by detailing the operation (insert) and behavioral notes (shifting, appending), but it does not explicitly mention when to use this tool versus alternatives or provide exclusions.

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