Skip to main content
Glama
ethan-hub26

embedcalc-mcp

by ethan-hub26

I2S Clock Calculator

embedcalc_i2s_clocks
Read-onlyIdempotent

Calculate I2S bit clock (BCLK) and frame clock (LRCLK) frequencies from audio sample rate, bits per sample, and channel count.

Instructions

I2S bit clock (BCLK/SCK) from audio format: BCLK = Fs x bits x channels. Args: sample_rate_hz (e.g. 48000), bits_per_sample (e.g. 16/24/32), channels (default 2). Returns (structured): { bclk_hz, bclk_period_ns, lrclk_hz }. Example: 48 kHz, 24-bit, stereo -> BCLK 2.304 MHz (434.03 ns), LRCLK 48 kHz.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
channelsNoChannel count (2 = stereo)
sample_rate_hzYesSample rate Fs in Hz (44100, 48000, ...)
bits_per_sampleYesBits per sample per channel (16/24/32)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
bclk_hzYes
lrclk_hzYes
bclk_period_nsYes
Behavior4/5

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

Annotations already provide readOnlyHint, idempotentHint, and destructiveHint. The description adds value by explaining the formula and the structured return format, which is beyond what annotations convey. It does not contradict annotations.

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?

The description is concise with three sentences plus an example, front-loaded with purpose and formula. Every sentence adds value without unnecessary verbosity.

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?

Given the tool has few parameters, an output schema, and comprehensive annotations, the description covers all essential aspects: input purpose, formula, default, example output. No gaps remain.

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 coverage is 100%, and the description adds meaningful context: the formula relating parameters and an example. The default for channels is also mentioned, which the schema also specifies, but the description provides practical interpretation.

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?

The description clearly states the tool calculates I2S bit clock from audio format, including the formula and an example. It uniquely identifies the tool among siblings, which are all different calculator tools.

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?

The description provides context for when to use the tool (to calculate BCLK from audio format) but does not explicitly state when not to use it or name alternatives. However, given the sibling tools are all distinct calculators, the usage context is clear.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ethan-hub26/embedcalc-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server