Skip to main content
Glama
monoxide-xen

microcap-mcp

by monoxide-xen

generate_differential_pair

Generate a SPICE .CIR circuit for a BJT long-tailed pair with auto-biased collectors, balanced for differential gain set by supply voltage.

Instructions

Draw a .CIR BJT long-tailed (differential) pair.

Two matched NPN sharing an emitter tail resistor to ground, each collector loaded by Rc. Single-ended drive on one base; the collectors OUTP and OUTN swing in antiphase, each with magnitude Rc/(2*re'). The common-mode base voltage and tail resistor are auto-sized to bias both collectors near mid-supply, so the pair is balanced and in the active region — the differential gain then works out near Vcc/(4*Vt), set by the supply rather than by Rc. Both collectors are labelled; the default trace plots OUTP (edit it to plot OUTN).

Args: rc: collector load on each side. rt: emitter tail resistor; leave unset to auto-size for mid-supply. vcc: supply voltage. vb: common-mode base voltage; leave unset for vcc/2. source: AC drive VALUE for the input base ("AC=1"). analysis: AC, Transient, or DC. output_node: which collector the default trace plots (OUTP/OUTN).

Returns the .CIR text.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rcNo10K
rtNo
vbNo
vccNo12
sourceNoAC=1
analysisNoAC
output_nodeNoOUTP

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations provided, the description carries the full behavioral burden. It clearly discloses that the tool auto-sizes bias for mid-supply, that both collectors are labelled, and that the default trace plots OUTP (with instruction to edit for OUTN). It also explains the gain relationship and that it returns .CIR text, which is transparent about output and side-effect-free generation. It could add error conditions or limitations, but for a generator it is quite thorough.

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?

The description is well-structured: a concise summary paragraph, a paragraph on circuit behavior and gain, and a clear Args list. Every sentence adds value—no filler or repetition. It front-loads the core purpose and provides crucial context (gain formula, auto-sizing) without becoming bloated.

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 tool's complexity (7 params, no annotations), the description covers the main aspects: purpose, topology, parameter semantics, and return value. It lacks an explanation of what 'analysis' values (AC, Transient, DC) actually do or how to choose among them, but the output schema likely covers return structure. The description is complete enough for a knowledgeable user to invoke correctly, with minor gaps around analysis type semantics.

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 description coverage is 0%, so the description fully compensates by listing all 7 parameters with semantic meaning. Each parameter's purpose is explained (e.g., 'rc: collector load on each side', 'rt: emitter tail resistor; leave unset to auto-size', 'output_node: which collector the default trace plots'). This goes far beyond the schema's parameter titles and defaults.

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?

The description opens with a specific verb and resource: 'Draw a .CIR BJT long-tailed (differential) pair.' It explicitly names the circuit type and differentiates it from sibling generator tools by detailing the topology (matched NPN pair, tail resistor, collector loads) and the unique auto-biasing behavior.

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 implies usage for generating a differential pair circuit but does not explicitly state when to prefer this tool over alternatives like generate_amplifier or generate_cascode. It provides guidance for parameter usage (e.g., 'leave unset to auto-size') but no exclusions or comparison to siblings.

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/monoxide-xen/microcap-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server