Skip to main content
Glama

Replace notebook cells

fastero_write_notebook
DestructiveIdempotent

Replace a notebook’s cell contents. Pass the full cell list; this overwrites. A SQL cell is a code cell whose source is the query and whose metadata has custom_type 'sql', connId (a connection id from fastero_list_connections) and variableName: when the notebook runs, its rows become a pandas DataFrame of that name for the cells after it. Answers with the notebook's id, title, how many cells it now has and when it was saved.

Input Schema

NameRequiredDescriptionDefault
cellsYesFull replacement cell list
projectIdYesThe project’s id, from fastero_list_projects.
notebookIdYesA notebook’s id, from fastero_list_notebooks.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / notebookId / description
      Added value: +"A notebook’s id, from fastero_list_notebooks."
    • addedInput schema / properties / projectId / description
      Added value: +"The project’s id, from fastero_list_projects."
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false and idempotentHint=true, yet the description still adds real behavioral content: it reinforces full-list overwrite semantics, documents the SQL cell construction contract (custom_type 'sql', connId, variableName and its DataFrame side effect), and describes the return values. Only minor gaps (e.g., error behavior) remain.

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?

Front-loads the core action and the overwrite warning. The SQL-cell sentence is long and dense but every clause earns its place by encoding non-obvious domain semantics; overall slightly heavy but not padded.

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?

With no output schema, the description compensates by stating what the call returns (id, title, cell count, saved time). Combined with annotations and the fully covered schema, an agent has enough to invoke correctly; only edge-case/error semantics are absent.

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 coverage is 100%, so projectId/notebookId are already sourced from sibling tools. The description nonetheless adds meaning beyond the schema by explaining the internal structure of each cell in the 'cells' array — the SQL cell metadata shape and the variableName DataFrame behavior — which the bare 'Full replacement cell list' schema does not convey.

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?

States a specific verb+resource ('Replace a notebook's cell contents') and immediately clarifies the scope of the operation ('Pass the full cell list; this overwrites'). It is clearly distinguishable from siblings like read_notebook (read counterpart) and create_notebook (creation, not replacement).

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 'Pass the full cell list; this overwrites' clause implies you must first read the notebook and supply every cell, which is useful implicit guidance, but no alternative tool is named and no explicit when/when-not is given. Usage is inferable rather than stated.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.