Skip to main content
Glama
ethan-hub26

embedcalc-mcp

by ethan-hub26

LIN Bus Timing Calculator

embedcalc_lin_timing
Read-onlyIdempotent

Calculate LIN bus timing parameters: bit time, break field duration, and worst-case frame time from baud rate and data bytes.

Instructions

LIN bus timing: bit time, break field duration (13 bits), and worst-case frame time per LIN 2.x nominal (header 34 + response 10*(n+1) bits with 1.4x budget = (43+10n)/baud). Args: baud (typ. 9600/19200), data_bytes (1-8). Returns (structured): { bit_time_us, break_time_us, frame_time_us }. Example: 19200 baud, 8 bytes -> bit 52.08 µs, break 677 µs, frame 6406 µs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
baudNoLIN baud rate (max 20 kbit/s)
data_bytesNoResponse data bytes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
bit_time_usYes
break_time_usYes
frame_time_usYes
Behavior4/5

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

Annotations already indicate read-only, idempotent, non-destructive behavior. Description adds the specific output fields (bit_time_us, break_time_us, frame_time_us) and the calculation formula, enhancing transparency beyond 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?

Four sentences efficiently cover purpose, formula, arguments, return structure, and an example. No unnecessary text; every sentence adds value.

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 simple two-parameter calculator, the description fully explains inputs, outputs, formula, and example. Output schema existence is reported, but description already covers return fields. No gaps.

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 covers both parameters with descriptions. Description adds typical values (9600/19200 baud, 1-8 bytes) and an example, providing useful context beyond the schema.

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 it calculates LIN bus timing parameters (bit time, break duration, frame time) and provides the formula. It is distinct from sibling tools which cover other protocols like CAN, I2C, SPI, etc.

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 implies usage for LIN bus timing calculations, with typical baud rates and data bytes given. It does not explicitly exclude other contexts but the sibling diversity provides clear separation.

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