Skip to main content
Glama

ipynb_append_cell

Add a new code, markdown, or raw cell to the end of an .ipynb file by providing content and cell type, returning the new cell's index.

Instructions

Append cell to end of a Jupyter Notebook (.ipynb).

Args: ipynb_filepath: Path to Jupyter Notebook (.ipynb) file (absolute path preferred) content: Cell content (provide as raw string, no additional escaping needed) cell_type: Type of cell ('code', 'markdown', 'raw')

Returns: Dict with 'success' and 'cell_index' or 'error' key (0-based index of new cell)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentYes
cell_typeNocode
ipynb_filepathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

No annotations are provided, so the description must carry the burden of disclosing behavior. It does state the return value (dict with 'success' and 'cell_index') and a key nuance (content is a raw string, no escaping needed). However, it does not disclose side effects such as whether the file is written immediately, whether existing notebook content is preserved (though appending implies it), or error conditions like file-not-found. This is a moderate level of transparency, hence a 3.

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 compact yet complete: a one-sentence purpose, followed by concise parameter and return-value explanations. The structured Args/Returns format improves readability without wasting words. Every sentence contributes value, and the primary action is front-loaded.

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?

For a simple mutation tool with 3 parameters, the description covers all parameters, explains the return value (with the output schema further clarifying), and includes a usage nuance. It does not mention file save behavior or error handling, but given the simplicity and the presence of an output schema, it is nearly complete. A score of 4 acknowledges the small gaps while recognizing the overall sufficiency.

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 zero descriptions (0% coverage), so the description must fully compensate. The Args section explains each parameter: the file path (absolute preferred), content (raw string, no escaping), and cell_type (allowed values 'code', 'markdown', 'raw'). This adds meaningful semantic information beyond the bare schema, making this dimension a 5.

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 opens with a specific verb+resource: 'Append cell to end of a Jupyter Notebook (.ipynb).' This clearly distinguishes it from sibling tools like ipynb_insert_cell (which inserts at a position) and ipynb_replace_cell (which replaces existing cells).

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 clearly conveys the intended use case: adding a cell to the very end of a notebook. It does not list alternatives or exclusions, but the context is unambiguous enough that an agent would know when to choose this over insert_cell or replace_cell. Score 4 reflects clear context without explicit when-not 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