Skip to main content
Glama

Web port check

check_web_ports
Read-onlyIdempotent

Check whether ports 80 and 443 answer on each of a domain's addresses (IPv4 and, when our IPv6 connection is on, IPv6), with the TLS handshake on 443 and the HTTP redirect on 80. Only these two ports, and only for a domain name, never an IP address. Costs 1 credit per call; cached answers cost the same. Calls that fail upstream (502) are free. Returns about 15 lines of text; pass detail='full' for the complete JSON result.

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": {
      "domain": "<domain>"
    },
    "name": "check_web_ports"
  }
}

Input Schema

NameRequiredDescriptionDefault
freshNoSkip the cache and check again. Costs the same as a cached answer.
detailNo'compact' (default) for a short text summary, 'full' for the JSON.compact
domainYesA domain, e.g. example.com; never an IP address.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover the read-only, idempotent, open-world safety profile, and the description adds materially more: a 1-credit cost per call, cached answers billed the same, free upstream 502 failures, and conditional IPv6 coverage that depends on the service's own connectivity. That is exactly the kind of billing and failure-mode context structured fields cannot carry.

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 core check, then scope limits, then cost and output shape — a logical progression with no filler. It is slightly dense in a single paragraph, but every clause carries real information.

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, the description takes on the burden of describing returns and does so ('about 15 lines of text', full JSON via detail='full'). Combined with probing specifics, cost model, and failure behavior, an agent has 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.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so all three parameters are already documented, including fresh and the detail enum. The description reinforces detail='full' for JSON output and notes cached answers cost the same, but adds little beyond the schema text, so the baseline of 3 applies.

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 precise verb and resource — checks whether ports 80 and 443 answer on a domain's addresses — and goes further by naming the probe on each port (TLS handshake on 443, HTTP redirect on 80). The explicit bounding ('Only these two ports, and only for a domain name, never an IP address') gives the agent enough to separate this from broader siblings like check_http or check_ssl.

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?

Clear operating context and an explicit exclusion: domain names only, never IPs, and only the two web ports. It does not name an alternative tool for IP checks or for other port ranges, so the agent must infer which sibling to fall back on.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources