Skip to main content
Glama

add_notebook_literal

Adds a typed literal leaf block to an .ntop notebook, supporting real, integer, bool, enum, vector, point, and file_path values plus unit-aware reals like "10mm" or "45deg".

Instructions

Add a new literal leaf block (real, integer, bool, *_enum, vector, point, file_path) to an .ntop notebook.

Supports human-friendly unit strings for real literals like "10mm", "45deg", or {"value": 10, "unit": "mm"}.

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>",
      "leaf_type": "<leaf_type>",
      "value": "<value>"
    },
    "name": "add_notebook_literal"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
unitsNo
valueYes
leaf_typeYes
overwriteNo
output_pathNo
notebook_pathYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/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 burden. It never says what happens when a literal with the same name already exists, what `overwrite` does, whether the edit is undoable, or how `output_path` changes behavior — significant omissions for a mutation tool on a notebook 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?

Two short sentences, front-loaded with the action and the type enumeration, then the unit-format detail. No filler, though the example formats could be consolidated slightly.

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 described, but for a 7-parameter mutation tool with zero annotation coverage the definition omits overwrite/duplicate semantics, output_path behavior, and differentiation from set_notebook_literal. An agent could call it, but would guess on several parameters.

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 7 parameters. The description does add real value for `leaf_type` (listing valid values where the schema has no enum) and for `value`/`units` on real literals, but `name`, `overwrite`, `output_path`, and `notebook_path` are left entirely undefined.

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 ('Add a new literal leaf block ... to an .ntop notebook') and enumerates the supported leaf types, which tells an agent exactly what kind of node this creates. It does not explicitly contrast with set_notebook_literal or add_notebook_variable, so sibling differentiation relies on the name alone.

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 guidance on when to use this versus set_notebook_literal (which presumably modifies an existing literal) or add_notebook_variable. The only usage-adjacent detail is that unit strings are supported for `real` literals, which is a format note rather than a when-to-use rule.

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