Skip to main content
Glama

read_cell

Read-only

Read a specific cell from the active Jupyter notebook to access its metadata, source, and outputs.

Instructions

Read a specific cell from the currently activated notebook and return it's metadata (index, type, execution count), source and outputs (for code cells)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cell_indexYesIndex of the cell to read (0-based)
include_outputsNoInclude outputs in the response (only for code cells)
Behavior3/5

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

Annotations already declare readOnlyHint=true. Description adds that it reads from 'currently activated notebook' and returns metadata, source, and outputs. Does not mention behavior on invalid index or missing notebook, but acceptable for a non-destructive read with annotation support.

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?

Single sentence covering purpose and return value. No filler or redundancy. Minor grammatical issue ('it's' should be 'its') but not affecting clarity.

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 read tool with 2 parameters and no output schema, the description adequately explains inputs and return fields. Missing mention of error conditions (e.g., out-of-range index) but sufficient for most use cases.

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

Parameters3/5

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

Schema coverage is 100% with good descriptions for both parameters. Description does not add significant meaning beyond what schema provides. Baseline of 3 is appropriate.

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?

Description clearly states 'Read a specific cell' and lists returned data (metadata, source, outputs). Unambiguously distinguishes from siblings like read_notebook (which reads entire notebook) and mutation tools (e.g., delete_cell, edit_cell_source).

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?

No explicit guidance on when to use this tool vs alternatives. Does not mention that it requires an activated notebook (use_notebook) or that include_outputs can be toggled to reduce response size. Lacks all usage context.

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

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