Skip to main content
Glama

check_service_health

Check a service health endpoint via HTTP and report its status and latency, with configurable timeout and expected status code.

Instructions

Make an HTTP request to a service health endpoint and report status and latency

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

Input Schema

NameRequiredDescriptionDefault
urlYesURL to check (e.g. http://localhost:3000/health)
timeout_msNoRequest timeout in milliseconds
expected_statusNoExpected HTTP status code

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does disclose meaningful behavior the schema does not: an actual outbound HTTP request is made (a real side effect on an external system that may be logged or rate-limited) and the result reported is status plus latency. However, it is silent on failure semantics — whether an unreachable host raises an error or returns a failing result, whether a status other than expected_status is an error or just reported, and whether redirects are followed.

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?

A single front-loaded sentence with no filler or repetition, so every word earns its place. The brevity is efficient, though it leaves no room for the behavioral caveats noted above.

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?

For a low-complexity three-parameter tool this is close to sufficient, and the input side is fully covered by the schema. But with no annotations and no output schema, the description should have said what comes back (status code, latency, error indicator) and how failures are surfaced; without that, an agent cannot predict the return shape.

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%, so all three parameters (url, timeout_ms, expected_status) are already documented with formats, defaults, and bounds; baseline 3 applies. The description adds nothing beyond the schema and, notably, does not explain the consequence of expected_status — whether a mismatch fails the check or is merely reported. The interesting semantic is left undecided.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a concrete verb and resource: makes an HTTP request to a service health endpoint and reports status and latency. An agent immediately knows this is an active network probe, which is clearly distinct from the passive introspection tools among the siblings (get_open_ports, get_docker_state, etc.). It stops short of naming any sibling or contrast explicitly, so it lands at 4 rather than 5.

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?

Use is strongly implied — this is the tool for asking 'is this service actually responding?' — but there is no explicit when-to-use or when-not-to-use statement, and no pointer to alternatives (e.g., use get_open_ports to see if a port is bound versus this tool to see if it answers). Adequate implied context, no real routing guidance.

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