Skip to main content
Glama
eecalc-mcp

eecalc-mcp

by aysel-elsh

led_series_resistor

Read-onlyIdempotent

Calculate the series resistor for one or more LEDs, round the result up to a standard E-series value, and get a suggested power rating from supply and forward voltage.

Instructions

Series resistor for an LED (or a string of LEDs). Rounds up to a standard value and suggests a power rating.

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": {
      "supply_v": "<supply_v>",
      "led_forward_v": "<led_forward_v>"
    },
    "name": "led_series_resistor"
  }
}

Input Schema

NameRequiredDescriptionDefault
seriesNoE24
supply_vYes
led_current_aNo
led_forward_vYes
leds_in_seriesNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint=false, so safety is covered. The description adds genuinely useful behavior: rounding is upward toward a standard value and the result includes a suggested power rating. It omits edge-case behavior, e.g. what happens when the total forward voltage exceeds supply_v, and gives no units guidance.

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?

Two short sentences, purpose front-loaded, no filler. It is arguably too terse rather than verbose, but nothing in it is wasted.

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

Completeness3/5

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

An output schema exists, so return values needn't be explained, and the description does flag the two notable output characteristics (standard-value rounding, power rating). Still, for a 5-parameter calculation tool with zero schema descriptions, the units and E-series semantics that determine correctness are absent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the full burden for 5 parameters, and it says nothing about them. Notably undocumented: the E-series enum controls the rounding granularity, led_current_a defaults to 0.02 A, leds_in_series multiplies the forward voltage, and whether voltage/current inputs are bare numbers in V/A or parseable strings.

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?

States a concrete resource and computation: a series resistor for an LED or LED string, with rounding to a standard value and a power-rating suggestion. That is enough to distinguish it from generic arithmetic tools like ohms_law or nearest_standard_value, though it never names those siblings explicitly.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance, and no mention of alternatives such as ohms_law or nearest_standard_value, which an agent might reasonably pick instead. Usage is only inferable from the domain.

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