Skip to main content
Glama

add_notebook_variable

Adds a promoted top-level variable (core.var<var_type>) to a specified notebook section, linked to a source block, so you can expose and reuse parameters in nTop workflows.

Instructions

Add a promoted top-level variable (core.var<var_type>) in a specified notebook section.

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": "<name>",
      "var_type": "<var_type>",
      "source_block_id": "<source_block_id>"
    },
    "name": "add_notebook_variable"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
unitsNo
var_typeYes
overwriteNo
expressionNo
output_pathNo
section_nameNo
notebook_pathYes
source_block_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.4/5.0
Behavior2/5

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

No annotations are supplied, so the description must carry the full behavioral burden. It identifies this as an add/mutation operation, but does not explain overwrite behavior, error conditions when the variable already exists, required permissions, or how the `overwrite` flag affects existing data.

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

Conciseness3/5

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

The single sentence is front-loaded and free of filler, which is structurally efficient. However, it is too compressed for a 9-parameter mutation tool, leaving most schema fields unexplained.

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?

With 9 parameters, no annotations, and 0% schema description coverage, the definition is materially incomplete for an agent to invoke the tool reliably despite the presence of an output schema. The output schema helps with return values, but parameter behavior and usage conditions remain largely undocumented.

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

Parameters1/5

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

Schema description coverage is 0% and there are 9 parameters, yet the description only indirectly gestures at `var_type` via the `core.var<var_type>` pattern and at `section_name` via 'specified notebook section.' It adds no meaning for `notebook_path`, `source_block_id`, `name`, `units`, `overwrite`, `expression`, or `output_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?

The description names a specific verb (Add) and resource (promoted top-level variable), and clarifies the naming pattern `core.var<var_type>` and section placement. It does not distinguish this tool from nearby siblings such as add_notebook_literal or set_notebook_literal.

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 guidance on when to use this versus alternatives like add_notebook_literal or set_notebook_literal. The phrase 'promoted top-level variable' implies a use case, but no conditions, prerequisites, or exclusions are stated.

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