Skip to main content
Glama

Run an electronics calculator

calculate
Read-only

Electronics calculators with exact answers: LED resistor value, resistor color code, 555 timer frequency, voltage divider output, Ohm's law, series and parallel resistor totals, RC time constant, RC filter cutoff, transistor base resistor, capacitor code, PCB trace width and battery life. Returns the answer, the working, and a link that opens the matching circuit running live. Values may use SI prefixes ("4.7k", "100n", "15m"); inputs left out take example values, listed in the answer. Free and instant, with no daily limit.

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": {
      "calculator": "<calculator>"
    },
    "name": "calculate"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputsNoThe calculator's inputs by name, such as { "supplyV": "9", "ledV": "2", "currentA": "15m" } for led-resistor. Inputs by calculator: resistor-color-code (d1, d2, d3, exponent, tolerance); led-resistor (supplyV, ledV, currentA); voltage-divider (vin, r1, r2); rc-time-constant (ohms, farads, supplyV); ohms-law (volts, ohms); series-parallel-resistor (arrangement, r1, r2, r3, r4, supplyV); transistor-base-resistor (loadV, loadA, controlV, hfe, overdrive); 555-timer (r1, r2, farads, supplyV); pcb-trace-width (amps, riseC, oz, layer, lengthMm, supplyV); battery-life (capacityMah, activeMa, usablePct, volts, activePct, sleepMa); rc-filter (ohms, farads, hz); capacitor-code (code, tolerance). Band colors may be color names ("yellow"), d3 may be "none" on a 4-band resistor, and arrangement may be "series" or "parallel".
calculatorYesWhich calculator, such as "led-resistor", "resistor-color-code" or "555-timer".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / calculator / description
      Added value: +"Which calculator, such as \"led-resistor\", \"resistor-color-code\" or \"555-timer\"."
    • changedInput schema / properties / inputs / description
      Previous value: -"The calculator's inputs by name, such as { \"supplyV\": \"9\", \"ledV\": \"2\", \"currentA\": \"15m\" }."New value: +"The calculator's inputs by name, such as { \"supplyV\": \"9\", \"ledV\": \"2\", \"currentA\": \"15m\" } for led-resistor. Inputs by calculator: resistor-color-code (d1, d2, d3, exponent, tolerance); led-resistor (supplyV, ledV, currentA); voltage-divider (vin, r1, r2); rc-time-constant (ohms, farads, supplyV); ohms-law (volts, ohms); series-parallel-resistor (arrangement, r1, r2, r3, r4, supplyV); transistor-base-resistor (loadV, loadA, controlV, hfe, overdrive); 555-timer (r1, r2, farads, supplyV); pcb-trace-width (amps, riseC, oz, layer, lengthMm, supplyV); battery-life (capacityMah, activeMa, usablePct, volts, activePct, sleepMa); rc-filter (ohms, farads, hz); capacitor-code (code, tolerance). Band colors may be color names (\"yellow\"), d3 may be \"none\" on a 4-band resistor, and arrangement may be \"series\" or \"parallel\"."
  2. Changed1 schema field changed
    • changedInput schema / properties / calculator / enum
      Previous value: -[
      -  "resistor-color-code",
      -  "led-resistor",
      -  "voltage-divider",
      -  "rc-time-constant",
      -  "ohms-law",
      -  "series-parallel-resistor",
      -  "transistor-base-resistor",
      -  "555-timer"
      -]New value: +[
      +  "resistor-color-code",
      +  "led-resistor",
      +  "voltage-divider",
      +  "rc-time-constant",
      +  "ohms-law",
      +  "series-parallel-resistor",
      +  "transistor-base-resistor",
      +  "555-timer",
      +  "pcb-trace-width",
      +  "battery-life",
      +  "rc-filter",
      +  "capacitor-code"
      +]
  3. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered; the description adds real value beyond them by disclosing the return shape (answer, working, live-circuit link), the defaulting behavior for omitted inputs, and the absence of rate limits. It does not describe error handling for invalid calculator/input combinations, which keeps it short of a 5.

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 calculator list is front-loaded and each item earns its place by helping selection; the trailing sentences on prefixes, defaults, and no-limit access are compact and information-dense. The one inefficiency is the long enumerated list restating what the calculator enum already contains.

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?

With no output schema, the description correctly explains what comes back (answer, working, live-circuit link), and it resolves the main ambiguity of a nested inputs object by naming the per-calculator input keys. Only failure modes for mismatched calculator/input names are left unaddressed.

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%, so the baseline would be 3, but the description adds semantics the schema does not spell out: values may carry SI prefixes like "4.7k" or "15m", and omitted inputs silently fall back to example values reported in the answer. That defaulting rule materially changes how an agent should populate the inputs object.

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?

"Electronics calculators with exact answers" is followed by an explicit enumeration of all twelve calculator types (LED resistor, resistor color code, 555 timer, PCB trace width, battery life, etc.), so an agent knows exactly which resource this operates on and which computations it covers. The sibling tools are circuit design/simulation/debugging operations, and nothing here overlaps with them.

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 description explains how to invoke the tool (SI prefixes allowed, omitted inputs default to example values) but never states when to pick a calculator over a sibling such as simulate_circuit or design_circuit. Usage is implied by the enumerated calculator names rather than stated as a routing rule, and no exclusions are given.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources