Skip to main content
Glama

Register Device

register_device

Register an eNSP simulated device by name and local TCP port so AI clients can connect to run Huawei CLI commands and diagnostics. Optional username/password supported.

Instructions

Register an eNSP device by name and TCP port.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesDevice name, e.g. R1
portYesLocal TCP port, e.g. 2000
passwordNoOptional password
usernameNoOptional username

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and does not meet it. It says nothing about whether registration is idempotent, whether it overwrites an existing entry for the same name, whether it actively connects to the port, or whether username/password are needed for authentication.

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?

A single front-loaded sentence with no filler. It is efficient, though the extreme brevity is partly the cause of the missing behavioral context rather than pure conciseness.

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

Completeness2/5

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

For a state-mutating registration tool with four parameters, no annotations, and no output schema, the description is thin: it omits side effects, authentication requirements, error conditions (port in use, name collision), and the relationship to unregister_device. The schema covers inputs, but nothing covers behavior.

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

Parameters3/5

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

Schema coverage is 100%, including examples (R1, 2000) for both required fields, so the schema does the heavy lifting. The description only restates name and TCP port and adds no semantics for the optional username/password beyond what the schema already documents, which is the baseline 3 case.

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 gives a specific verb ("Register") and resource ("eNSP device") plus the two key identifiers (name, TCP port), so the agent can distinguish it from unregister_device or list_devices. It stops short of stating what registration actually accomplishes (e.g., creating a tracked endpoint) or how it relates to the credential parameters.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no prerequisites (a device must presumably already be listening on that local port), and no mention of alternatives such as auto_discover or discover_topology that also add devices. The agent must infer all context from the name alone.

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