Skip to main content
Glama

ipynb_get_cell

Retrieve a specific cell's content from a Jupyter Notebook by index, with negative indexing for reverse access. Get cell data directly for programmatic use without a Jupyter server.

Instructions

Get content of a specific cell by index from a Jupyter Notebook (.ipynb).

Args: ipynb_filepath: Path to Jupyter Notebook (.ipynb) file (absolute path preferred) cell_index: Index of cell (supports negative indexing)

Returns: Dict with 'content' or 'error' key

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cell_indexYes
ipynb_filepathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations, the description carries the transparency burden. It discloses return shape ('Dict with content or error key'), supports negative indexing, and notes absolute paths are preferred. It does not explicitly state it is read-only, but 'Get content' clearly implies no mutation, and error behavior is covered by the 'error' key.

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, uses a clear Args/Returns structure, and front-loads the main purpose. Every line adds useful information without 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?

For a simple two-parameter getter, the description is largely complete: it explains inputs, supports negative indexing, and indicates return/error keys. Since an output schema exists (per context), return values don't need additional explanation. Minor gaps like zero-based indexing or invalid-index behavior are not critical.

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?

Schema description coverage is 0%, so the description provides the needed semantics. It explains ipynb_filepath as the path (absolute preferred) and cell_index as supporting negative indexing. This adds value beyond the raw schema, though it doesn't clarify zero-based indexing or exact error conditions.

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 'Get content of a specific cell by index from a Jupyter Notebook (.ipynb)', specifying the verb, resource, and lookup method. This distinguishes it from sibling tools like ipynb_list_cells (lists cells) and ipynb_get_metadata (gets metadata).

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 usage is implied: use when you need content of a specific cell by index. However, there is no explicit guidance on when not to use it or which alternative tool might be better suited, such as ipynb_search_cells for searching by content.

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