Skip to main content
Glama
eng-toolkit

eng-toolkit

by Lin830326

Dsp Window

dsp_window

Compute window samples and spectral properties such as coherent gain, equivalent noise bandwidth, scalloping loss, side-lobe level, and 3 dB bandwidth for spectrum analysis or filter design.

Instructions

Window function and its properties: coherent gain, equivalent noise bandwidth (bins), scalloping loss, highest side-lobe level and 3 dB bandwidth, computed numerically (zero-padded FFT refined by the exact DTFT) and compared with the textbook closed values for rectangular, hann, hamming, blackman and flattop. Also kaiser (give kaiser_beta). Returns the window samples and its magnitude response near the main lobe as CSV. periodic=true is the form used in spectrum analysis, false the symmetric form for filter design.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "window": "<window>"
    },
    "name": "dsp_window"
  }
}

Input Schema

NameRequiredDescriptionDefault
lengthNoNumber of samples, 8..65536
windowYesrectangular, hann, hamming, blackman, flattop or kaiser
periodicNoPeriodic (DFT-even, spectrum analysis; default true) or symmetric (filter design) form
kaiser_betaNoKaiser only: beta, 0..50

Output Schema

NameRequiredDescriptionDefault
okYes
dataNoNon-quantity payload (reports, listings)
errorNo
valueNoPrimary quantity result
valuesNoAll named quantity results (includes the primary)
warningsNo
artifactsNo
provenanceYesWhat produced the result and from which inputs.
review_statusNounreviewed

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.1

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it discloses the numerical method (zero-padded FFT refined by the exact DTFT), that results are compared against closed-form textbook values, and the return shape (window samples plus main-lobe magnitude response as CSV). It does not mention error behavior for an invalid window name or out-of-range length, which is the main remaining gap for a pure computation tool.

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?

The purpose and computed metrics are front-loaded, and the sentences are dense but each carries real information. The single long run-on opening sentence and the trailing periodic/kaiser notes are slightly packed, but nothing is genuinely wasteful.

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 deterministic computation tool with an output schema and full schema coverage, the description supplies enough: method, metrics, window families, and the meaning of the key boolean. Only error/edge-case behavior for invalid window or length values is left unstated.

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 all four parameters are already documented in the schema, including the periodic spectrum-analysis vs filter-design distinction and the kaiser_beta range. The description largely restates those meanings rather than adding syntax or format details beyond the schema, so the baseline 3 applies.

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

Purpose4/5

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

The description names a specific resource (window function properties: coherent gain, ENBW, scalloping loss, side-lobe level, 3 dB bandwidth) and states how they are computed and validated against textbook values. It is clearly distinguishable from siblings like dsp_spectrum or dsp_filter_design, though it never names an alternative to contrast against.

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?

Guidance is present but oriented toward parameter choice rather than tool selection: periodic=true for spectrum analysis, false for filter design, and 'give kaiser_beta' for the kaiser window. There is no explicit statement of when to reach for this tool instead of dsp_spectrum or dsp_filter_design, so the usage context is implied rather than spelled out.

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

Deploy Server

Other Tools