Skip to main content
Glama
am-3

universal-notebook-mcp

by am-3

notebook_edit_cell_metadata

Merge a JSON object into a Jupyter notebook cell's metadata to add or remove pipeline stage tags like 'preprocess'.

Instructions

Merge a JSON object into a cell's metadata.

Useful for adding or removing pipeline stage tags: updates = '{"tags": ["preprocess"]}'

Args: notebook_path: Path to the .ipynb file, relative to the workspace root. cell_index: Zero-based index of the target cell. updates: JSON string with metadata keys to merge in. checkpoint: Write a backup before editing (default: true).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
updatesYes
cell_indexYes
checkpointNo
notebook_pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations, the description carries the full burden. It mentions the 'checkpoint' parameter for backups and describes merge behavior, but does not cover error handling, permissions, or whether the merge is deep or shallow. Some behavioral aspects are disclosed but not comprehensively.

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, well-structured with an introductory line, an example, and an Args section. Every sentence provides value 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?

Given that an output schema exists, the description covers core functionality and parameters well. However, it lacks details on edge cases like invalid cell_index or notebook_path, and does not explain the return behavior beyond the output schema's presumed role.

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

Parameters5/5

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

Schema description coverage is 0%, so the description fully compensates. Each parameter (notebook_path, cell_index, updates, checkpoint) has a clear, descriptive explanation that adds meaning beyond type and name, including examples and defaults.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool merges a JSON object into a cell's metadata, with an example for pipeline tags. The name 'notebook_edit_cell_metadata' combined with the description makes the purpose clear, but it does not explicitly distinguish from sibling tools like 'notebook_edit_metadata' which edits notebook-level 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 description provides an example use case for pipeline stage tags, implying when to use it, but lacks explicit guidance on when not to use it or mentions of alternative tools. The sibling list is provided but no direct comparison.

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/am-3/jupyter-mcp'

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