This NSO MCP server has significant definition quality gaps. All three tools lack proper structured parameter validation, descriptions are verbose but lack clarity on when to use each tool, and there is no documented output schema. The server mixes operational concerns (exec_cmd) with configuration concerns (config_dryrun vs config_commit) without clear semantic distinction. Parameter descriptions are embedded in docstrings rather than formal schema annotations. No tool distinguishes read-only from destructive operations in the description itself, relying instead on external 'Risk' labels. Error handling is present in code (try/except blocks with logging) but not documented for the LLM. The baseline for 549 production tools shows average tool name length of 18 chars; these range from 8 - 13 chars, which is acceptable. However, naming lacks the verb_noun clarity needed for LLM disambiguation when two configuration tools (config_dryrun, config_commit) exist without obvious semantic differences in their names alone.
method to commit CLI through RESTCONF, equivalent to following $ curl -u admin:admin http://127.0.0.1:8080/restconf/\ operations/tailf-ncs:devices/runcli:runcli-commit \ << runcli-commit -H 'Content-Type: application/yang-data+json' \ -X POST -d '{"input": { "device": "R1", "command":"hostname test"}}' args: - device: target device - command: command to execute return: - outputs -> str
method to dry-run CLI through RESTCONF, equivalent to following $ curl -u admin:admin http://127.0.0.1:8080/restconf/\ operations/tailf-ncs:devices/runcli:runcli-dryrun \ << runcli-dryrun -H 'Content-Type: application/yang-data+json' \ -X POST -d '{"input": { "device": "R1", "command":"hostname test"}}' args: - device: target device - command: command to execute return: - outputs -> str
execute any commands via live-status/exec/any args: - device: target device - command: command to execute return: - outputs
Missing output schema documentation. No tool documents what the LLM will receive in return. Code shows response parsing (e.g., response.json()["runcli:output"]["output"] for config tools; special handling for IOS vs IOS-XR in exec_cmd), but this is invisible to the LLM.
Descriptions do not state side effects. config_commit modifies state (Risk=WRITE) but the description does NOT say 'This commits configuration to the device and MODIFIES its state' or 'This is irreversible.' tools that modify state MUST say so in the description for the LLM to know whether to ask for confirmation. exec_cmd and config_dryrun do not clearly state READ_ONLY in their descriptions despite the Risk labels.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 38 | <=2025-11-25 | v2 |
| 2026-03-09 | F | 24 | - | v1 |
No differentiation in naming between config_dryrun and config_commit. Both names sound like 'configuration operations' but one is read-only preview, the other is destructive commit. LLMs may conflate these or pick the wrong one. Consider renaming to 'preview_config' and 'apply_config' or 'dryrun_config' and 'commit_config' to make the verb clearer.
Parameter constraints missing. 'device' and 'command'/'config' parameters accept any string with no validation hints. No enum of valid devices, no length limits, no format patterns. E.g., 'The target device name (must exist in NSO, e.g., R1, R2)' would help.
Error handling not documented for LLM. Code includes try/except blocks with logging, but the descriptions and schemas do not explain what errors the LLM should expect or how to recover. E.g., 'If the device name is invalid, you will receive an error; try listing available devices first.' is missing.
Credentials exposed in configuration. NSO_ADDR, NSO_PORT, NSO_USERNAME, NSO_PASSWORD are read from environment variables, which is correct. However, no tool description mentions authentication or permission requirements.
Docstring-based parameter descriptions instead of formal schema. Parameter descriptions are buried in the tool docstring (e.g., 'args: - device: target device') rather than included in the JSON Schema 'description' field. While FastMCP likely extracts these, it's not guaranteed the LLM sees them. Best practice is to include descriptions in the schema itself.