Skip to main content
Glama
questdb

mcp-server-questdb

Official

get_notebook_state

Get a full structural snapshot of a notebook to inspect layout, cell previews, types, and run statuses, including live refresh and error indicators.

Instructions

Full structural snapshot of a notebook (layout, cells with previews, kind via type, last-run statuses). Three fields are LIVE-ONLY — present only while the notebook is open in the console, so absence never means "not refreshing" or "not blocked": refreshing: true while a refresh is in flight (the visible rows are still the previous round's), last_refresh_error when the last round left a failure, and auto_refresh_blocked: "contains_write" on cells auto-refresh will not run. last_run_status is unrelated to these: it stays the outcome of the last completed RUN, and a refresh never changes it. auto_refresh_default is omitted when the notebook has no configured default. type:"markdown" marks a prose cell; SQL cells omit type. No cell data values; no columns/rows/count. Previews are capped at 120 chars — cells cut carry preview_truncated: true + full_length; a preview is never a cell's real content to write back.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
buffer_idYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.3.0

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations present, the description carries the full behavioral burden and does so thoroughly. It discloses live-only field semantics, absence meaning, the independence of last_run_status from refresh, type conventions for markdown vs SQL cells, and preview truncation behavior. This is exemplary transparency.

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 long but every sentence contributes essential behavioral nuance. It is front-loaded with the main purpose and then systematically details edge cases and limitations. The density is justified given the number of subtle return-value semantics.

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?

There is no output schema, so the description must explain return semantics, and it does so comprehensively. It covers live-only fields, absence interpretations, refresh versus run status, type representation, omission rules, and preview truncation. An agent has enough information to interpret the result correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has one parameter, buffer_id, with 0% description coverage, and the tool description never mentions buffer_id or explains how to identify the target notebook. The parameter name is self-descriptive to a degree, but the description adds no meaning beyond the schema itself.

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 opens with 'Full structural snapshot of a notebook' and enumerates the exact contents (layout, cells with previews, kind, last-run statuses). This clearly identifies the verb and resource and differentiates it from sibling tools like get_workspace_state or get_cell.

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?

The description provides clear context for what the tool returns and explicitly states what it does NOT provide: no cell data values, no columns/rows/count, and previews are not real content to write back. It lacks named alternatives, e.g., directing the agent to get_cell for full cell content, so it falls short of a 5.

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

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/questdb/mcp-server-questdb'

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