# FASTA Quality Validator

> FASTA Quality Validator is a paid API for AI agents from www.mahastrategies.com, paid per call via x402, $0.004001/call, status unknown (last checked 2026-10-13).

Validates FASTA records for malformed headers, duplicate identifiers, and invalid sequence characters before dataset ingestion

## Facts

- Endpoint: POST https://www.mahastrategies.com/api/v1/micro/biology-fasta-quality?utm_source=zero.xyz
- Price: $0.004001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fasta-quality-validator-587057d3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5SekUGPFFKn52jeCPrO_B

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 fasta-quality-validator-587057d3 -d '<json body>'
```

Example prompt: Check this FASTA data for malformed headers, duplicate IDs, or invalid characters before I ingest it — it's public DNA sequence data: >seq1\nATCGATCG\n>seq2\nGCTAGCTA

## When to prefer this

Choose this endpoint when you need a lightweight, programmatic pre-ingestion check on FASTA data specifically for structural and formatting correctness — malformed headers, duplicate IDs, and invalid alphabet characters. It is not a functional or safety inference tool, so use it as a data quality gate before downstream bioinformatics processing rather than for sequence annotation, alignment, or biological analysis. Prefer it over manual inspection for automated pipeline integration where a per-call audit trail (input and receipt digests) is valuable.

## Known failure modes

- FASTA string exceeds 12,000 character limit — request rejected
- Invalid alphabet enum value (must be DNA, RNA, or protein)
- Malformed JSON body or missing required fields returns an error
- Empty FASTA string (minLength 1 not met)
- Network timeout or service unavailability

## How this service works

Check supplied FASTA records for malformed headers, duplicate identifiers and invalid sequence characters before dataset ingestion. No functional or safety inference.

## Output

Returns a structured result object indicating whether the FASTA records passed validation, along with boundary markers for each parsed record, an input digest for traceability, and a receipt digest for payment verification. Specific issues such as malformed headers, duplicate identifiers, or invalid sequence characters are reported in the result object.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "dataClass",
      "fasta",
      "alphabet"
     ],
     "properties": {
      "fasta": {
       "type": "string",
       "maxLength": 12000,
       "minLength": 1
      },
      "alphabet": {
       "enum": [
        "DNA",
        "RNA",
        "protein"
       ],
       "type": "string"
      },
      "dataClass": {
       "enum": [
        "public",
        "synthetic"
       ],
       "type": "string"
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "version",
      "offerId",
      "amountBaseUnits",
      "inputDigest",
      "result",
      "boundaries",
      "receiptDigest"
     ],
     "properties": {
      "result": {
       "type": "object"
      },
      "offerId": {
       "enum": [
        "biology-fasta-quality"
       ],
       "type": "string"
      },
      "version": {
       "enum": [
        "maha-microproducts/0.1"
       ],
       "type": "string"
      },
      "boundaries": {
       "type": "array",
       "maxItems": 128,
       "minItems": 0
      },
      "inputDigest": {
       "type": "string",
       "maxLength": 71
      },
      "receiptDigest": {
       "type": "string",
       "maxLength": 71
      },
      "amountBaseUnits": {
       "enum": [
        "4001"
       ],
       "type": "string"
      }
     },
     "additionalProperties": false
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fasta-quality-validator-587057d3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.mahastrategies.com](https://www.zero.xyz/host/www.mahastrategies.com/llms.txt)
