Skip to main content
Glama

generate_templates

Generate official input_template.json and output_template.json by running ntopcl -t on an .ntop notebook, optionally saving them to a directory, to prepare notebooks for parameter sweeps.

Instructions

Run ntopcl -t to generate and return official input_template.json and output_template.json.

Args: notebook_path: Path to the .ntop notebook. output_dir: Optional directory to persist the generated JSON templates (uses a temp dir if omitted). timeout_seconds: Optional timeout override 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": "generate_templates"
  }
}

Input Schema

NameRequiredDescriptionDefault
output_dirNo
notebook_pathYes
timeout_secondsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose two useful behaviors: the tool shells out to `ntopcl -t`, and output_dir persists files while omission falls back to a temp directory. It omits whether existing files are overwritten, what errors occur on bad paths, and whether environment setup is required — real gaps for a file-writing tool.

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 one-line summary is front-loaded and states the core effect immediately. The Args list largely duplicates the input schema, but it is short and readable rather than padded.

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?

An output schema exists, so return values need not be described, and the tool is a simple three-parameter operation. Given that, the description covers what is generated, where it is written, and the underlying mechanism, which is sufficient to invoke it correctly.

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 0%, so the Args block is doing necessary work: it clarifies notebook_path points at a .ntop notebook and that output_dir is optional with temp-dir fallback, which the schema's bare titles do not convey. However, timeout_seconds is only restated as an 'optional timeout override' with no default value or units behavior beyond the name, leaving that parameter 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 description names a specific action (generate) and concrete artifacts (input_template.json and output_template.json), plus the underlying command it wraps. An agent can tell roughly what it produces, though it never contrasts this with siblings like inspect_notebook or get_ntop_guide.

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 explicit when-to-use, when-not-to-use, or alternative-tool guidance. The reader must infer that templates are needed before authoring a notebook; nothing states prerequisites such as a valid .ntop path or an ntopcl installation.

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