Skip to main content
Glama
gxxHuang
by gxxHuang

Ping Test

ping_test
Read-only

Tests network reachability from a selected iKuai router interface using ICMP, TCP, or UDP to confirm whether a host or domain responds.

Instructions

执行 Ping 测试

实测(IK-Q3000 / 4.0.313):必须带全部字段,且 interface 不能为空, 否则返回 3001 请求参数不合法。结果通过 ping_result 读取。

Input Schema

NameRequiredDescriptionDefault
dnsNo反向解析用 DNS
hostYes目标 IP 或域名
portNo端口(l4proto 为 tcp/udp 时使用)
countNo发包次数
protoNo协议族 "ipv4" 或 "ipv6"ipv4
l4protoNo传输层协议 "icmp"/"tcp"/"udp"icmp
interfaceNo出口接口,如 "wan1"/"lan1"(必需,不能为空)wan1

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changedv1.0.1
    • addedInput schema / properties / dns
      Added value: +{
      +  "default": "",
      +  "description": "反向解析用 DNS",
      +  "type": "string"
      +}
    • addedInput schema / properties / host
      Added value: +{
      +  "description": "目标 IP 或域名",
      +  "type": "string"
      +}
    • changedInput schema / properties / interface / default
      Previous value: -""New value: +"wan1"
    • changedInput schema / properties / interface / description
      Previous value: -"出口接口"New value: +"出口接口,如 \"wan1\"/\"lan1\"(必需,不能为空)"
    • addedInput schema / properties / l4proto
      Added value: +{
      +  "default": "icmp",
      +  "description": "传输层协议 \"icmp\"/\"tcp\"/\"udp\"",
      +  "type": "string"
      +}
    • addedInput schema / properties / port
      Added value: +{
      +  "default": "",
      +  "description": "端口(l4proto 为 tcp/udp 时使用)",
      +  "type": "string"
      +}
    • addedInput schema / properties / proto
      Added value: +{
      +  "default": "ipv4",
      +  "description": "协议族 \"ipv4\" 或 \"ipv6\"",
      +  "type": "string"
      +}
    • removedInput schema / properties / target
      Removed value: -{
      -  "description": "目标 IP 或域名",
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "target"
      -]New value: +[
      +  "host"
      +]
  2. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

readOnlyHint=true already declares the safety profile, so the bar is lower; the description still adds real behavioral value by disclosing the empirically observed requirement that all fields be sent and interface be non-empty, plus the exact failure code (3001). It does not state whether the ping is asynchronous or how long results take to appear, but the device-specific quirk is exactly the kind of context annotations cannot carry.

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?

Two short sentences, front-loaded with the action and immediately followed by the critical constraint and the result-reading pointer. No filler; minor density loss from the inline code/backtick formatting.

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?

An output schema exists, so return values need not be explained, and annotations cover safety. Given that, the description supplies the two things an agent most needs: the strict all-fields/interface requirement and where to read results. Only the timing/asynchronous nature of the test is left unstated.

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?

Schema description coverage is 100%, so the baseline would be 3, but the description adds meaning beyond the schema: the schema marks only host as required, whereas the text states all seven fields must be present and interface must be non-empty or the call fails with 3001. This corrects a misleading impression left by the schema.

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?

States a specific verb and resource (执行 Ping 测试 / execute a ping test) and names the sibling that reads the outcome (ping_result), so an agent can distinguish it from ping_result and other diagnostics like traceroute. It does not explicitly distinguish itself from traceroute/iperf/speed_test, keeping it short of a 5.

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 routes the agent to ping_result for reading results, which implies the intended two-step workflow (start here, read there). However, it gives no guidance on when to prefer ping over traceroute or other connectivity tools, so usage is only implied rather than contrasted.

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

Deploy Server

Other Tools