Skip to main content
Glama

engineering.opamp_gain

Read-onlyIdempotent

Calculate ideal op-amp closed-loop voltage gain from feedback and input resistance for inverting or non-inverting configurations; returns a linear gain multiplier, not dB.

Instructions

이상적 연산증폭기의 폐루프 전압 이득을 구한다. configuration='inverting'이면 -Rf/Rin, 'non_inverting'이면 1+Rf/Rin. feedback_resistance와 input_resistance는 0 초과 Decimal 문자열(Ω)이고 gain 은 배율이다(dB 아님, db_convert로 변환). 오용 주의: 유한 개방 이득, 대역폭, 포화 전압은 반영하지 않는다.

Input Schema

NameRequiredDescriptionDefault
configurationNoinverting
input_resistanceYes
feedback_resistanceYes

Output Schema

NameRequiredDescriptionDefault
gainYes
_metaNo서버가 붙이는 영수증(integrity), 엔진, 힌트
traceYes계산 근거(tool, formula, inputs, steps, output)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.8/5.0
Behavior5/5

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

Beyond readOnly/idempotent annotations, the description discloses the idealized model's limits (no finite open-loop gain, bandwidth, or saturation voltage), the unit of the resistances (Ω, positive Decimal strings), and that the returned gain is a linear ratio rather than dB. These are exactly the assumptions an agent could otherwise get wrong.

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?

Three sentences, front-loaded with the purpose and formulas, then units, then the misuse caveat. Nothing is repeated from the schema and every clause adds information the agent needs.

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?

With an output schema present, the description need not describe return values, and it covers everything else: formulas per configuration, parameter types and units, gain vs dB, and the non-ideal effects excluded. Nothing required to call it correctly is missing.

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

Parameters5/5

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

Schema coverage is 0% and configuration has no enum, so the description carries the full burden — and it does: it enumerates the two valid configuration values with their formulas and defines both resistance parameters as positive Decimal strings in ohms. No parameter meaning is left ambiguous.

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?

States a specific verb and resource (closed-loop voltage gain of an ideal op-amp) and gives the exact formula per configuration, so an agent knows precisely what is computed. The 'ideal' qualifier and the explicit dB disclaimer separate it from engineering.db_convert and from any real-device gain tool.

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 tells the agent to pick configuration='inverting' vs 'non_inverting' and to route unit conversion through db_convert, and it warns that finite open-loop gain, bandwidth and saturation are out of scope. It stops short of naming a specific sibling tool to use when those non-ideal effects matter, so there is room above a 4.

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

Deploy Server

Other Tools