Skip to main content
Glama
NsLookup-io

nslookup.io MCP Server

by NsLookup-io

uptime_check

Check website availability by performing HTTP uptime checks on URLs. Returns status, HTTP code, and response time in milliseconds.

Instructions

Perform a one-time HTTP uptime check on a URL. Returns whether the site is up or down, HTTP status code, and response time in milliseconds.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesFull URL to check (e.g. https://github.com)
timeoutNoTimeout in milliseconds (default: 10000)

Implementation Reference

  • The implementation of the uptime_check tool, which performs an HTTP availability check on a provided URL.
    server.tool(
      "uptime_check",
      "Perform a one-time HTTP uptime check on a URL. Returns whether the site is up or down, HTTP status code, and response time in milliseconds.",
      {
        url: z.string().describe("Full URL to check (e.g. https://github.com)"),
        timeout: z
          .number()
          .optional()
          .describe("Timeout in milliseconds (default: 10000)"),
      },
      async ({ url, timeout: checkTimeout }) => {
        try {
          const body: Record<string, unknown> = { url };
          if (checkTimeout) body.timeout = checkTimeout;
    
          const result = await apiPost(
            "/v1/uptime/check",
            body,
            { prefix: "/portal-api", timeout: 30000 }
          );
          return { content: [{ type: "text", text: formatJson(result) }] };
        } catch (error) {
          return {
            content: [
              {
                type: "text",
                text: `Error: ${error instanceof Error ? error.message : String(error)}`,
              },
            ],
            isError: true,
          };
        }
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It describes the tool as a 'one-time' check (not continuous monitoring) and specifies the return data (status, code, response time), but does not mention error handling, rate limits, authentication needs, or network constraints. This covers core functionality but leaves gaps in operational details.

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?

The description is a single, efficient sentence that front-loads the purpose and key return values without unnecessary words. Every element ('one-time HTTP uptime check', 'URL', 'returns...') serves a clear purpose, making it easy to parse and understand quickly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's moderate complexity (HTTP check with timing), no annotations, and no output schema, the description provides a solid foundation but lacks details on error responses, retry behavior, or output structure. It is complete enough for basic use but would benefit from more context on failure modes or performance characteristics.

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%, with both parameters ('url' and 'timeout') well-documented in the schema. The description does not add any parameter-specific details beyond what the schema provides, such as URL format examples or timeout implications. Baseline score of 3 is appropriate as the schema handles parameter documentation adequately.

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?

The description clearly states the specific action ('perform a one-time HTTP uptime check'), the resource ('on a URL'), and the outcome ('returns whether the site is up or down, HTTP status code, and response time'). It distinguishes itself from sibling tools like 'security_scan' or 'ssl_certificate' by focusing solely on uptime monitoring rather than security or certificate analysis.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage for checking website availability with timing metrics, but does not explicitly state when to use this tool versus alternatives like 'security_scan' for vulnerability checks or 'dns_lookup' for DNS issues. It provides basic context but lacks explicit guidance on exclusions or prerequisites.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/NsLookup-io/nslookup-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server