Skip to main content
Glama
ihrpr
by ihrpr

edit_cell

Update the code in a specific Jupyter notebook cell by providing the notebook path, cell ID, and new source.

Instructions

Edit the source code of an existing cell in the notebook.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sourceYes
cell_idYesUnique ID of the cell to edit. This can be obtained using read_notebook_source_only or read_notebook_with_outputs.
notebook_pathYes
Behavior2/5

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

Annotations are absent, so the description carries the burden. It only says 'edit' without disclosing whether the entire source is overwritten, whether the cell must exist (errors if not), or whether outputs are invalidated. No side effects or error conditions are mentioned.

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 a single, front-loaded sentence with no fluff. However, it is extremely brief and could benefit from additional context (e.g., in a following sentence), so it is efficient but not excellently structured for completeness.

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

Completeness2/5

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

The tool requires three parameters and performs a mutation, yet the description is only a one-sentence purpose statement. There is no mention of error scenarios, behavioral impact on outputs, or how it relates to sibling read/execute tools. Given the complexity of a notebook cell editor, this is incomplete.

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?

The description clarifies that 'source' refers to the source code to be set, but it does not describe the format (e.g., full string). It says nothing about 'notebook_path'. The only parameter description comes from the schema for cell_id, which tells how to obtain it. With only 33% schema coverage and no compensation in the description, parameter semantics are weak.

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 explicitly states the action (edit), the target (source code of an existing cell), and clearly differentiates from sibling tools like add_cell (which creates) and execute_cell (which runs). This is a specific and clear purpose statement.

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?

There is no guidance on when to use this tool versus alternatives. It does not mention that this modifies an existing cell and should be used instead of add_cell when the cell already exists, nor does it instruct to combine with execute_cell to run the edited code. No exclusions or alternatives are provided.

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/ihrpr/mcp-server-jupyter'

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