{"uid":"cap_5uPijKa8CcxsiiQwSyUSF","slug":"spectrometry-records-record-sequence-diff-4d48f2d3","name":"Spectrometry Records - Record Sequence Diff","description":"Separate added/removed/changed spectral points from reordering of surviving point IDs; report non-increasing axis order and mismatched units within each supplied Supplied-record analysis, not independent certification. Full contract at the free describe URL.","url":"https://www.mahastrategies.com/api/v1/compute/spectrometry-records/record-sequence-diff?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"axis":{"enum":["mass-to-charge","wavelength","wavenumber"],"type":"string"},"after":{"type":"array","maxItems":32,"minItems":0},"before":{"type":"array","maxItems":32,"minItems":0},"axisUnit":{"enum":["m/z","nanometres","inverse-centimetres"],"type":"string"},"dataClass":{"enum":["public","synthetic"],"type":"string"},"intensityUnit":{"enum":["counts","AU"],"type":"string"},"nonpersonalMetadata":{"type":"boolean","const":true}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.035176","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.035176/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.035176","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.035176","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_9KfUeT0zHBEvDzf0uDWYM","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.035176","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Diffs two ordered lists of spectral data points to separate true additions, deletions, and value changes from mere reordering, while also flagging non-increasing axis order and mismatched units.","exampleAgentPrompt":"Compare these two wavelength spectrum arrays in nanometres with AU intensity units — tell me which points were genuinely added, removed, or changed versus just reordered, and flag any non-increasing axis issues. Both datasets are synthetic and non-personal.","exampleUseCases":[{"title":"Audit mass spec export between pipeline runs","prompt":"I have before and after arrays from two mass-to-charge ratio exports — can you diff them using m/z axis units and counts intensity to separate real point additions and deletions from any reordering? Mark it as synthetic data."},{"title":"Detect spectral drift in wavenumber dataset","prompt":"Check these two wavenumber arrays in inverse-centimetres with AU intensity — I need to know what spectral points actually changed in value versus just moved positions, and whether the axis is non-increasing anywhere. Data class is synthetic."},{"title":"Validate wavelength record consistency before publication","prompt":"Before I publish these spectral records, can you compare the before and after versions using wavelength axis in nanometres and counts intensity to confirm there are no unit mismatches and to list any new, dropped, or altered points?"}],"resultDescription":"Returns a structured breakdown separating added, removed, and value-changed spectral points from pure reordering of surviving point IDs; also reports any non-increasing axis order violations and unit mismatches within the supplied records. This is a supplied-record analysis, not independent certification.","failureModes":["Array exceeds 32 items — request rejected with validation error","Invalid axis/axisUnit combination (e.g. wavelength with m/z) — may produce error or unexpected results","nonpersonalMetadata not set to true — rejected by schema validation","Mismatched or unsupported unit enums — validation error","Empty before and after arrays — returns empty diff with no changes detected"],"whenToPreferThis":"Use this endpoint when you need to rigorously distinguish real spectral data mutations (additions, deletions, value changes) from mere reordering in scientific spectrometry records, and when you also need axis-order and unit validation in a single pass. Prefer it over generic diff tools when your data uses mass-to-charge, wavelength, or wavenumber axes with specific scientific unit semantics.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-16T12:43:18.875Z","isFirstParty":false,"canonicalSlug":"spectrometry-records-record-sequence-diff-4d48f2d3"}