Skip to main content
Glama

promote_to_input

Convert an existing notebook variable into a Notebook Input so parameter values can be passed via ntopcl -j or parameter sweeps without breaking downstream wiring.

Instructions

Promote an existing notebook variable (core.var<...>) into a Notebook Input (def.inputs).

Enables passing parameter values via ntopcl -j and run_parameter_sweep without breaking downstream wiring.

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

Input Schema

NameRequiredDescriptionDefault
targetYes
overwriteNo
input_nameNo
descriptionNo
output_pathNo
notebook_pathYes
auto_reload_guiNo
force_if_unsavedNo

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?

No annotations are provided, so the description carries the full behavioral burden. It does disclose the key non-obvious consequence — the promotion preserves downstream connections so existing wiring is not broken — which is real value. However, it says nothing about whether the notebook is written to disk, how unsaved changes are handled, or what overwrite replaces, which are significant gaps for an 8-parameter mutation tool with zero annotation coverage.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, front-loaded with the transformation and followed by the motivating use case. No filler or redundant restatement of the name.

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

Completeness2/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 explained. But for a tool with 8 parameters, no annotations, and no schema descriptions, the definition leaves the overwrite/unsaved-handling/output-path semantics entirely unaddressed, which is not enough for an agent to invoke it confidently.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 8 parameters, so the description must compensate and largely does not. It only implies the target concept through 'an existing notebook variable'; `overwrite`, `input_name`, `description`, `output_path`, `auto_reload_gui`, and `force_if_unsaved` are never mentioned or explained, leaving most of the argument surface undocumented in both places.

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 verb and transformation: promote an existing `core.var<...>` notebook variable into a `def.inputs` Notebook Input. The from/to states are explicit, so an agent can distinguish this from variable-creation or literal-setting siblings. It stops short of naming any sibling explicitly, so a 4 rather than a 5.

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

Usage Guidelines4/5

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

It gives a clear rationale for when this tool is the right choice: it enables parameter values via `ntopcl -j` and `run_parameter_sweep` while preserving downstream wiring. That is genuine context for selection. There is no explicit when-not condition or named alternative (e.g., versus rewire_block_input or add_notebook_variable), so it falls short of a 5.

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