Skip to main content
Glama
corgan2222

Milesight Gateway MCP Server

by corgan2222

update_device

Update a device on a Milesight LoRaWAN gateway by specifying only the fields to change; current data is merged automatically.

Instructions

Update a device. Only the provided fields are changed (merged onto the device's current record).

The gateway's update endpoint requires all mandatory fields in every request, so the current record is fetched first and the requested changes merged in before the full body is sent.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo
f_portNo
app_keyNo
dev_euiYes
profile_idNo
descriptionNo
skip_fcnt_checkNo
payload_codec_idNo
Behavior4/5

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

Despite no annotations, the description reveals the internal fetch-then-update behavior to handle mandatory fields. This adds significant transparency about side effects (the tool does a read before write). However, it does not mention any destructive actions or permissions needed.

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?

The description is concise with two clear paragraphs. The first sentence front-loads the purpose. The second paragraph adds necessary implementation detail without extra fluff.

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 8 parameters with no schema descriptions, no output schema, and no annotations, the description is incomplete. It does not explain return values, parameter details, or usage examples. The behavioral note is helpful but insufficient.

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

Parameters2/5

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

With 0% schema description coverage and 8 parameters, the description provides no individual parameter meanings. It only generalizes that provided fields are merged. This fails to compensate for the missing schema descriptions.

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 'Update a device' with a specific verb and resource. It explains the merge behavior, distinguishing it from create or delete tools. The sibling tools are for different resources (applications, profiles), so no confusion.

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

Usage Guidelines3/5

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

The description explains how the tool works (merge) but does not explicitly state when to use it versus alternatives like create_device or other update tools. It implies usage for partial updates but lacks explicit context.

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