Skip to main content
Glama

flightmortem Drone Blackbox & Crash Forensics Oracle (MCP)

fm_fft_spectrum

Read-onlyIdempotent

Metered ($0.010) Cooley-Tukey Welch Hann-windowed gyro/accel PSD analyzer returning parabolic sub-bin peaks, SNR, harmonic combs, and biquad notch/LPF filter targets.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "fm_fft_spectrum"
  }
}

Input Schema

NameRequiredDescriptionDefault
sensorNoTarget IMU sensor stream (defaults to gyro).
firmwareNoFirmware hint when supplying structured JSON telemetry.
log_indexNo0-based session index for multi-log Betaflight .bbl files.
max_peaksNoMaximum spectral peaks returned per axis.
telemetryNoNormalized JSON telemetry alternative to log_base64 ({ sample_rate_hz?, imu?, attitude?, motors?, battery?, vibe?, ekf?, events? }).
log_base64NoBase64-encoded ArduPilot .bin, PX4 .ulog, or Betaflight/INAV .bbl flight log (<= 1,572,864 decoded bytes over MCP).
log_formatNoBinary format hint (defaults to auto magic-byte detection).
parametersNoOptional parameter overrides merged over parsed flight log parameters.
window_sizeNoPower-of-2 Welch FFT window length.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the bar is lower; the description still adds real value by disclosing the metered cost ($0.010) and previewing the analysis pipeline. It stops short of noting runtime, failure modes, or when an analysis is not worth paying for.

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

Conciseness4/5

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

A single front-loaded sentence with no filler; cost and method come first, outputs trail. It is dense with hyphenated jargon, which slightly hurts scannability, but every clause carries information.

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

Completeness4/5

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

For a nine-parameter, no-output-schema tool, the description usefully summarizes the return payload and flags the metered cost. What remains thin is input-mode selection (raw log vs structured telemetry) and any precondition on log size, though both are partially handled in the schema itself.

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 description coverage is 100%, so all nine parameters and their enums are already documented. The description only echoes 'gyro/accel' and the Hann windowing concept, adding no format, default, or interaction guidance (e.g. telemetry vs log_base64 precedence) beyond the schema.

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?

States a specific resource (gyro/accel PSD) with the concrete method (Cooley-Tukey Welch, Hann window) and enumerates the outputs (sub-bin peaks, SNR, harmonic combs, notch/LPF targets). This is clearly distinguishable from sibling tools like fm_inspect_log or fm_compare_flights, which do not compute spectra.

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?

Usage is implied rather than stated: 'filter targets' and 'notch/LPF' signal filter-tuning work, but the description never says when to choose this over fm_inspect_log or fm_crash_diagnose, nor any exclusions. An agent must infer the workflow from the vocabulary.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.