Skip to main content
Glama
tmlksu

notebook-edit

by tmlksu

move_cell

Move a Jupyter notebook cell to a specified index position by providing its current index or stable ID. Optionally guard against concurrent edits with an expected revision.

Instructions

Move a cell to to_index (final position, 0-based).

Address the moved cell by from_index OR from_id (stable id; exactly one); the destination to_index is always positional. Does not clear outputs. Optionally pass expected_rev to guard against concurrent external edits. Returns the new rev.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
from_idNo
to_indexYes
from_indexNo
expected_revNo
Behavior5/5

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

Without annotations, the description fully carries the burden. It discloses that outputs are not cleared, the optional expected_rev prevents concurrent edits, and the return value is a new rev. This provides complete transparency for a mutation 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 three sentences long, front-loads the main action, and every sentence adds value. No redundancy or fluff.

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 tool's complexity (5 params, 2 required) and lack of output schema, the description covers essential aspects: methods of addressing, concurrency guard, output behavior, and return value. It does not explain the path parameter or error conditions, but these are minor omissions.

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

Parameters4/5

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

With 0% schema coverage, the description successfully explains the key parameters: from_index/from_id alternatives, to_index required, expected_rev optional. However, the 'path' parameter is not explained, which is a minor gap given it is required.

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 'Move a cell' with destination index, and distinguishes from sibling tools like insert_cell and delete_cell. The verb and resource are specific and unambiguous.

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 explains when to use from_index vs from_id and that exactly one must be provided. It does not explicitly exclude other scenarios, but the context from siblings and the description itself is sufficient for an AI agent to decide when to use this tool.

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/tmlksu/nbedit-mcp'

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