Skip to main content
Glama

set_notebook_output

Designate a block as the notebook Output so ntopcl -t and ntopcl -o can export its result, with optional output path or in-place overwrite.

Instructions

Assign the notebook's Output block so ntopcl -t and ntopcl -o can export its result.

Args: notebook_path: Source .ntop file path. target: Block ID or unique block name to designate as the notebook output. output_path: Optional destination .ntop file path. overwrite: If True and output_path is omitted, overwrite notebook_path in place (with timestamped snapshot).

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>",
      "target": "<target>"
    },
    "name": "set_notebook_output"
  }
}

Input Schema

NameRequiredDescriptionDefault
targetYes
overwriteNo
output_pathNo
notebook_pathYes

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 carries the full burden, and it does disclose the one genuinely risky behavior: overwrite=True with output_path omitted rewrites notebook_path in place, mitigated by a timestamped snapshot. It is silent on what happens when output_path is supplied (new file vs. copy of the whole notebook), whether a pre-existing Output designation is replaced or errors, and on validation failures for an unknown target.

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 one-sentence purpose followed by a compact Args list; every line adds information and there is no filler. The multi-line layout is appropriate for a 4-parameter tool, though the purpose sentence could be trimmed slightly.

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?

An output schema exists, so return values need no explanation, and all four parameters are covered with their key conditional. What remains missing—error behavior for an unresolvable target and the exact effect of supplying output_path—are secondary but would matter to an agent deciding between the two write modes.

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 is doing real work: it clarifies that `target` accepts either a block ID or a unique block name (the schema only shows integer|string), and it documents the conditional interaction between overwrite and output_path that the schema cannot express. The one gap is that the resulting file semantics for output_path are not spelled out.

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 ('Assign the notebook's Output block') and adds the downstream reason (`ntopcl -t`/`-o` export), which makes the effect on the notebook concrete. It does not explicitly contrast with siblings such as set_notebook_literal or set_block_visibility, but the 'Output block' concept is distinctive enough 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?

The purpose sentence implies when to use it (before exporting to targets/output), and the overwrite note hints at the copy-vs-in-place decision. However there is no explicit when-not guidance, no mention of prerequisites (does the block need to exist / be run first?), and no named alternatives.

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