Skip to main content
Glama

query_ports

List registered ports, their applications, ngrok URLs, and notes; filter by app name or port number to determine what is running where and how an app is reachable.

Instructions

Yardmaster port registry: list all registered ports with their applications, ngrok URLs, and notes. Notes carry hostname/exposure detail, so read them when determining how an app is reachable. Use when asked what ports are in use, what is running where, or to look up the port registry. Optionally filter by app name or port number.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "query_ports"
  }
}

Input Schema

NameRequiredDescriptionDefault
filterNoOptional filter string to match against app names or port numbers

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/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 so reasonably: it makes clear this is a read/lookup over the registry and discloses the returned fields. It also adds genuinely useful interpretive guidance ('notes carry hostname/exposure detail, so read them when determining how an app is reachable'), which is behavior beyond any structured field. It stops short of stating ordering, whether unregistered/available ports appear, or any limits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences: identity and payload first, then the note-reading caveat, then usage triggers and the filter. No filler and the most actionable detail is front-loaded.

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?

For a one-parameter read tool with no annotations and no output schema, the description covers what it returns, when to call it, and how to interpret the notes field. Nothing an agent needs in order to invoke it correctly is missing.

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?

Only one optional parameter and the schema already documents it at 100% coverage ('match against app names or port numbers'). The description's 'Optionally filter by app name or port number' largely restates the schema, so baseline 3 applies; it adds the word 'optionally' confirming the tool works unfiltered, but nothing further.

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?

States a specific verb and resource ('list all registered ports') plus the exact payload fields returned: applications, ngrok URLs, and notes. This cleanly separates it from the sibling mutation tools (register_port, release_port, annotate_port, get_available_port) without needing to name them.

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?

Gives explicit when-to-use cues: whatever is asked about ports in use, what is running where, or looking up the registry. It does not name a specific alternative or state exclusions, but the 'list all registered ports' framing implicitly scopes it against the register/release/available siblings.

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