{"uid":"cap_TSWmTvTGpdD1wyAUE1Vb2","slug":"microbiome-diversity-calculator-b1c4adc3","name":"Microbiome Diversity Calculator","description":"Normalizes non-negative caller-supplied taxon counts and computes observed richness, natural-log Shannon entropy, Simpson diversity and Pielou evenness. It does not perform sequence classification, compositional correction, rarefaction, cohort comparison or medical interpretation.","url":"https://bio.halowerk.com/v1/microbiome-diversity","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"taxa":{"type":"array","items":{"type":"object","required":["taxon","count"],"properties":{"count":{"type":"number","maximum":1000000000000000,"minimum":0},"taxon":{"type":"string","maxLength":256,"minLength":1}},"additionalProperties":false},"maxItems":10000,"minItems":1}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_1S-upnfUkJEysJ2vhC01F","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Normalizes taxon counts and computes observed richness, Shannon entropy, Simpson diversity, and Pielou evenness from caller-supplied species count data","exampleAgentPrompt":"Calculate the microbiome diversity metrics for my sample — I have taxon counts for Bacteroides (4200), Firmicutes (3100), Proteobacteria (850), Actinobacteria (430), and Verrucomicrobia (120). Give me the observed richness, Shannon entropy, Simpson diversity, and Pielou evenness.","exampleUseCases":[{"title":"Gut microbiome alpha diversity analysis","prompt":"I have OTU count data from a gut microbiome sample: Lactobacillus 5800, Bifidobacterium 3200, Bacteroides 2100, Clostridium 900, Akkermansia 400, Faecalibacterium 300. Can you calculate the observed richness, Shannon entropy, Simpson diversity, and Pielou evenness for me?"},{"title":"Soil ecology species evenness assessment","prompt":"I'm analyzing soil biodiversity and have species counts from a field sample: Pseudomonas 12000, Bacillus 8500, Arthrobacter 4300, Streptomyces 2200, Nitrospira 800, Gemmatimonadetes 150. Please compute the Shannon and Simpson diversity indices and Pielou evenness."},{"title":"Comparing fermented food microbiome richness","prompt":"I've got taxon abundance data from a fermented food sample — Lactococcus 9000, Leuconostoc 6500, Pediococcus 3200, Lactobacillus 2800, Streptococcus 500 — and I need the observed richness and all four standard alpha diversity metrics calculated."}],"resultDescription":"Returns normalized taxon proportions along with four alpha diversity metrics: observed richness (number of taxa with non-zero counts), natural-log Shannon entropy (H'), Simpson diversity index (1-D or similar), and Pielou evenness (J'). Does not include rarefaction, phylogenetic diversity, or statistical comparisons between groups.","failureModes":["Empty or missing taxa array returns validation error","Negative count values rejected (minimum is 0)","Taxon name exceeding 256 characters fails schema validation","Array exceeding 10,000 taxa returns size limit error","All taxa with zero counts may produce undefined evenness (division by zero edge case)","Non-numeric count values cause type validation failure"],"whenToPreferThis":"Choose this endpoint when you have raw or pre-classified taxon count vectors and need fast, deterministic computation of standard alpha diversity indices (richness, Shannon, Simpson, Pielou) without performing sequence alignment, rarefaction, or statistical group comparisons. Ideal for post-classification pipelines where diversity summary statistics are the final step.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:39:56.313Z","isFirstParty":false}