Skip to main content
Glama
Train Horn SPL MCP

Train Horn SPL MCP

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server estimates free-field sound-pressure level for a point source such as a portable train horn, using inverse-square spreading and, when a frequency is supplied, ISO 9613-1 atmospheric absorption.

Tools:

  • spl_at_distance: SPL at a target distance, given a level at a reference distance.

  • distance_for_target_spl: distance at which the estimated SPL equals a target.

  • a_weighting: IEC 61672-1 A-weighting in dB at one frequency.

Caveats are included in every tool result. The tools are not a substitute for a calibrated sound level meter. Absorption is omitted when frequency_hz is left unset.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
spl_at_distanceA

Estimate free-field SPL at a target distance.

Starts from a sound-pressure level already measured or specified at
ref_distance_m and applies inverse-square spreading (20 * log10 of the
distance ratio). If frequency_hz is set, also applies ISO 9613-1
atmospheric absorption over the path difference.

Args:
    source_spl_db: Free-field sound-pressure level at the reference
        distance, in decibels.
    ref_distance_m: Distance at which source_spl_db applies, in metres.
    target_distance_m: Distance at which to estimate the level, in metres.
    frequency_hz: Pure-tone frequency for ISO 9613-1 absorption. Leave
        unset to apply spreading only.
    temperature_c: Air temperature in degrees Celsius (default 20).
    humidity_pct: Relative humidity in percent (default 70).
    pressure_kpa: Atmospheric pressure in kilopascals (default 101.325).
distance_for_target_splA

Estimate the free-field distance at which SPL equals a target level.

Solves the inverse of spl_at_distance numerically. Same model and caveats:
inverse-square spreading, plus ISO 9613-1 absorption when frequency_hz is
set.

Args:
    source_spl_db: Free-field sound-pressure level at the reference
        distance, in decibels.
    ref_distance_m: Distance at which source_spl_db applies, in metres.
    target_spl_db: Desired sound-pressure level, in decibels.
    frequency_hz: Pure-tone frequency for ISO 9613-1 absorption. Leave
        unset to apply spreading only.
    temperature_c: Air temperature in degrees Celsius (default 20).
    humidity_pct: Relative humidity in percent (default 70).
    pressure_kpa: Atmospheric pressure in kilopascals (default 101.325).
a_weightingA

Return the IEC 61672-1 A-weighting in decibels at one frequency.

Useful when converting a tonal component toward an A-weighted level.
A broadband train horn still needs a spectrum; this is not a complete
dB(A) calculation by itself.

Args:
    frequency_hz: Frequency in hertz (must be > 0).

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4/5.0

Scored across 3 tools

Disambiguation5/5

Each tool targets a distinct operation: forward propagation (spl_at_distance), the numerical inverse (distance_for_target_spl), and a frequency-domain weighting helper (a_weighting). The argument signatures differ clearly (target_distance_m vs target_spl_db), so an agent can pick correctly without reading the bodies.

Naming Consistency4/5

All three names are snake_case and follow a consistent 'quantity or model being returned' convention rather than verb_noun (spl_at_distance, distance_for_target_spl, a_weighting). This is predictable and readable, but the lack of a verb prefix makes it slightly less self-documenting than an ideal pattern.

Tool Count4/5

Three tools is small but well-matched to a narrowly scoped acoustic calculator: forward model, inverse model, and a weighting utility. Every tool earns its place, with no filler or redundancy.

Completeness3/5

The core forward/inverse propagation pair is covered, but the domain surface is incomplete: there is no way to apply A-weighting across a spectrum or to chain weighting with propagation in one call, and the tool description itself admits a_weighting is not a complete dB(A) calculation. Ground reflection, barriers, and multi-band train-horn spectra are also unaddressed.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues