{"uid":"cap_kAbsOiL837WGYlSZrAjSH","slug":"genomic-records-schema-directionality-comparison-626dd303","name":"Genomic Records - Schema Directionality Comparison","description":"Compare closed export-field Supplied-record analysis, not independent certification. Full contract at the free describe URL.","url":"https://www.mahastrategies.com/api/v1/compute/genomic-records/schema-directionality?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"after":{"type":"array","maxItems":32,"minItems":0},"before":{"type":"array","maxItems":32,"minItems":1},"dataClass":{"enum":["public","synthetic"],"type":"string"},"nonpersonalMetadata":{"type":"boolean","const":true},"consumerAllowsExtraFields":{"type":"boolean"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.035151","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.035151/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.035151","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.035151","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ee73KHeF9SPd5YvQbIDuv","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.035151","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compares schema directionality fields in genomic record exports, identifying mismatches between before and after field sets for public or synthetic data classes.","exampleAgentPrompt":"Compare the schema directionality for a genomic records export — before fields are ['gene_id','chromosome','position'] and after fields are ['gene_id','strand','locus'], using the synthetic data class and marking it as nonpersonal metadata only.","exampleUseCases":[{"title":"Genomic export schema migration check","prompt":"I updated our genomic records export schema and want to verify the directionality is consistent — before fields were ['sample_id','gene','allele'] and after fields are ['sample_id','gene','strand','allele_freq']. Can you compare them using the public data class with nonpersonal metadata?"},{"title":"Synthetic genomic data pipeline validation","prompt":"Before we push our synthetic genomic dataset to production, compare the before fields ['chr','pos','ref'] and after fields ['chr','pos','ref','alt'] for schema directionality — use the synthetic data class and flag nonpersonal metadata."},{"title":"Genomic schema field narrowing audit","prompt":"We need to audit whether our genomic record export narrowed its field set correctly — compare before fields ['patient_code','locus','depth','coverage'] to after fields ['locus','depth'] using the public data class, nonpersonal metadata only, and allow extra fields on the consumer side."}],"resultDescription":"Returns a directionality comparison report indicating how the 'before' and 'after' genomic record field sets relate to each other — including matched fields, added fields, removed fields, and any schema direction mismatches. The result is analytical and non-certifying, reflecting a closed export-field comparison rather than independent certification.","failureModes":["before array is empty or missing (minItems:1 required for before)","after array exceeds 32 items (maxItems:32)","dataClass is not one of 'public' or 'synthetic'","nonpersonalMetadata is not exactly true (const:true required)","Malformed input arrays cause schema validation failure","Service unavailable or x402 payment not resolved"],"whenToPreferThis":"Use this endpoint when you need to programmatically compare the directionality of schema field sets in genomic record exports — specifically when validating before/after field changes for public or synthetic (non-personal) genomic data. Prefer this over general schema diff tools when the domain is genomics and compliance with nonpersonal metadata constraints is required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:48:31.541Z","isFirstParty":false,"canonicalSlug":"genomic-records-schema-directionality-comparison-626dd303"}