Skip to main content
Glama

prune_notebook_graph

Prune blocks unreachable from a selected output block in an .ntop notebook graph, then save the pruned graph to a new .ntop file.

Instructions

Prune blocks unreachable from the notebook output block and save to a new .ntop file.

Args: notebook_path: Source .ntop file path. output_path: Destination .ntop file path for the pruned notebook. output_target: Optional block ID or name to set as output before pruning.

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>",
      "output_path": "<output_path>"
    },
    "name": "prune_notebook_graph"
  }
}

Input Schema

NameRequiredDescriptionDefault
output_pathYes
notebook_pathYes
output_targetNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full disclosure burden. It does convey two useful traits: unreachable blocks are removed and output goes to a separate file rather than mutating the source. Beyond that it is silent on the things an agent needs before calling a file-writing tool: whether an existing output_path is overwritten or errors, whether the source .ntop is ever modified, and what happens if the graph has no output block or the output_target is ambiguous between an ID and a name.

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 summary sentence followed by a short, scannable Args block with no filler. Slight redundancy in restating parameter names, but given the 0% schema coverage that duplication is earning its place.

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 no explanation, and the core behavior is stated. For a graph-mutating file writer with no annotations, however, the definition leaves out overwrite behavior, source-file safety guarantees, and output_target resolution rules — all decision-relevant for correct invocation.

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 does real work: it maps all three parameters to meaning, and crucially explains that output_target accepts a block ID or name and is applied before pruning — non-obvious from the schema's bare anyOf[int,string,null]. Missing are the failure semantics of output_target (what if it matches multiple blocks) and whether output_path may equal notebook_path.

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?

Opens with a specific verb+resource+effect: "Prune blocks unreachable from the notebook output block and save to a new .ntop file." That is far more precise than the name alone and distinguishes it from read/validate/inspect siblings. It stops short of naming which sibling to use instead, but the operation is unique enough in the catalog that confusion is unlikely.

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: the description makes clear this is a graph-reduction/save operation, so an agent can infer it is the tool for removing dead blocks. There is no explicit when-to-use, no when-not-to-use, and no pointer to alternatives (e.g., read_notebook_graph to inspect, validate_notebook_graph to check).

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