Skip to main content
Glama

Dev server ports

get_running_services
Read-onlyIdempotent

Check which ports a project's dev server should use and whether they are listening, identify the holding process, and confirm port conflicts or post-restart status without a full snapshot.

Instructions

Checks the ports this project's dev server should use (read from its config, or framework defaults) and reports which are listening, the process holding each, and whether that process belongs to this project. Use this to confirm a port conflict or check whether the dev server came back up after a restart, without rerunning the full snapshot.

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": "get_running_services"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoAbsolute path to the project root. Optional: defaults to the client's workspace root, or the server's working directory.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.3
    • addedInput schema / properties / cwd / description
      Added value: +"Absolute path to the project root. Optional: defaults to the client's workspace root, or the server's working directory."
  2. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, non-destructive, and local behavior. The description adds useful context beyond that: ports come from project config or framework defaults, and results include listening state, process ownership, and whether the process belongs to this project.

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?

Two sentences, front-loaded with what is checked and reported, followed by concrete usage scenarios. There is no redundant or filler wording.

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 simple read-only diagnostic with one optional parameter and existing annotations, the description is largely complete: it explains expected inputs indirectly through project config, describes returned information, and gives the main use cases. Return formatting is not detailed, but no output schema exists and the summary of reported fields is sufficient for correct invocation.

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%, and the single cwd parameter is fully documented in the schema, including its optional default. The description adds no parameter-specific meaning, so this meets the baseline for well-covered schemas.

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: checks the project's expected dev-server ports and reports which are listening, the holding process, and project ownership. The final clause distinguishes it from broader snapshot tools by saying it avoids rerunning the full snapshot.

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 clear when-to-use guidance: confirm a port conflict or check whether the dev server came back after a restart. It also implies the alternative is the full snapshot, but does not explicitly state when not to use this tool or name the sibling.

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