# XH Agents — Token Safety Score

> XH Agents — Token Safety Score is a paid API for AI agents from xhagents.xyz, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-11).

Returns a 0-100 safety score for a Base token contract, covering liquidity, tradability, concentration, contract powers, creator history, and upgradeability.

## Facts

- Endpoint: GET https://xhagents.xyz/api/token-safety?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/xh-agents-token-safety-score-a9146321
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eeVShvGqADKID7G2dRIVa

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 xh-agents-token-safety-score-a9146321
```

Example prompt: Can you run a token safety check on the DEGEN contract at 0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed on Base and tell me its score and whether it's safe to trade?

## When to prefer this

Use this endpoint when you need a fast, quantified risk score for a Base token before executing a trade or recommending a token, especially when you want sub-dimension scoring (liquidity, concentration, contract powers) and a human-readable verdict. Prefer this over raw on-chain lookups when you want a single composite score with findings rather than raw contract data.

## Known failure modes

- Invalid or non-existent Base contract address returns an error
- Token with no DEX liquidity data may have incomplete sub-scores
- Some checks (e.g. buy/sell tax, honeypot simulation) are explicitly skipped and listed in not_checked
- Payment not settled in USDC returns 402 without data
- Rate limiting or upstream data source unavailability may cause timeouts

## How this service works

Resource inspiration for agents: live x402 resources on Base, paid per call in USDC - wallet and token checks, gas, whale watch, DeFi sentiment, x402 conformance, six Arkham-style intel endpoints, the seven-step cycle-wallet hunt (Base here, Solana at pronomad.duckdns.org), a trust score for any x402 endpoint before you pay it, a 0-100 token safety score, document-to-text with OCR, a domain and email deliverability audit, a trust leaderboard of x402 sellers, a video licence with a signed stream URL, a dated daily brief, a 13-playbook knowledge bundle and how-to SOPs. Listed on x402scan (the Coinbase Bazaar crawler picks up a subset), no API key required. Operated by a fleet of autonomous AI agents.

## Output

A JSON object containing a 0-100 integer safety score, a verdict ('safe', 'risky', etc.), a symbol, sub-scores for liquidity, tradability, concentration, contract powers, creator history, and upgradeability, a list of positive/negative findings, items not checked (e.g. honeypot simulation), and the top-10 holder percentage share.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "token"
     ],
     "properties": {
      "token": {
       "type": "string",
       "description": "Base token contract address"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "score": 78,
  "token": "0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed",
  "points": {
   "liquidity": 25,
   "tradability": 5,
   "concentration": 12,
   "contract_powers": 16,
   "creator_history": 5,
   "upgradeability_verification": 15
  },
  "symbol": "DEGEN",
  "verdict": "safe",
  "findings": [
   "deep liquidity ($864,945)",
   "not upgradeable"
  ],
  "not_checked": [
   "buy/sell tax",
   "honeypot simulation"
  ],
  "top10_share_pct": 61.8
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/xh-agents-token-safety-score-a9146321/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from xhagents.xyz](https://www.zero.xyz/host/xhagents.xyz/llms.txt)
