Skip to main content
Glama
dougrn

NotebookLM MCP Server

by dougrn

Chat Status

chat_status
Read-only

Poll detached asks in batches or inspect a notebook's live generation session to check whether it is idle or generating, then decide when to poll again or retry.

Instructions

Poll detached asks, or inspect a notebook's live generation session.

Detached-task mode: task_id accepts one id, a list, or a comma-separated string — poll a whole batch in ONE call and re-invoke every ~20–30s while anything is pending. Per-task statuses:

  • pending (state: queued waiting for a generation slot, or generating) — re-invoke; polling never restarts a generation.

  • completed — the full chat_ask-shaped payload, plus queued_s / generation_s timings.

  • failed — error: {code, message, retriable, ...}; a retriable code is worth one chat_start retry (which re-runs the generation).

  • unknown — no such task, or its result expired; chat_start again.

A single string id returns that task's status dict; a list (even of one) returns {"tasks": [...]} in input order. At most 64 ids per call.

Live-session mode: pass notebook instead of task_id to inspect Google's current chat session. conversation_id is optional and defaults to that notebook's most-recent conversation. The result is idle or generating and includes the generation token when Google supplies one. The two modes are mutually exclusive.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
task_idNo
notebookNo
conversation_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=true and destructiveHint=false. The description goes well beyond them by enumerating per-task states (pending/completed/failed/unknown), their sub-states (queued vs generating), the timing fields (queued_s/generation_s), the error object shape, batch ordering behavior, and the 64-id cap. This is exactly the behavioral detail an agent needs and cannot get from annotations.

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?

It is long, but the length is justified by two distinct modes and four status classes. It is front-loaded with the mode summary and uses headers and bullets to structure the detail. Slightly heavy, but nearly every sentence carries substantive information.

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?

For a 3-optional-param tool with two modes and an output schema present, the description covers both modes, all parameters, return shapes, and error handling. Even though the output schema exists, it explains return structure usefully. Nothing an agent needs to call it correctly is missing.

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 coverage is 0%, so the description must carry the load, and it does: task_id accepts a single id, a list, or a comma-separated string; notebook is the alternate mode selector; conversation_id is optional and defaults to the notebook's most-recent conversation. It also documents the divergent return shapes (single dict vs {"tasks": [...]}) per input type.

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 opening line states a specific verb+resource with two distinct scopes: 'Poll detached asks, or inspect a notebook's live generation session.' This clearly separates it from siblings like chat_ask, chat_start, and studio_status. An agent can identify the tool's function 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives strong operational context: re-invoke every ~20-30s while pending, polling never restarts a generation, at most 64 ids per call, and that the two modes are mutually exclusive. It also routes the agent by outcome (retriable failure -> one chat_start retry; unknown -> chat_start again). It stops short of explicitly naming alternative tools in a 'use X instead' form, so it does not reach the top tier.

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