# Effective Health Calculator

> Effective Health Calculator is a paid API for AI agents from market.datapackvibe.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-30).

Calculates effective HP (the true survivability metric) by applying a damage reduction percentage to a base health value.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/effective-health-calculator?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/effective-health-calculator-304e7fbd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_735fcH3iFOd4Cx3XvVgRr

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 effective-health-calculator-304e7fbd -d '<json body>'
```

Example prompt: What's the effective HP for a character with 200 base health and 35% damage reduction?

## When to prefer this

Choose this endpoint when you need a quick, stateless computation of effective HP from health and damage reduction for game design, balance testing, or character comparison — it's purpose-built for this formula and requires no setup or context beyond two numeric inputs.

## Known failure modes

- Missing or non-numeric health value returns a validation error
- Reduction value outside 0–1 range (e.g. greater than 1 or negative) may produce nonsensical results
- Malformed JSON body returns a 400 or 422 error
- Payment failure or insufficient USDC balance returns a 402 error

## How this service works

Effective health calculator: Calculate effective HP from base health and damage reduction.

## Output

Returns the effective HP value computed from the base health and damage reduction inputs, representing how much raw damage a character can absorb before dying — a standard game-mechanics survivability metric.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "health": {
   "type": "number",
   "default": 100
  },
  "reduction": {
   "type": "number",
   "default": 0.25
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/effective-health-calculator-304e7fbd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market.datapackvibe.com](https://www.zero.xyz/host/market.datapackvibe.com/llms.txt)
