Skip to main content
Glama

Get Cell Map

get_cell_map

Get a lightweight map of notebook cells showing IDs, names, code previews, and runtime state. Use it as the entry point to navigate and locate cells before reading or editing.

Instructions

Get a lightweight map of cells showing previews.

Returns cell IDs, names, code previews, and runtime state. This is the starting point for navigating a notebook.

A preview does NOT record the edit_cell read baseline — it updates only this tool's own change-detection snapshot. Read a cell's full source with get_cell_data before editing it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
server_urlNoOptional server URL override.
session_idNoSession ID from list_active_notebooks. Optional if an active session is bound.
preview_linesNoNumber of lines to show per cell (default: 3).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.3

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden, and it discloses a genuinely non-obvious behavior: a preview does not record the edit_cell read baseline and only updates this tool's own change-detection snapshot. That is valuable. It still omits other behavioral context such as how the snapshot interacts across sessions or whether the map is cached, so it falls just short of full coverage.

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?

Front-loaded with the core action and return contents in two short sentences, followed by one earned cautionary paragraph about the edit baseline. No filler.

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?

An output schema exists, so return format need not be explained, yet the description still summarizes it. Combined with the preview/edit-baseline caveat and clear routing to get_cell_data, an agent has everything needed to call this safely.

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 description coverage is 100%, so server_url, session_id, and preview_lines are already documented in the schema. The description adds no extra semantics about these parameters (e.g., preview_lines tradeoffs), so the baseline 3 applies.

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 names a specific verb+resource (get a map of cells) and states exactly what it returns: cell IDs, names, code previews, and runtime state. It also positions itself against the sibling get_cell_data by calling itself the 'starting point for navigating a notebook' and contrasting previews with full source.

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?

It states when to use it ('starting point for navigating a notebook') and names the alternative with a condition: read full source with get_cell_data before editing. The agent does not need to infer the routing decision.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.