Skip to main content
Glama

Create port monitor

create_port_monitor

Create a TCP or UDP port monitor that tracks a host:port and reports up only when the service actually answers.

Instructions

Watch one TCP or UDP port on a host and report it up only when the service behind it actually answers. This is the type for game servers, databases, mail and anything else that speaks its own protocol rather than HTTP - Minecraft, Rust, CS2, FiveM, Postgres, Redis, SMTP. The port must be given as part of the url. Set protocol to UDP for game servers; most of them do not answer on TCP at all.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesHost and port separated by a colon, for example example.com:443 or 1.2.3.4:25565. The port is required; without it the monitor cannot be created.
nameYesLabel shown in the dashboard and in alerts, up to 50 characters. Something recognisable months later beats the bare hostname.
isActiveNoStart monitoring immediately (default true)
protocolNoTCP is the default and fits most services. Use UDP for game servers and anything else that does not answer on TCP; on UDP the port counts as up only when the server actually replies.
frequencyNoCheck frequency in minutes (1-1440, default 5)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesMonitor id, used by every other tool.
urlNo
nameNo
typeNo
isActiveNoFalse while the monitor is paused.
frequencyNoCheck interval in minutes.
statusSummaryNoCurrent state, for example GOOD or ERROR.
Behavior4/5

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

Adds behavioral detail beyond annotations: the monitor only reports 'up' when the service actually answers, and UDP requires a real reply. This clarifies success semantics that the schema doesn't convey. Annotations are minimal (e.g., readOnlyHint=false implicitly write), so the description adds meaningful context.

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?

Three sentences, front-loaded with the core behavior and then concrete examples. No wasted words, though the third sentence could be seen as slightly redundant with the schema's protocol description, but it reinforces a common pitfall.

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?

For a 2-required-param tool with a well-documented schema and an output schema present, the description covers the essential behavioral context and protocol nuances. It doesn't mention failure modes or pagination, but those are not critical for a creation endpoint.

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 already documents all parameters with useful descriptions (url format, name length, protocol default). The description adds extra real-world guidance on choosing UDP for game servers and reiterates the port requirement, complementing but not duplicating schema.

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?

Description uses a specific verb ('watch') with a clear resource ('one TCP/UDP port') and explicitly differentiates from HTTP monitors by stating it's for game servers, databases, mail, etc. The examples (Minecraft, Rust, CS2) make it unmistakable what this tool does.

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?

Provides explicit context for when to use this monitor type ('rather than HTTP') and why UDP is needed for game servers. It doesn't name sibling tools, but the clear distinction and protocol guidance make the intended scope obvious.

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/uptybots/mcp-server'

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