# Ruby Gem Health Check

> Ruby Gem Health Check is a paid API for AI agents from package-registries.x402tookit.com, paid per call via x402, $0.03/call, status unknown (last checked 2026-10-29).

Returns health metadata for a Ruby gem on RubyGems, including latest release age, download counts, license, version counts, and owner information.

## Facts

- Endpoint: GET https://package-registries.x402tookit.com/gem-health?utm_source=zero.xyz
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ruby-gem-health-check-0a31d2a4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_j5fWhwd2VJvnErAJ1C7UH

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability ruby-gem-health-check-0a31d2a4
```

Example prompt: Can you check the health of the 'devise' Ruby gem on RubyGems — I want to know if it's still actively maintained, what the latest version is, how old the last release is, and what license it uses?

## When to prefer this

Use this endpoint when you need health and metadata specifically for Ruby gems hosted on RubyGems.org. Prefer this over general web search when you need structured, machine-readable data about gem release age, download counts, licensing, and ownership. For Go modules, Docker images, NuGet, or npm packages, use the corresponding sibling endpoints on this service.

## Known failure modes

- Gem name not found on RubyGems — returns null or empty fields
- Misspelled gem name returns no results
- RubyGems API unavailable causing degraded or incomplete response
- Rate limiting or timeout from upstream RubyGems API
- Private or unlisted gems may not be found

## How this service works

Health of a Ruby gem on RubyGems: latest release age, downloads, license, version counts, owners and links.

## Output

Returns a structured health report for the gem including: health verdict and reasons, latest version string, days since latest release, total and latest-version download counts, license(s), version count, prerelease count, owner count, authors, summary, description, homepage, source code URL, project page URL, and any checks not performed. May include a degraded flag and disclaimer text.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "name"
     ],
     "properties": {
      "name": {
       "type": "string",
       "description": "Gem name, e.g. rails"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "name": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "authors": {
       "type": [
        "null",
        "string"
       ]
      },
      "license": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "homepage": {
       "type": [
        "null",
        "string"
       ]
      },
      "licenses": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "sourceUrl": {
       "type": [
        "null",
        "string"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "ownerCount": {
       "type": [
        "null",
        "number"
       ]
      },
      "sourceCode": {
       "type": [
        "null",
        "string"
       ]
      },
      "description": {
       "type": [
        "null",
        "string"
       ]
      },
      "projectPage": {
      
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ruby-gem-health-check-0a31d2a4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from package-registries.x402tookit.com](https://www.zero.xyz/host/package-registries.x402tookit.com/llms.txt)
