# Lead Stage Top-k Label Coverage Calculator

> Lead Stage Top-k Label Coverage 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-10-15).

Computes top-k label coverage metrics for a naive-Bayes classifier over the four lead pipeline stages (enquiry, qualified, negotiation, closed)

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-sector-ml-lead-stage-top-k?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/lead-stage-top-k-label-coverage-calculator-03fe186a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KOXqi-rMa8szFT48LJEXx

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 lead-stage-top-k-label-coverage-calculator-03fe186a -d '<json body>'
```

Example prompt: Evaluate my lead stage classifier using top-2 label coverage — I have 12 labelled records with actual and predicted labels of enquiry, qualified, negotiation, or closed, and 4-element probability arrays for each; send them all through and tell me the coverage score.

## When to prefer this

Choose this endpoint when you need a quick, low-cost ($0.01) top-k label coverage evaluation specifically for the four-class lead pipeline stages (enquiry, qualified, negotiation, closed) using local naive-Bayes baselines without requiring a hosted or foundation model. Ideal for small datasets up to 200 records. Prefer this over generic ML evaluation APIs when your classification task maps exactly to the CRM lead stage taxonomy.

## Known failure modes

- Records array exceeds 200-item limit — request rejected
- Probability array does not contain exactly 4 elements — validation error
- k value outside 1–4 range — schema validation failure
- Probability values outside [0,1] — invalid input error
- Record ID exceeds 80 character limit — field validation error
- Empty records array — computation returns no result

## How this service works

Lead stage - Top-k label coverage: Top-k label coverage for Lead stage. Up to 200 supplied labelled text records. Local dataset tools, evaluation and small naive-Bayes baselines; no hosted model or foundation-model training. One of 25 profiles or calculations across 20 shared operations in this sector. 0.01 USDC includes one bounded top-k label coverage deliverable.

## Output

Returns a top-k label coverage metric indicating the fraction of supplied labelled records where the true label (enquiry, qualified, negotiation, or closed) appears among the top k highest-probability predictions. May include per-label breakdown of coverage rates.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "k": {
   "type": "integer",
   "default": 2,
   "maximum": 4,
   "minimum": 1
  },
  "records": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "id",
     "text",
     "actual",
     "predicted",
     "probabilities"
    ],
    "properties": {
     "id": {
      "type": "string",
      "default": "",
      "maxLength": 80,
      "minLength": 1
     },
     "text": {
      "type": "string",
      "default": "",
      "maxLength": 1000
     },
     "actual": {
      "enum": [
       "enquiry",
       "qualified",
       "negotiation",
       "closed"
      ],
      "type": "string"
     },
     "predicted": {
      "enum": [
       "enquiry",
       "qualified",
       "negotiation",
       "closed"
      ],
      "type": "string"
     },
     "probabilities": {
      "type": "array",
      "items": {
       "type": "number",
       "default": 0,
       "maximum": 1,
       "minimum": 0
      },
      "default": [],
      "maxItems": 4,
      "minItems": 4
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "id": "example-0-0",
     "text": "enquiry sample document number 0 for this supplied dataset.",
     "actual": "enquiry",
     "predicted": "enquiry",
     "probabilities": [
      0.8,
      0.06666666666666667,
      0.06666666666666667,
      0.06666666666666667
     ]
    },
    {
     "id": "example-0-1",
     "text": "enquiry sample document number 1 for this supplied dataset.",
     "actual": "enquiry",
     "predicted": "enquiry",
     "probabilities": [
      0.8,
      0.06666666666666667,
      0.06666666666666667,
      0.06666666666666667
     ]
    },
    {
     "id": "example-0-2",
     "text": "enquiry sample document number 2 for this supplied dataset.",
     "actual": "enquiry",
     "predicted": "enquiry",
     "probabilities": [
      0.8,
      0.06666666666666667,
      0.06666666666666667,
      0.06666666666666667
     ]
    },
    {
     "id": "example-1-0",
     "text": "qualified sample document number 0 for this supplied dataset.",
     "actual": "qualified",
     "predicted": "qualified",
     "probabilities": [
      0.06666666666666667,
      0.8,
      0.06666666666666667,
      0.06666666666666667
     ]
    },
    {
     "id": "example-1-1",
     "text": "qualified sample document number 1 for this supplied dataset.",
     "actual": "qualified",
     "predicted": "qualified",
     "probabilities": [
      0.066666666666
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/lead-stage-top-k-label-coverage-calculator-03fe186a/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)
