Skip to main content
Glama

ACTION_NETWORK_STATUS

Check network connectivity, determine connection type (Wi-Fi, cellular, Ethernet), and optionally retrieve IP addresses to support workflow branching and error handling.

Instructions

查询是否联网、网络类型,可选查 IP。输出:network_connected, network_type, wifi_ip, mobile_ip, network_success, network_error。network_type:wifi / cellular / ethernet / other / none。mobile_ip 实为第一个非回环 IPv4 地址,连着 WiFi 时可能就是 WiFi 地址。。字符串参数支持 ${var} 插值;结果以变量快照 JSON 返回。

Input Schema

NameRequiredDescriptionDefault
actionNostatus=只查连接与类型;ip / all=另外写 wifi_ip、mobile_ip(默认 status)
requireNo执行后要求为 true 的变量名(如 click_success),不满足按出错处理
on_errorNo节点出错时:skip=跳过继续(默认),stop=停止整个工作流
node_timeout_msNo单节点超时毫秒,0=不限;默认 30 分钟

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden and does reasonably well: it enumerates the output variables (network_connected, network_type, wifi_ip, mobile_ip, network_success, network_error), lists the possible network_type values, and discloses a non-obvious quirk that mobile_ip is actually the first non-loopback IPv4 address and may equal the WiFi address. It also notes that results are returned as a variable-snapshot JSON. It does not cover permission requirements or whether the call has side effects.

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 purpose is front-loaded, followed by output fields, then the mobile_ip caveat, then the interpolation note; every sentence carries information. Minor polish issues remain, such as the doubled '。。' punctuation, but there is no filler.

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

Completeness4/5

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

There is no output schema, so the description appropriately enumerates the returned variables and their likely values, and it flags the mobile_ip edge case that would otherwise mislead an agent. The omission of permission or side-effect information is minor for what is fundamentally a read-only status probe.

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 description coverage is 100%, so all four parameters are already documented in the schema and the baseline is 3. The description adds marginal value by noting that string parameters support ${var} interpolation, which is not visible in the schema, but it does not expand on require, on_error, or node_timeout_ms.

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 states a specific verb-and-resource combination: query whether the device is online, the network type, and optionally the IP. The action enum values (status/ip/all) make the scope precise enough that an agent can distinguish this read-only status tool from ACTION_WIFI or ACTION_GET_TRAFFIC. It stops short of explicitly naming a sibling tool as the alternative.

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 implies usage through the action breakdown (status = connectivity only, ip/all = also return addresses), but it never states when an agent should pick this tool rather than ACTION_WIFI, ACTION_GET_SIM_INFO, or ACTION_GET_TRAFFIC. The guidance is implied rather than explicit.

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