Skip to main content
Glama

read_notebook

Read-only

Extract notebook cell details with index, source, and execution count. Choose brief format for structure overview or detailed format for full cell analysis.

Instructions

Read a notebook and return index, source content, type, execution count of each cell.

Using brief format to get a quick overview of the notebook structure and it's useful for locating specific cells for operations like delete or insert. Using detailed format to get detailed information of the notebook and it's useful for debugging and analysis.

It is recommended to use brief format with larger limit to get a overview of the notebook structure, then use detailed format with exact index and limit to get the detailed information of some specific cells.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of items to return (0 means no limit)
start_indexNoStarting index for pagination (0-based)
notebook_nameYesNotebook identifier to read
response_formatNoResponse format: 'brief' will return first line and lines number, 'detailed' will return full cell sourcebrief

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYesNotebook content in the requested format
Behavior4/5

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

Annotations declare readOnlyHint=true. Description adds behavioral context: pagination via start_index and limit, response content differences between brief and detailed. No contradictions. Could mention if the tool is safe to call repeatedly, but overall good.

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?

Description is three paragraphs, each serving a purpose: what it does, usage per format, and recommended workflow. Could be slightly tighter but no wasted sentences. Front-loaded with core function.

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

Completeness5/5

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

For a tool with 4 parameters and output schema (not shown but exists), description covers all key aspects: pagination, format details, and best practices. Sufficient for agent to invoke correctly without ambiguity.

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 100%, so baseline is 3. Description adds value by explaining that brief returns first line and line count, detailed returns full source, and gives usage advice for combining both. This augments the schema's parameter descriptions.

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 it reads a notebook and returns per-cell details (index, source, type, execution count). It distinguishes between brief and detailed formats. Siblings like list_notebooks or restart_notebook are distinct operations.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit guidance is provided: brief for overview, detailed for debugging, and recommends using brief first then detailed for specific cells. This helps the agent choose the correct format and limit settings.

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