get_signal_info
Retrieve metadata for a stored signal without loading the full array. Includes source metadata, sampling rate, unit, shape, and timestamps.
Instructions
Get metadata for a stored signal without loading the full array.
Includes the COMPLETE companion-metadata dict (source_metadata: rpm/
shaft_speed, reference frequencies, ...) alongside the repository
fields (sampling_rate, declared signal_unit, shape, timestamps).
Args:
ctx: MCP context.
signal_id: ID of a signal previously loaded via load_signal.
Returns:
StoredSignalInfo with source_metadata populated from the companion
_metadata.json (empty dict when the file has none).
Raises:
ValueError: If the signal_id is not in the repository.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| signal_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| shape | Yes | Shape of the signal array | |
| filepath | Yes | Original file path | |
| signal_id | Yes | Unique identifier for the stored signal | |
| duration_s | No | Duration in seconds | |
| size_bytes | Yes | Approximate memory size in bytes | |
| num_samples | Yes | Number of samples | |
| signal_unit | No | DECLARED signal unit — from load_signal(signal_unit=...) or the companion _metadata.json ('signal_unit' field). Never guessed. None means undeclared: ISO severity verdicts will be refused until the unit is declared. | |
| sampling_rate | No | Sampling rate in Hz (must be positive when set) | |
| load_timestamp | Yes | ISO 8601 timestamp when signal was loaded | |
| source_metadata | No | Complete companion _metadata.json of the source file (rpm/shaft_speed, reference frequencies, ...). Empty when the file has no companion metadata. |