Skip to main content
Glama
netdiag-mcp-server

netdiag-mcp-server

by LuizH12380

HTTP check

http_check
Read-onlyIdempotent

Check a public http(s) URL with one GET request and report status code, reason phrase, and response time without downloading the body or following redirects.

Instructions

Make a single HTTP GET request to an http(s) URL and report the status code, reason phrase and response time in milliseconds; the body is not downloaded. Redirects are NOT followed: 3xx responses return redirect_location so you can decide whether to check it next. 4xx/5xx statuses are normal results. timeout_seconds is 1-10 (default 5). Only public Internet destinations are allowed by default: targets that resolve to private, loopback, link-local or other non-public addresses are refused unless the server operator sets NETDIAG_ALLOW_PRIVATE=1.

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": {
      "url": "<url>"
    },
    "name": "http_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesAbsolute http:// or https:// URL, e.g. 'https://example.com/'. Credentials in the URL are not allowed.
timeout_secondsNoMaximum time to wait for the response (1-10 seconds).

Output Schema

NameRequiredDescriptionDefault
urlYesURL that was requested.
reasonYesHTTP reason phrase.
elapsed_msYesTime until response headers were received, in ms.
status_codeYesHTTP status code returned by the server.
redirect_locationYesLocation header for 3xx responses (redirects are not followed).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (readOnly, openWorld, idempotent, non-destructive), it discloses that the body is not downloaded, redirects are not followed and redirect_location is returned, and that non-public destinations are refused unless NETDIAG_ALLOW_PRIVATE=1. These are exactly the behavioral facts an agent needs before calling.

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 action and free of filler, but it is one dense block of semicolon-joined clauses; splitting the redirect and SSRF rules into their own sentences would aid scanning.

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?

An output schema exists so return values need no explanation, yet the description still names the key returned fields. Combined with timeout bounds and the private-address policy, nothing needed 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.

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description adds real meaning by constraining which url values are acceptable (public destinations only, no credentials per schema) and restating the timeout_seconds 1-10/default-5 bound in context.

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 ('Make a single HTTP GET request to an http(s) URL') plus exactly what is reported (status code, reason phrase, response time). This is unmistakably distinct from dns_lookup and ping 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 clear operational context: 4xx/5xx are normal results, redirects are returned rather than followed so the agent can decide the next check. It does not explicitly say when to prefer this over ping/dns_lookup, but the usage situation is unambiguous.

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

Deploy Server

Other Tools