Skip to main content
Glama
ethan-hub26

embedcalc-mcp

by ethan-hub26

LM317 Resistor Calculator

embedcalc_lm317
Read-onlyIdempotent

Calculate LM317 regulator output voltage or required resistor R2. Given target voltage solves R2, or from R1 and R2 computes Vout.

Instructions

LM317 adjustable regulator: Vout = Vref·(1 + R2/R1) + Iadj·R2. Compute R2 for a target Vout, or Vout from R1/R2.

Args: r1_ohm (default 240), and exactly one of target_vout (-> solves R2) or r2_ohm (-> computes Vout). vref default 1.25 V, iadj_ua default 50 µA (datasheet typical). Returns (structured): { vout, r1_ohm, r2_ohm }. Example: target 5.0 V, R1=240, Iadj=0 -> R2=720 Ω. Snap R2 with embedcalc_eseries_nearest afterwards.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
vrefNoReference voltage (1.25 V typ)
r1_ohmNoR1 (Vref across it), datasheet recommends 240 Ω
r2_ohmNoR2 value (computes Vout)
iadj_uaNoAdjust pin current in µA (50 typ)
target_voutNoDesired output voltage (solves R2)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
voutYes
r1_ohmYes
r2_ohmYes
Behavior4/5

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

Annotations indicate read-only, idempotent, non-destructive behavior. The description complements this by detailing the formula, default values, return structure, and an example. No contradictions.

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?

Extremely concise: 4 sentences plus an example, with no fluff. The most critical information (purpose, formula, modes, defaults, return, example) is front-loaded and easy to parse.

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?

Given the output schema exists (though not shown in input), the description adequately covers inputs, modes, and return format. Minor lack of edge case handling (e.g., providing both inputs) but acceptable for a simple calculator.

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%, but the description adds value by clarifying the mutual exclusivity of target_vout and r2_ohm, summarizing defaults, and specifying the return object structure. This goes beyond the schema's property descriptions.

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?

Clearly states it computes R2 from target Vout or Vout from R1/R2 for the LM317 regulator. Provides the formula and explicit verb+resource, distinguishing itself from numerous sibling embedcalc_ 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?

Explains the two modes of operation and the constraint to provide exactly one of target_vout or r2_ohm. Mentions a follow-up tool (embedcalc_eseries_nearest) for rounding, guiding the agent on next steps. Lacks explicit when-not-to-use, but context is sufficient.

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