API & MCP
Everything a person can do on FFT Spectrum Calculator for Numeric Data, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://prooflinefftspectrum.usefulweb.site/api/v1/calculate– run FFT Spectrum Calculator for Numeric DataGET https://prooflinefftspectrum.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
FFT Spectrum Calculator for Numeric Data
Computes the discrete Fourier transform of numeric samples of any length (exact, no truncation) and shows the single-sided amplitude and phase spectrum with a proper frequency axis, the strongest peaks with interpolated frequencies, a plot of the signal and the spectrum, and a CSV of every bin. Windows: rectangular, Hann or Hamming; optional mean removal and zero padding. For audio files use the Soundscape spectrum analyzer; this tool takes numbers. Part of the Proofline math notebook.
| Field | Type | Default | Description |
|---|---|---|---|
samples (required) | textarea | — | Samples. One value per line (or separated by spaces/commas), or two columns time, value with equal time steps (the sample rate then follows from the time column). At most 16384 samples. |
sampleRate | number | 1 | Sample rate. Samples per second (or per unit of your x axis). Frequencies are reported in the same unit. |
window | select (hann, hamming, rectangular) | "hann" | Window |
removeMean | boolean | true | Remove the mean (DC) first |
zeroPad | boolean | false | Zero-pad to the next power of two. Interpolates the spectrum on a finer grid; does not add real resolution. |
peaks | integer | 5 | Peaks to list |
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://prooflinefftspectrum.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
proofline_fft_spectrum - Local stdio connector:
node src/mcp-stdio.ts --tool=proofline-fft-spectrum
{
"mcpServers": {
"proofline-fft-spectrum": { "type": "http", "url": "https://prooflinefftspectrum.usefulweb.site/mcp" }
}
}