Skip to main content
Glama

build_block_catalog

Scan .ntop directories recursively to index verified local nTop block signatures into a JSON catalog, optionally including custom blocks for local discovery.

Instructions

Scan a directory of .ntop files recursively to index verified local nTop block signatures.

Args: directory: Folder containing .ntop notebooks (e.g. C:\path\to\ntop_examples). save_path: Optional output JSON catalog path (defaults to block_catalog.json in package root). include_custom_blocks: If True, also include user_func_* custom blocks.

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": {
      "directory": "<directory>"
    },
    "name": "build_block_catalog"
  }
}

Input Schema

NameRequiredDescriptionDefault
directoryYes
save_pathNo
include_custom_blocksNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/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: it does disclose that the scan is recursive, that the default output lands at `block_catalog.json` in the package root, and that custom blocks are opt-in. It does not state whether an existing catalog is overwritten, how long a large scan takes, or what filesystem side effects occur, which matters for a tool that writes a file.

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?

One front-loaded sentence states the action and scope, followed by a compact Args list that is justified given the bare schema. No redundant filler; the argument block is the only repetition risk.

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?

An output schema exists, so return values need not be described. For a write-side-effect tool with zero annotations, however, key operational details, such as overwrite behavior and failure modes on missing or malformed directories, are absent.

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 Args block does the real work: it explains that `directory` holds `.ntop` notebooks with a sample path, that `save_path` is optional with a stated default, and that `include_custom_blocks` pulls in `user_func_*` blocks. Minor gaps remain on path format and validation rules, but all three parameters gain meaning beyond their bare titles.

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?

States a specific verb and resource: scans `.ntop` files recursively to index verified local nTop block signatures. An agent can distinguish this from siblings like `search_blocks` or `list_ntop_files`, though the description never explicitly contrasts them.

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 by the purpose (build a local block index from a directory of notebooks). There is no explicit when-to-use, no prerequisites such as whether the directory must exist or be non-empty, and no named alternative for looking up blocks.

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