Skip to main content
Glama

mc_lan

Detect Minecraft servers advertised on the local network by listening for LAN multicast announcements, returning address, port, and MOTD within a set time without scanning or connecting.

Instructions

探测局域网里的 Minecraft 服务器(只读:不连接、不进服)。只听原版"对局域网开放"那条多播公告(224.0.2.60:4445,[MOTD]…[/MOTD][AD]端口[/AD],1.5 秒一次),听到就拿到地址+端口+MOTD。 🔴 不扫端口、不发探测包,所以恒定在 seconds 秒内返回(默认 3,上限 15);拿到后用 mc_connect 进服。 没听到时:确认对方真开了"对局域网开放"(或 enable-lan-visibility);部分 WiFi / VPN / 容器会挡多播,那种直接问对方地址。

Input Schema

NameRequiredDescriptionDefault
modeNo探测模式。目前只有 `broadcast`(默认):听局域网公告
secondsNo听多久(默认 3 秒,上限 15)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does it well: it states read-only/no-connect behavior, the exact wire protocol and multicast address, the 1.5s announcement cadence, and the bounded constant return time from `seconds`. The main gap is that it says nothing about how multiple simultaneous announcements are aggregated or ordered in the result.

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?

Front-loaded with the purpose, then protocol detail, then failure guidance — a sensible order with little waste. The default/max of `seconds` is stated in both the prose and the schema, and the emoji/formatting adds noise, but every substantive sentence earns its place.

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

Completeness5/5

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

With no output schema and no annotations, the description still tells the agent what comes back (address, port, MOTD), how long the call takes, and what to do when it returns empty. That is everything needed to call it correctly.

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 coverage is 100%, so baseline is 3, but the description adds real meaning: `seconds` is a hard ceiling on the whole call because the tool never scans, not a per-host timeout, and it repeats the default 3 / max 15. It never mentions the `mode` parameter explicitly, which is why it falls short of 5.

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 names a specific verb+resource (probe LAN Minecraft servers) and adds a hard scope boundary: it only listens for the vanilla multicast announcement, it does not scan ports or send packets. That boundary cleanly separates it from siblings like mc_scan and mc_ping, and it names mc_connect as the follow-on tool.

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

Usage Guidelines5/5

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

Explicit when-to-use (the other side used 'Open to LAN'), explicit when-not (don't expect it to work through WiFi/VPN/containers that block multicast), and an explicit alternative on failure (ask the other party for the address). It also routes the agent forward to mc_connect after a hit.

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