Skip to main content
Glama

discover_restconf

Read-onlyIdempotent

Diagnose RESTCONF connectivity, verify credentials, and list exposed YANG modules to find correct data paths when RESTCONF paths fail.

Instructions

Diagnose RESTCONF connectivity and list the YANG modules the switch exposes.

Probes /.well-known/host-meta, /restconf, RESTCONF capabilities and the YANG library. Use this to (1) verify reachability and credentials, and (2) find the correct data paths when another tool reports that no RESTCONF path worked. Output: reachable, auth_ok, modules [{name, revision}], per-probe HTTP status.

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": "discover_restconf"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

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 readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds real value by naming the exact probe targets (/.well-known/host-meta, /restconf, capabilities, YANG library) and the returned fields, but does not say whether probes are sequential, how long a failed device takes, or what a partial success looks like.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the action, then probe scope, then the two decision cases, then the output shape. Every line carries information; nothing is restated from the name or the annotations.

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?

An output schema exists, yet the description still summarizes the key return fields (reachable, auth_ok, modules, per-probe status), so an agent knows how to branch on the result without reading the schema. For a zero-param diagnostic probe, nothing material is missing.

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?

The tool takes zero parameters, so there is nothing for the description to disambiguate; baseline for a no-arg tool applies. The description correctly never invents arguments, keeping the calling contract unambiguous.

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?

States a specific verb+resource pair: diagnose RESTCONF connectivity and list exposed YANG modules. This is clearly distinct from every sibling (get_* readers and run_show_command) because it is a connectivity/probing tool rather than a data-fetch tool.

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?

Gives two numbered, explicit use cases: verifying reachability and credentials, and recovering the correct data paths when another tool reports that no RESTCONF path worked. That second clause names the failure condition that selects this tool, which is exactly the routing signal an agent needs.

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