Skip to main content
Glama
LGDiMaggio

mcp-server-mcsa

by LGDiMaggio

compute_spectrum

Compute the single-sided amplitude spectrum (FFT) of a motor current signal to identify spectral peaks for fault detection in electric motors.

Instructions

Compute the single-sided amplitude spectrum (FFT) of a current signal.

Returns a spectrum_id referencing the stored spectrum, plus a compact summary with top peaks. Use spectrum_id in downstream fault-detection tools.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
signal_idNoID of a stored signal. Preferred over raw array.
signalNoTime-domain signal array. Use signal_id instead for large signals.
sampling_freq_hzNoSampling frequency in Hz. Auto-resolved when using signal_id.
n_fftNoFFT length (zero-padding). Omit for auto
max_freq_hzNoMaximum frequency to return (Hz). Omit for full range

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries full burden. It mentions returning a spectrum_id and compact summary but does not disclose whether the signal is stored permanently, computational cost, side effects, or safety (e.g., idempotent). Minimal behavioral context beyond what schema implies.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with purpose, no unnecessary words. Every sentence adds value.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description covers basic purpose and output usage but lacks guidance on when to choose this over similar sibling tools (e.g., compute_power_spectral_density) and what 'compact summary' contains. Adequate but gaps remain.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3. The description adds 'preferred over raw array' for signal_id, which adds value, but otherwise does not explain parameter meaning beyond schema descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it computes the single-sided amplitude spectrum (FFT) of a current signal, specifying the output (spectrum_id and top peaks summary). It distinguishes from siblings by focusing on current signal amplitude spectrum and downstream fault-detection use.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies use for fault detection ('Use spectrum_id in downstream fault-detection tools') and recommends signal_id over raw array, but does not explicitly contrast with sibling tools like compute_envelope_spectrum or compute_power_spectral_density.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/LGDiMaggio/mcp-motor-current-signature-analysis'

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