Skip to main content
Glama

check_local_port

Read-onlyIdempotent

Verify a local service is running and responding before navigating to local apps. Returns port status, HTTP response code, and service hints for localhost ports.

Instructions

[Agent Browser] Check if a local service is running and responding. Use this before attempting to navigate to local apps to verify they're up. Host is restricted to localhost/127.0.0.1 for security. Returns: port status, HTTP response code (if applicable), and service hints.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "port": "<port>"
    },
    "name": "check_local_port"
  }
}

Input Schema

NameRequiredDescriptionDefault
hostNolocalhost
portYes

Output Schema

NameRequiredDescriptionDefault
dataNo
hintsNo
messageNo
successNo
suggestionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover read-only/idempotent/non-destructive, so the bar is lower; the description still adds real value by disclosing the security restriction (host limited to localhost/127.0.0.1) and the shape of results (status, HTTP code, service hints). It does not mention timeouts or what happens when the port is closed/refused.

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?

Four short lines, front-loaded with purpose then usage then constraint then return shape. The 'Returns:' line partially duplicates the existing output schema, a minor redundancy, but nothing is bloated.

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?

With rich annotations and an output schema present, the description only needed to supply usage timing and the security constraint, both of which it does. The remaining gap is port semantics and failure behavior, which is modest for a 2-parameter tool.

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 0%, so the description must carry the load. It meaningfully constrains the host parameter (localhost/127.0.0.1 only, for security), but says nothing about the required port parameter's expected range or format, leaving half the inputs undocumented.

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: checking whether a local service is 'running and responding'. The scope (localhost services, not remote URLs) is explicit, so an agent can distinguish this from navigation or assertion siblings.

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?

'Use this before attempting to navigate to local apps to verify they're up' gives a clear triggering condition tied to a workflow. No explicit when-not or named alternative is given, which keeps it short of a 5.

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