Skip to main content
Glama
LGDiMaggio

mcp-server-mcsa

by LGDiMaggio

load_signal_from_file

Load a motor-current signal from CSV, WAV, or NPY files. Returns signal, sampling frequency, and metadata for further analysis like preprocess_signal or compute_spectrum.

Instructions

Load a motor-current signal from a file (CSV, WAV, or NumPy NPY).

Supports the most common formats used by industrial DAQ systems:

  • CSV/TSV/TXT: Columnar data with optional time column. The sampling frequency is inferred from the time column or must be provided explicitly.

  • WAV: Audio files from portable recorders or DAQ. Sampling frequency is read from the WAV header.

  • NPY: NumPy binary arrays. Sampling frequency must be provided.

Returns the signal, sampling frequency, number of samples, duration, and file metadata. The returned signal can then be passed to preprocess_signal, compute_spectrum, or run_full_diagnosis.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYesAbsolute path to the signal file (CSV, WAV, or NPY)
sampling_freq_hzNoSampling frequency in Hz. Required for NPY; optional for CSV if a time column exists; auto-detected for WAV
signal_columnNoCSV column containing the current signal (0-based index or header name)
time_columnNoCSV column for time (index or name). Set to null if no time column
delimiterNoCSV delimiter. Auto-detected if null (comma for .csv, tab for .tsv/.txt)
channelNoWAV channel index (0-based) for multi-channel files
skip_headerNoNumber of CSV header rows to skip
max_rowsNoMax data rows to read from CSV (null = all)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

With no annotations, the description fully discloses behavior: how sampling frequency is determined per format (inferred, auto-detected, required), supported file types, and the exact return values (signal, frequency, samples, duration, metadata). No contradictions.

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?

The description is concise: one sentence for the main purpose, then bullet points for format-specific details, and a closing sentence on return values and downstream use. No fluff, all sentences add value.

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

Completeness5/5

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

Given 8 parameters (1 required), output schema exists, and no annotations, the description covers all needed information: file formats, parameter usage per format, return values, and integration with other tools. Complete for a loading tool.

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

Parameters4/5

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

Schema coverage is 100% with detailed descriptions. The description adds format-specific context (e.g., CSV time column, WAV channel, NPY frequency requirement) that groups parameters logically, providing extra clarity beyond the schema alone.

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 the tool loads a motor-current signal from CSV, WAV, or NPY files. It distinguishes itself by mentioning downstream tools (preprocess_signal, compute_spectrum, run_full_diagnosis), showing its role in a pipeline. This differentiates it from siblings like inspect_signal_file.

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

Usage Guidelines4/5

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

The description explains when each format is appropriate and when sampling frequency is required (e.g., for NPY it must be provided). It implicitly guides usage via format-specific details but does not explicitly state when not to use this tool (e.g., for metadata-only tasks use inspect_signal_file). Still, context is clear for most scenarios.

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