Skip to main content
Glama

read_notebook

Reads a Marimo notebook .py file and returns its contents for inspection, analysis, or editing.

Instructions

Read a Marimo notebook .py file and return its contents.

Args: notebook_path: Path to the .py notebook file.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "notebook_path": "<notebook_path>"
    },
    "name": "read_notebook"
  }
}

Input Schema

NameRequiredDescriptionDefault
notebook_pathYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden; it does disclose that the operation returns the file's contents, which implies a non-mutating read. It does not state error behavior for a missing path, path format expectations (relative vs absolute), or any size/encoding limits.

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-loaded single sentence stating the action and result, followed by a brief Args block. Efficient, with only minor redundancy between the sentence and the argument note.

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

Completeness3/5

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

This is a simple one-parameter tool with an output schema, so return-value explanation is unnecessary. Still, for a file-reading tool the description omits failure modes and path resolution, which an agent needs to call it correctly the first time.

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 0%, so the description must compensate. It adds real meaning beyond the bare string by specifying the path must point to a .py notebook file, but it says nothing about relative vs absolute paths or whether the path is workspace-scoped.

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?

States a specific verb and resource: reads a Marimo notebook .py file and returns its contents. The object ('Marimo notebook .py file') is concrete enough that an agent can distinguish it from cell-level tools. However, it does not explicitly contrast with siblings like show_notebook or get_cells, so the differentiation is left to inference.

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?

The description gives no when-to-use guidance, no conditions under which this tool should be preferred over show_notebook, get_cells, or get_cell_data, and no exclusions. An agent must guess whether raw file contents or a rendered/structured view is wanted.

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