Skip to main content
Glama

set_notebook_literal

Update scalar, integer, bool, enum, vector, or text literals in an .ntop file, including unit-aware real values, with optional safe GUI reload after saving.

Instructions

Update a literal value (scalar/real, integer, bool, enum, vector/point, text) inside an .ntop file.

Supports human-friendly unit strings for real values such as "10mm", "2.5cm", "45deg", or {"value": 10, "unit": "mm"} (automatically converted to SI meters/radians + display expression). Pass auto_reload_gui=True to safely close and reopen the nTop GUI window after saving (with Autosave guard).

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

Input Schema

NameRequiredDescriptionDefault
valueYes
targetYes
overwriteNo
expressionNo
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.2/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden and does disclose two genuinely non-obvious behaviors: unit strings are converted to SI meters/radians plus a display expression, and auto_reload_gui=True will close and reopen the GUI after saving with an Autosave guard. What is missing is the safety profile an agent needs for a file mutation: whether the .ntop file is written in place, what overwrite and force_if_unsaved actually change, and what happens when the file has unsaved edits.

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?

Three short, front-loaded sentences: what it does, then the value format, then the GUI option. No filler or repetition. Slightly better structure could be had by grouping the parameter-specific notes, but nothing needs to be cut.

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 legitimately need no explanation, and the unit-conversion note covers the trickiest input case. For an 8-parameter mutation tool with zero annotation coverage and 0% schema descriptions, though, the definition is not complete enough: an agent cannot safely decide between overwrite, output_path, and force_if_unsaved from this text.

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%, so the description must explain all 8 parameters and it explains only two: value (unit-string forms, object form) and auto_reload_gui. target, notebook_path, overwrite, expression, output_path, and force_if_unsaved are left entirely undocumented, and overwrite/force_if_unsaved in particular have non-obvious, destructive-adjacent semantics.

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?

Specific verb ('Update') plus resource ('a literal value ... inside an .ntop file') with an enumerated list of supported literal types (scalar/real, integer, bool, enum, vector/point, text). That is far clearer than a bare name restatement, but it never contrasts itself with the sibling add_notebook_literal or set_notebook_output, so the agent must infer 'update existing' vs 'create new' from 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 Guidelines3/5

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

It gives useful how-to guidance for one parameter (pass auto_reload_gui=True after saving) and shows accepted unit-string forms, but it never states when to choose this tool over add_notebook_literal or set_notebook_output, nor any preconditions such as the notebook needing to exist or be closed. Usage is implied rather than prescribed.

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