Skip to main content
Glama
monoxide-xen

microcap-mcp

by monoxide-xen

generate_transistor_amplifier

Generate a Micro-Cap .CIR netlist for a common-emitter BJT amplifier with automatic mid-supply biasing, enabling AC, transient, or DC simulation of the gain stage.

Instructions

Draw a .CIR common-emitter BJT gain stage (NPN primitive).

Divider bias, unbypassed emitter degeneration, AC-coupled input. The midband gain magnitude is Rc/(Re+re') — roughly Rc/Re when Re is well above the intrinsic re'. By default the R1/R2 divider is computed to bias the collector at mid-supply, so the stage stays in the active region for any Rc/Re and the gain is real (a fixed divider would silently saturate as Rc grows). Rc must exceed Re. Feed the result to simulate_schematic.

Args: rc, re: collector and (unbypassed) emitter resistors; their ratio is the midband gain. Rc must exceed Re. r1, r2: base bias divider (vcc to base, base to ground); leave unset to auto-bias for a mid-supply collector, or give both to override. vcc: supply voltage. cin: input coupling capacitor. source: input source VALUE, Micro-Cap syntax ("AC=1" for AC gain). analysis: AC, Transient, or DC. output_node: label for the collector output node.

Returns the .CIR text.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
r1No
r2No
rcNo4.7K
reNo1K
cinNo10U
vccNo12
sourceNoAC=1
analysisNoAC
output_nodeNoOUT

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

With no annotations, the description carries the full burden and delivers: it discloses the auto-bias behavior (computed to bias collector at mid-supply, preventing saturation), the constraint Rc > Re, the return type (.CIR text), and the gain formula. No destructive aspects are hidden, and the description adds significant behavioral context.

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 with a purpose sentence, a design rationale paragraph, and a clean Args list. Every sentence earns its place, providing essential technical details without fluff or repetition.

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?

For a tool with 9 parameters, no annotations, and no schema descriptions, this description is remarkably complete. It covers all parameters, key constraints, output format, and integration with simulate_schematic. The output schema exists, and the description explicitly states 'Returns the .CIR text', making it fully self-sufficient.

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%, but the description compensates fully by explaining every parameter: rc/re (gain), r1/r2 (bias divider, auto vs override), vcc, cin, source (with syntax example), analysis (AC/Transient/DC), and output_node. It adds meaning far beyond the raw schema, including defaults and constraints.

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 states 'Draw a .CIR common-emitter BJT gain stage (NPN primitive)' with specific verb 'draw', resource 'common-emitter BJT gain stage', and output format '.CIR'. It clearly distinguishes itself from sibling tools like generate_emitter_follower and generate_mosfet_amplifier by specifying the topology.

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?

It provides clear context: this is a common-emitter stage with divider bias, unbypassed emitter degeneration, and AC coupling. It also instructs to feed the result to simulate_schematic. However, it lacks explicit when-not-to-use guidance or direct comparison with sibling amplifier generators, so no full 5.

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