Skip to main content
Glama

Analyze a ladder / matching circuit

analyze_circuit
Read-onlyIdempotent

Analyze cascaded RF circuits to compute impedance, reflection coefficient, and VSWR at each node, plus input impedance and tolerance analysis. Use for matching network and antenna tuner verification.

Instructions

Analyze a cascaded RF circuit (load → components → source) the way a Smith chart does: returns the impedance, Γ and VSWR at every node, the final input impedance with return/mismatch loss, an optional frequency sweep (S11 in dB, VSWR vs. frequency), matched bandwidth for a VSWR limit, and Monte-Carlo-free tolerance corner analysis (± tolerance_pct on each component). Supported elements: inductor, capacitor, resistor (series or shunt, with Q/ESR/ESL), series/parallel RLC, custom impedance or Z(f) table, transmission line (lossy, εeff/velocity factor), open/short stubs (shunt or series), ideal transformer and coupled inductors. The load may be a constant Z, a Γ, a Z(f) table or a measured .s1p file (antenna). Use to verify a matching network, check an antenna tuner, or answer 'what impedance does the source see?'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
z0NoReference (system) characteristic impedance Z0 in Ω. Default 50.
loadYesThe load (termination) at the far end of the circuit. Give exactly one of: z, gamma, table, or a 1-port Touchstone (.s1p) via touchstone_path / touchstone_content (e.g. a measured antenna).
sweepNoFrequency sweep: give start+stop, or span (centred on frequency).
languageNoLanguage of the human-readable summary: 'en' (English) or 'tr' (Türkçe). Defaults to the server setting.
frequencyYesDesign / analysis frequency. Electrical lengths (λ, deg) are defined at this frequency.
componentsNoCircuit elements ordered from the LOAD towards the SOURCE (the first element is connected directly to the load). Empty = bare load.
bandwidth_vswrNoReport the contiguous bandwidth around frequency where VSWR ≤ this value (e.g. 2).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the bar is lower. The description still adds real behavioral context beyond them: it discloses the full analysis result set, that the sweep is optional, that bandwidth is computed only for a VSWR limit, and that tolerance analysis is deterministic corner-based ('Monte-Carlo-free'), which is a meaningful behavioral distinction. It does not discuss failure modes or how it handles malformed element chains.

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?

Front-loaded with what the tool returns before the supported-element list, and both sentences carry substantive content. The long element enumeration ('inductor, capacitor, resistor... coupled inductors') largely duplicates the schema's oneOf branches and could be trimmed without information loss.

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?

No output schema exists, so the description must describe returns itself, and it does so thoroughly: per-node impedance/Γ/VSWR, input impedance with return and mismatch loss, optional S11/VSWR sweep, matched bandwidth, and tolerance corners. Combined with 100% schema coverage for the 7 inputs, an agent has everything needed to call and interpret it.

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

Parameters3/5

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

Schema description coverage is 100% with 7 params, so the schema already documents every parameter including tolerance_pct, load forms, and element types. The description adds only marginal meaning (it re-lists the supported element families and notes ±tolerance_pct semantics), which the oneOf branches already convey. Baseline 3 is appropriate.

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 (analyze) and resource (cascaded RF circuit, load → components → source) and enumerates the concrete outputs: node impedances, Γ, VSWR, input impedance, return/mismatch loss, optional sweep, bandwidth, and tolerance corners. It is clearly distinguishable from the design_* siblings (which synthesize networks) because this tool only evaluates a given circuit.

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 scenarios: 'verify a matching network, check an antenna tuner, or answer what impedance does the source see?'. That is clear when-to-use guidance, but it never names a sibling alternative (e.g. design_l_match or tline_input_impedance) or states when a different tool is preferable, so it stops short of the top score.

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