Skip to main content
Glama
Train Horn SPL MCP

Train Horn SPL MCP

spl_at_distance

Estimate free-field sound-pressure level at a target distance from a known reference SPL using inverse-square spreading and optional ISO 9613-1 atmospheric absorption.

Instructions

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).

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": {
      "source_spl_db": "<source_spl_db>",
      "ref_distance_m": "<ref_distance_m>",
      "target_distance_m": "<target_distance_m>"
    },
    "name": "spl_at_distance"
  }
}

Input Schema

NameRequiredDescriptionDefault
frequency_hzNo
humidity_pctNo
pressure_kpaNo
source_spl_dbYes
temperature_cNo
ref_distance_mYes
target_distance_mYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations supplied, the description carries the transparency burden and does well: it discloses the exact computation path (20*log10 distance ratio, plus ISO 9613-1 when frequency_hz is set) and the defaults for temperature, humidity, and pressure. It does not state that the tool is a pure stateless calculation with no side effects, nor any validity limits such as ref_distance_m > 0, so a small residual gap remains.

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 method is front-loaded in the first two sentences and the Args block is scannable. Minor waste from restating schema defaults, but the total length is proportionate to a 7-parameter physics tool and nothing is buried mid-paragraph.

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 with an output schema, the description covers inputs, model, and defaults well enough to call the tool correctly. What is missing is edge-case behavior (invalid or zero reference distance, negative frequency) and confirmation that no state is modified, which matters since annotations are absent.

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 description coverage is 0%, so the Args block is doing real work: it supplies units (decibels, metres, Hz, °C, percent, kPa) and meaning that the bare schema titles ("Humidity Pct", "Source Spl Db") omit. It repeats the default values already present in the schema and does not mention constraints like nonzero distances, keeping it short of a 5.

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 verb and resource ("Estimate free-field SPL at a target distance") and even names the physical model used (inverse-square spreading plus ISO 9613-1 absorption). It is unambiguous what the tool computes, but it never contrasts itself with the sibling distance_for_target_spl, so the agent must infer that one goes SPL→distance and this one goes distance→SPL.

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?

The only genuine usage guidance is parameter-level: "Leave unset to apply spreading only" for frequency_hz. There is no statement of when to prefer this tool over distance_for_target_spl, nor prerequisites for meaningful input (e.g. nonzero reference distance). Usage is implied by the domain rather than stated.

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