Skip to main content
Glama

compute_fft

Perform frequency domain analysis on oscilloscope signals using Fast Fourier Transform to identify frequency components and spectral characteristics.

Instructions

Compute FFT (Fast Fourier Transform) for frequency domain analysis.

Args: channel: Channel to analyze. window: Window function to apply.

Returns: Dictionary containing frequency bins and magnitude spectrum.

Input Schema

NameRequiredDescriptionDefault
channelYes
windowNohann

Input Schema (JSON Schema)

{ "properties": { "channel": { "enum": [ "A", "B", "C", "D" ], "type": "string" }, "window": { "default": "hann", "enum": [ "hann", "hamming", "blackman", "rectangular" ], "type": "string" } }, "required": [ "channel" ], "type": "object" }

Implementation Reference

  • The compute_fft tool handler: decorated with @mcp.tool(), includes input schema via type hints (channel and window parameters), docstring describing args/returns, and stub implementation logic.
    @mcp.tool() def compute_fft( channel: Literal["A", "B", "C", "D"], window: Literal["hann", "hamming", "blackman", "rectangular"] = "hann", ) -> dict[str, Any]: """Compute FFT (Fast Fourier Transform) for frequency domain analysis. Args: channel: Channel to analyze. window: Window function to apply. Returns: Dictionary containing frequency bins and magnitude spectrum. """ # TODO: Implement FFT computation return {"status": "not_implemented", "channel": channel, "window": window}
  • Top-level registration of tool groups in the MCP server, including the analysis tools (register_analysis_tools) that registers compute_fft.
    # Register all tool categories register_discovery_tools(mcp) register_configuration_tools(mcp) register_acquisition_tools(mcp) register_analysis_tools(mcp) register_advanced_tools(mcp)
  • Function that defines and registers all analysis tools, including compute_fft via decorators inside it.
    def register_analysis_tools(mcp: Any) -> None: """Register signal analysis tools with the MCP server."""

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/markuskreitzer/picoscope_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server