Skip to main content
Glama
Train Horn SPL MCP

Train Horn SPL MCP

a_weighting

Returns IEC 61672-1 A-weighting in decibels at one frequency to convert a tonal component toward an A-weighted level. Use it for frequency-specific adjustment; a full dB(A) level needs a spectrum.

Instructions

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

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": {
      "frequency_hz": "<frequency_hz>"
    },
    "name": "a_weighting"
  }
}

Input Schema

NameRequiredDescriptionDefault
frequency_hzYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/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 full burden and does useful work: it discloses that this is a point computation returning a value in decibels, cites the governing standard, and warns about the scope limit (not a complete dB(A) calculation). It does not need to explain return shape because an output schema exists, though it says nothing about edge behavior near 0 Hz beyond the constraint.

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

Conciseness5/5

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

Front-loads the operation in the first sentence, then adds one scoping caution and a compact Args line. Every sentence carries information an agent can act on; nothing is redundant.

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

Completeness5/5

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

For a one-parameter pure computation with an output schema, the description covers what is computed, the standard, the input constraint, and the interpretation limits. An agent has everything needed to call it correctly and to know when not to.

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 0%, so the description must compensate; it adds the meaningful constraint "must be > 0" that the schema does not encode as a minimum. Units are only implied by the parameter name "frequency_hz" and the Args block, so the semantic gain is real but modest for a single-parameter tool.

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 verb and resource ("Return the IEC 61672-1 A-weighting in decibels at one frequency") with the exact standard cited, so the computation is unambiguous. The sibling tools (distance_for_target_spl, spl_at_distance) operate on distance/SPL geometry, so this tool's single-frequency weighting role is clearly separable.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit when-to-use ("converting a tonal component toward an A-weighted level") and an explicit when-not ("A broadband train horn still needs a spectrum; this is not a complete dB(A) calculation by itself"). It does not name a specific alternative tool for the broadband case, which keeps it short of a 5, but the exclusion is stated plainly.

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