Skip to main content
Glama

read_notebook_graph

Reads the block graph of an .ntop notebook—IDs, functions, input wiring, and literal values—with text, section, variable, and leaf filters to inspect structure before editing.

Instructions

Read the block graph (IDs, functions, input wiring, literal values) of an .ntop notebook.

Args: notebook_path: Path to the .ntop notebook. filter_text: Optional substring filter matched against block ID, name, function, type, or section. section_name: Optional notebook section name filter (case-insensitive substring). variables_only: If True, return only promoted variable blocks (core.var<...>). include_leaves: If True, also include raw anonymous leaf blocks (func == ""). limit: Maximum number of blocks to return (default 150).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "notebook_path": "<notebook_path>"
    },
    "name": "read_notebook_graph"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
filter_textNo
section_nameNo
notebook_pathYes
include_leavesNo
variables_onlyNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description must carry the full behavioral burden. It discloses useful traits: the operation is a read, a default limit of 150 applies, and anonymous leaf blocks (func == "") are excluded unless include_leaves is set. It does not say what happens when the limit truncates the result, whether the path must exist, or whether any failure modes are raised.

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?

Front-loaded with the one-sentence purpose before the args list, and each param line carries distinct information with no repetition. The docstring-style Args block is functional rather than elegant, but nothing is wasted.

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 six-parameter read tool with an output schema (so return shape needs no explanation), the description covers purpose, filters, defaults, and the leaf-exclusion default. The remaining gap is the absence of any read-only/safety statement and any guidance on tool selection among the graph siblings.

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 description coverage is 0%, so the description is the only source of parameter meaning, and it supplies it for all six: filter_text's matched fields, section_name's case-insensitive substring semantics, variables_only's core.var<...> scope, include_leaves' anonymous-block rule, and limit's default. Only notebook_path (path to the notebook) is thin.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence gives a specific verb and resource: 'Read the block graph ... of an .ntop notebook', and enumerates what the graph contains (IDs, functions, input wiring, literal values). It does not distinguish this from sibling readers such as inspect_notebook or list_notebook_variables, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage is only implied through the filter parameters: filter_text and section_name suggest narrowing a large graph, and variables_only implies a promoted-variables view that overlaps with list_notebook_variables, but the description never says when to prefer one tool over the other. No exclusions or prerequisites are stated.

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