Skip to main content
Glama
rreusser

Observable Notebook Kit Debug MCP Server

by rreusser

BrowserEval

Run JavaScript in the browser to inspect the DOM, check computed styles, or use browser APIs while debugging Observable notebooks.

Instructions

Execute JavaScript in the browser context. Has access to the DOM but NOT the Observable runtime. Use RuntimeEval instead when you need access to notebook variables. Useful for DOM inspection, computed styles, or browser APIs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesJavaScript code to execute. The result of the last expression is returned.
labelNoOptional label describing the intent of this action (e.g., "expand plot", "zoom in"). Displayed in the notebook's event log overlay.
notebookNoTarget notebook (URL, path like "index" or "voronoi", or index like "0"). Optional if you've used FocusNotebook or only one notebook is connected.
timeout_msNoMaximum time to wait in milliseconds

Schema Changelog

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

  1. First observedv1.0.2

TDQS

A4.4/5.0
Behavior4/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. It discloses key access boundaries (DOM access, no Observable runtime) and typical safe use cases. It does not explicitly warn about mutating page state or side effects, but 'Execute JavaScript' strongly implies arbitrary code execution, so this is a meaningful but not complete disclosure.

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?

Three short sentences, front-loaded with the core action, followed by the key limitation, the alternative, and use cases. No filler or redundancy.

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 an arbitrary-JS tool with no output schema or annotations, the description covers purpose, environment boundaries, alternative tool routing, and typical use cases. The schema covers parameter details and the return behavior of the code parameter, so the main gap is a missing explicit note about potential page mutation/side effects, which is somewhat implied by 'Execute JavaScript'.

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 description coverage is 100%, so baseline 3 applies. The description adds environment context relevant to the code parameter but does not elaborate on label, notebook, or timeout_ms beyond what the schema already documents.

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?

States a specific verb and resource: 'Execute JavaScript in the browser context.' It also explicitly differentiates from RuntimeEval by noting it does NOT access the Observable runtime, making sibling distinction immediate and clear.

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?

Explicitly routes the agent to RuntimeEval when notebook variables are needed, and identifies concrete use cases: DOM inspection, computed styles, and browser APIs. This gives both a when-to-use and a when-not-to-use/alternative.

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/rreusser/mcp-observable-notebookkit-debug'

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