Skip to main content
Glama

get_running_config

Read-onlyIdempotent

Read filtered running configuration from a Ruckus ICX switch with secrets redacted, in CLI or YANG format, to support configuration review and change recommendations.

Instructions

Read the switch's running configuration, filtered to what you need. Secrets (passwords, keys, SNMP communities) are always redacted.

Formats:

  • "cli": FastIron CLI text (show running-config over SSH). Best for recommending config changes, since it matches what an admin would type.

  • "yang": structured JSON from the RESTCONF config datastore.

  • "auto" (default): YANG via RESTCONF, unless you pass a CLI-only option (section, match, list_sections), which uses CLI.

YANG workflow: call with no args to get top-level subtree sizes if large, then pass yang_path (e.g. "interfaces", "openconfig-spanning-tree:stp" -> use "stp"). CLI workflow: list_sections=true to see block headers, then fetch only the blocks you need with section or match. Prefer CLI when writing a change recommendation, since it matches what an admin types.

Args: section: CLI only. Comma-separated block-header prefixes, e.g. "interface ethernet 1/1/5", "vlan 20", "vlan", "spanning-tree", "interface ethernet 1/1/1,interface ethernet 1/1/2". match: CLI only. Case-insensitive regex; returns whole blocks with any matching line, e.g. "inline power", "802-1w", "port-name .*AP". list_sections: CLI only. Return just the block headers (cheap overview). yang_path: YANG only. Dotted path to a subtree, e.g. "interfaces" or "stp.global". max_lines: CLI output line cap (default 400, max 5000). max_chars: YANG output size cap (default 60000).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_running_config"
  }
}

Input Schema

NameRequiredDescriptionDefault
matchNo
formatNoauto
sectionNo
max_charsNo
max_linesNo
yang_pathNo
list_sectionsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, closed-world behavior, so the bar is lower; the description still adds non-obvious behavior: secrets are always redacted, output is size-capped (400 lines / 60000 chars defaults with a 5000 max), and 'auto' silently switches format based on CLI-only args. It does not discuss failure modes (e.g., RESTCONF unavailable, SSH auth), which would have earned a 5.

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?

Well front-loaded and cleanly sectioned into formats, workflows, and args, so an agent can skim. Minor redundancy: the 'CLI matches what an admin would type / prefer CLI for change recommendations' rationale appears twice in near-identical wording.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter, dual-transport tool with zero schema coverage, the description covers selection logic, per-param semantics, output caps, and security behavior; an output schema exists, so return-value details need not be restated. Nothing an agent needs to call it correctly appears to be missing.

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

Parameters5/5

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

Schema coverage is 0%, so the description carries the full burden and does: each of the 7 parameters is documented with format applicability (CLI-only vs YANG-only), default values, and concrete examples ('interface ethernet 1/1/5', 'port-name .*AP', 'stp.global'). The interaction between section/match/list_sections and the format enum is spelled out, which the schema alone could not convey.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening line states a precise verb and resource ('Read the switch's running configuration') and immediately bounds the scope with filtering and mandatory secret redaction. It also implicitly separates this from generic command execution by tying CLI output to `show running-config` rather than arbitrary show commands.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

It gives explicit per-format guidance: YANG workflow (no args first, then yang_path), CLI workflow (list_sections then section/match), and a clear rule for which to prefer ('Prefer CLI when writing a change recommendation'). It also explains the 'auto' default and the exact condition under which auto falls back to CLI.

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