Skip to main content
Glama

List Active Notebooks

list_active_notebooks

Retrieve active marimo notebook sessions with file paths and session IDs to discover and bind a live notebook for inspection or editing.

Instructions

List currently active marimo notebooks.

Returns all active sessions with their file paths and session IDs. The first discovered session is automatically bound as the active session, so later calls that share this MCP session can omit both session_id and server_url.

The binding is server-side state keyed by the MCP session identity the client negotiates, so it reaches the next call only when the client keeps one MCP session for the connection — an mcp-SDK-based client does, fastmcp's own Client does not on the pinned fastmcp 4.0.3 (it starts a new session per request). Where that is the case, pass session_id and server_url explicitly on every call.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
server_urlNoOptional explicit server URL. If not provided, discovers servers from the marimo registry.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.3

TDQS

A4.8/5.0
Behavior5/5

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

No annotations are provided, so the description carries the full burden and meets it: it discloses server-side binding state, how that state is keyed (MCP session identity), and the non-obvious client-dependent caveat that makes the binding unreliable. This is exactly the kind of stateful side effect an agent could not infer from the name or schema.

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?

Purpose is front-loaded in a single short sentence, followed by return contents and then the binding caveat. The third paragraph is dense and version-specific, but each sentence carries load-bearing information about when the binding fails, so the length is justified rather than padding.

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 values need not be explained, yet the description briefly summarizes them (file paths and session IDs). Combined with the binding semantics and the client caveat, an agent has everything needed to call this correctly and to know what happens on the next call.

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% and there is only one optional parameter, so the baseline is 3. The description earns an extra point by explaining the behavioral consequence of omitting `server_url` — it ties omission to the auto-binding of the first discovered session, which the schema's "discovers servers from the marimo registry" note 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?

The first sentence names a specific verb and resource ("List currently active marimo notebooks") and is the only discovery/listing tool among siblings dominated by cell/notebook mutation and inspection tools. An agent can distinguish it immediately without opening the schema.

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 the calling pattern explicitly: the first discovered session is auto-bound, so subsequent calls may omit `session_id` and `server_url`. It goes further and names the condition under which that optimization fails (fastmcp's own Client on pinned fastmcp 4.0.3 negotiating a new MCP session per request), telling the agent exactly when to pass both parameters explicitly.

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