Skip to main content
Glama
coolexer

Nokia SR OS gNMI MCP Server

by coolexer

sros_set_update

Merge configuration changes on Nokia SR OS devices via gNMI Set by providing a YANG path and JSON value.

Instructions

Update (merge) configuration on Nokia SR OS via gNMI Set. Provide a YANG path and JSON value to merge.

Example — create interface: path: /configure/router[router-name=Base]/interface[interface-name=lo0] value: {"ipv4": {"primary": {"address": "10.0.0.1", "prefix-length": 32}}}

Example — enable port: path: /configure/port[port-id=1/1/c2/1] value: {"admin-state": "enable"}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesDevice session name
pathYesYANG path to update
valueYesJSON object with config values to merge

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.5/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; it does disclose the meaningful merge semantics (existing config is preserved and values are combined rather than overwritten), which is the key behavioral trait. However, it omits session prerequisites, error behavior for invalid paths, and any indication of what a successful response contains.

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?

The purpose sentence is front-loaded and the two examples are short and directly instructive for constructing a valid call. Slightly verbose in places, but every element (mechanism, merge semantics, path/value examples) earns its place.

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?

For a destructive-capable mutation tool with no annotations and no output schema, the description covers the operation and input format well but leaves gaps: it never states that a session (name) must first exist via sros_connect, nor what happens when a path is invalid. Adequate but not complete.

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 coverage is already 100%, so the schema documents the three parameters, establishing a baseline of 3. The description goes beyond it by showing concrete path syntax with list keys (e.g. /configure/router[router-name=Base]/interface[interface-name=lo0]) and the nested JSON value shape, which materially clarifies how 'path' and 'value' must be formed.

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 (update/merge), the resource (configuration on Nokia SR OS) and the mechanism (gNMI Set), and the parenthetical '(merge)' hints at how it differs from sros_set_replace and sros_set_delete. It does not explicitly name those siblings, so the differentiation is implied rather than stated.

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?

Usage context is only implied: 'merge' suggests a partial, additive update versus the sibling replace/delete tools, and the examples show a call shape. There is no explicit statement of when to choose this over sros_set_replace or sros_set_delete, and no prerequisites (e.g. an active session) are given.

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