Skip to main content
Glama

run_notebook

Execute .ntop notebooks headlessly with nTop Automate (ntopcl), passing input parameters and capturing output JSON for automated nTop workflows.

Instructions

Execute an .ntop notebook headlessly via nTop Automate (ntopcl).

Args: notebook_path: Path to the .ntop notebook. inputs: Either full nTop JSON schema ({"inputs": [...]}) or a simple dict ({"Length": 10.0}) auto-mapped onto the template. input_json_path: Optional path to an existing nTop input JSON file. output_json_path: Optional path where nTop should write its output JSON. working_dir: Optional working directory for execution and relative exports. include_properties: Pass -p to include top-level properties in output JSON. save_notebook: Pass -s to overwrite the .ntop file with computed results. trust_notebook: Pass --trustnotebook to permit Run Command blocks. max_threads: Limit CPU threads via -m. verbosity: Log verbosity 0 (errors), 1 (warnings+errors), 2 (full progress). custom_block_libraries: Mapping of {library_name: directory_path} for --custom-block-library. timeout_seconds: Maximum wait time in seconds.

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": "run_notebook"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputsNo
verbosityNo
max_threadsNo
working_dirNo
notebook_pathYes
save_notebookNo
trust_notebookNo
input_json_pathNo
timeout_secondsNo
output_json_pathNo
include_propertiesNo
custom_block_librariesNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden, and it does disclose two genuinely important behaviors: save_notebook overwrites the .ntop file, and trust_notebook permits 'Run Command' blocks (a real security implication). Gaps remain around failure behavior, whether the call blocks until completion, and return payload shape, though an output schema exists to cover the latter.

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?

The purpose is front-loaded in one sentence followed by a clean parameter list where every entry is a single informative line. It is documentation-style rather than prose, which suits a twelve-parameter tool, though the absence of any framing beyond the args list costs a point.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex execution tool with twelve parameters, the definition covers inputs and flags thoroughly and has an output schema to explain return values. What is missing is operational context an agent needs before invoking: blocking behavior, timeout defaults, error modes, and how to choose this over run_notebook_async.

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 description coverage is 0%, and the description compensates fully by annotating all twelve parameters, including the non-obvious ones: inputs accepts either a full nTop JSON schema or a flat dict auto-mapped onto the template, and custom_block_libraries is a name-to-directory mapping. It also maps flags (-p, -s, -m, --trustnotebook, --custom-block-library) to their effects, which the schema cannot express.

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 opening sentence gives a specific verb, resource, and execution mechanism: 'Execute an .ntop notebook headlessly via nTop Automate (`ntopcl`)'. That is far more informative than the bare name. It does not, however, distinguish itself from the sibling run_notebook_async, leaving the agent to guess which of the two to pick.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance at all, and no mention of prerequisites such as an installed nTop/ntopcl binary or license availability. The sync-vs-async choice against run_notebook_async is a critical routing decision that the description never addresses.

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