Skip to main content
Glama
corgan2222

Milesight Gateway MCP Server

by corgan2222

create_device

Register a new device under an application by providing its EUI and application ID. Supports OTAA or ABP activation methods.

Instructions

Register a new device under an application.

dev_eui and application_id are required. For OTAA provide app_key; for ABP provide dev_addr, app_s_key and nwk_s_key.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
f_portNo
app_keyNo
dev_euiYes
dev_addrNo
app_s_keyNo
nwk_s_keyNo
profile_idYes
descriptionNo
application_idYes
skip_fcnt_checkNo
payload_codec_idNo
Behavior3/5

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

With no annotations, the description carries full burden. It discloses that the tool creates a device and lists required parameters, but omits side effects, permissions, or reversibility. Basic behavioral context is provided but not exhaustive.

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?

The description is extremely concise: two sentences covering purpose and activation requirements with no extraneous information. It is front-loaded and every sentence adds value.

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?

Given the tool has 12 parameters, no output schema, and no annotations, the description is incomplete. It covers only activation-specific parameters, leaving many fields (e.g., profile_id, name, skip_fcnt_check) unexplained. More detail is needed for full contextual completeness.

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 0%, so description must compensate. It explains the purpose of dev_eui, application_id, and activation keys (app_key, dev_addr, app_s_key, nwk_s_key), but does not describe other parameters like name, f_port, profile_id, description, skip_fcnt_check, or payload_codec_id. Partial coverage.

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 description clearly states 'Register a new device under an application,' specifying the action (register) and resource (device). It distinguishes from sibling tools like delete_device or list_devices, and provides necessary context about activation modes.

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

Usage Guidelines4/5

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

The description explains when to use the tool (registering a new device) and distinguishes between OTAA and ABP activation, specifying which parameters are required for each. However, it lacks explicit guidance on when not to use or comparisons with siblings.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/corgan2222/milesight-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server