Skip to main content
Glama

Constant-gain circles

gain_circles
Read-onlyIdempotent

Calculate constant-gain circles from transistor S-parameters to design amplifiers, returning centers, radii, and achievable gain limits for Smith chart plotting.

Instructions

Constant-gain circles for amplifier design (Pozar ch. 12): 'available' (G_A, source plane, bilateral), 'operating' (G_P, load plane, bilateral), 'unilateral_source' (G_S) or 'unilateral_load' (G_L) for S12≈0 designs. Returns centre (Γ and Z), radius and whether each gain is achievable, plus the reference maximum gain (MAG/MSG or G_S,max/G_L,max). Omit gains_db to get a ladder of circles below the maximum. Pass the circles to render_smith_chart to plot them.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeNoavailable
deviceYesTwo-port device: either all four S-parameters (s11, s21, s12, s22 as {mag, angle_deg} or {re, im}) or a 2-port Touchstone file via touchstone_path / touchstone_content.
gains_dbNoGains in dB to draw (for unilateral types: the G_S / G_L block gain).
languageNoLanguage of the human-readable summary: 'en' (English) or 'tr' (Türkçe). Defaults to the server setting.
frequencyNoRequired with a Touchstone file.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the safety profile is covered. The description adds real behavioral value by disclosing the return contents (centre in Γ and Z, radius, achievability flag, reference maximum MAG/MSG or G_S,max/G_L,max) and the ladder behavior when gains_db is omitted.

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?

A single dense paragraph that is front-loaded with purpose, then type semantics, then return values, then the plotting hand-off. Every sentence carries information, though it is information-heavy enough that it borders on terse for a physics-domain tool.

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?

No output schema exists, and the description compensates by naming the returned quantities (centre, radius, achievability, max gain reference). Combined with 80% schema coverage and the plotting hand-off, it is nearly complete; minor gaps remain around error/precondition behavior for the Touchstone path.

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 80%, so the schema carries most parameter detail. The description still enriches semantics by explaining what each 'type' enum value computes and the special meaning of gains_db for unilateral types plus its omission behavior, going beyond the schema's short field notes.

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+resource ('Constant-gain circles for amplifier design') and enumerates the four circle types ('available', 'operating', 'unilateral_source', 'unilateral_load') with their defining formulas, distinguishing it clearly from siblings like noise_circles and amplifier_stability.

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?

Gives explicit routing for the 'unilateral_source'/'unilateral_load' types (S12≈0 designs) and the omit-gains_db case, and names the follow-up sibling ('Pass the circles to render_smith_chart'). It lacks explicit when-not guidance versus other matching tools, so a 4 is appropriate.

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