Skip to main content
Glama

Agent Data Tools: Company, compliance and checks

API health check: uptime, latency, headers, x402

pack_api_health
Read-only

One call to health-check an API endpoint: up or down with status and response time over three requests (min, median, max), the redirect chain, HTTP security headers, whether it is a paid x402 endpoint and what its payment terms are, and the API's OpenAPI document when one is found at the usual places. Cheaper than the tools bought one by one. Use for API monitoring, before integrating a third-party API, or to check your own after a deploy. Example: url=https://petstore3.swagger.io/api/v3/pet/findByStatus?status=available. Price $0.01/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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

Input Schema

NameRequiredDescriptionDefault
urlYesThe API endpoint URL

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=true, and idempotentHint=false, so the safety profile is covered structurally. The description adds genuinely useful context beyond that: three requests are issued per call, each call is billed, first 10 are free, failed calls are free, and repeats are not free (which explains the idempotentHint=false). It does not cover timeout behavior, what an unreachable endpoint returns, or rate limits.

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 purpose and payload, and the usage sentence and example follow logically. Cost information is stated twice (the 'cheaper than the tools bought one by one' line and the closing price/billing sentence), which is mild redundancy that could be consolidated.

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 one input and no output schema, the description carries the return-value burden and does so: it lists the observable outputs (status, latency distribution, redirects, headers, x402 terms, OpenAPI doc). Pricing and side effects are also stated, leaving nothing an agent needs before calling it.

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?

Only one parameter with 100% schema coverage, so the baseline is 3; however the example URL (https://petstore3.swagger.io/api/v3/pet/findByStatus?status=available) adds real meaning by showing that a full URL including query string is accepted, which the schema's terse 'The API endpoint URL' does not convey.

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 concrete verb+resource ('health-check an API endpoint') and then enumerates exactly what the result contains: up/down, response time min/median/max over three requests, redirect chain, security headers, x402/payment terms, and OpenAPI document discovery. The 'one call' / 'cheaper than the tools bought one by one' framing distinguishes it from narrower siblings like url_uptime and http_security_headers.

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 three concrete usage contexts: API monitoring, pre-integration due diligence, and post-deploy checks of your own service. It also implies a bundle-vs-single-tool tradeoff, but it never names a sibling or states a when-not condition, so an agent must infer when to prefer the narrow tools.

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