Skip to main content
Glama
Pantheon-Security

NotebookLM MCP Server (Security Hardened)

Chat History

get_notebook_chat_history
Read-onlyIdempotent

Extract conversation history from NotebookLM notebooks to recover previous research, audit queries, and resume context from chat sessions.

Instructions

Extract conversation history from a NotebookLM notebook's chat interface.

This tool uses browser automation to navigate to a notebook and extract all Q&A pairs from the chat UI. This is useful for:

  • Recovering previous research conversations

  • Auditing what queries were made in a notebook

  • Understanding quota usage from direct NotebookLM browser usage

  • Resuming context from previous sessions

Context Management

Use preview_only: true to get a quick count before extracting full content. Use output_file to export to JSON instead of returning to context. Use offset with limit for pagination through large histories.

Examples

Quick audit (preview only):

{ "notebook_id": "my-research", "preview_only": true }

Export to file (avoids context overflow):

{ "notebook_id": "my-research", "output_file": "/tmp/chat-history.json" }

Paginate through history:

{ "notebook_id": "my-research", "limit": 20, "offset": 0 }
{ "notebook_id": "my-research", "limit": 20, "offset": 20 }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
notebook_idNoLibrary notebook ID. Use list_notebooks to see available notebooks.
notebook_urlNoDirect notebook URL (overrides notebook_id). Use for notebooks not in your library.
preview_onlyNoIf true, only returns message count and summary without content. Use this to audit before extracting full history. (default: false)
limitNoMaximum number of message pairs to return (default: 50, max: 200).
offsetNoNumber of message pairs to skip from the start. Use with limit for pagination. (default: 0)
output_fileNoIf provided, exports chat history to this JSON file instead of returning to context. Useful for large histories.
show_browserNoShow browser window for debugging (default: false)
Behavior4/5

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

Annotations already provide readOnlyHint=true, destructiveHint=false, openWorldHint=true, and idempotentHint=true, covering safety and idempotency. The description adds valuable behavioral context beyond annotations: it reveals the tool uses browser automation (implying potential latency and UI interaction), mentions context overflow risks with large histories, and provides practical guidance on managing output size. While it doesn't specify rate limits or authentication requirements, it adds meaningful operational context that annotations don't cover.

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 efficiently structured with clear sections: a purpose statement, bulleted use cases, a 'Context Management' section with parameter guidance, and practical examples. Every sentence earns its place by providing operational guidance or clarifying semantics. The information is front-loaded with the core purpose, followed by progressively detailed guidance. No redundant or verbose content exists.

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?

For a tool with 7 parameters, no output schema, and rich annotations, the description provides excellent contextual coverage. It explains the tool's operational context (browser automation), use cases, parameter interactions, and practical considerations like context overflow. The main gap is the lack of information about return format (though examples imply JSON), but given the annotations cover safety and the description covers usage patterns well, this is a minor omission in an otherwise comprehensive description.

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?

With 100% schema description coverage, the baseline is 3. The description adds significant value by explaining the semantic purpose of key parameters: it clarifies that preview_only gives 'a quick count before extracting full content', output_file 'exports to JSON instead of returning to context' to avoid overflow, and offset/limit enable 'pagination through large histories'. It also provides concrete usage examples showing how these parameters work together. This goes well beyond the schema's technical descriptions.

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 description explicitly states the tool's purpose: 'Extract conversation history from a NotebookLM notebook's chat interface' using 'browser automation to navigate to a notebook and extract all Q&A pairs'. It clearly distinguishes this from sibling tools like get_query_history (which might be for different query types) or get_notebook (which retrieves notebook metadata rather than chat content). The verb 'extract' is specific and the resource 'conversation history/Q&A pairs' is well-defined.

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?

The description provides explicit guidance on when to use this tool: for 'recovering previous research conversations', 'auditing what queries were made', 'understanding quota usage', and 'resuming context from previous sessions'. It also offers practical usage patterns through the 'Context Management' section and examples, showing how to use preview_only for quick audits, output_file to avoid context overflow, and offset/limit for pagination. This gives clear operational context beyond basic invocation.

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/Pantheon-Security/notebooklm-mcp-secure'

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