Skip to main content
Glama
monoxide-xen

microcap-mcp

by monoxide-xen

generate_mosfet_amplifier

Create a Micro-Cap .CIR netlist for a common-source MOSFET amplifier with automatic gate biasing. Keeps the transistor in saturation, ensuring accurate gain for simulation.

Instructions

Draw a .CIR common-source MOSFET gain stage (NMOS primitive).

Gate divider bias, source degeneration, AC-coupled input, body tied to source. Midband gain is -gm*Rd/(1+gm*Rs) — roughly -Rd/Rs when gm*Rs is large. By default the gate divider is computed from the model's VTO/KP to bias the drain at mid-supply, so the device stays in saturation and actually amplifies (a mis-biased MOSFET drops out of saturation and the gain collapses). Feed the result to simulate_schematic.

Args: rd, rs: drain and (degeneration) source resistors. r1, r2: gate bias divider; leave unset to auto-bias for a mid-supply drain, or give both to override. vdd: 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 drain output node.

Returns the .CIR text.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
r1No
r2No
rdNo4.7K
rsNo1K
cinNo10U
vddNo12
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 provided, the description carries the full burden of behavioral disclosure. It explains the gain formula, the auto-bias behavior based on VTO/KP, the consequence of mis-biasing (saturation drop and gain collapse), and the output being .CIR text. This is rich, non-obvious behavior that goes far beyond what the schema reveals.

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 one-line summary, a compact paragraph of circuit behavior and key formulas, a bulleted Args list, and a return statement. Every sentence contributes substantive information, and the most important identifying information is front-loaded. No filler is present.

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?

The description is self-sufficient for a generator tool with 9 parameters and an output schema. It covers circuit topology, biasing strategy, gain expression, parameter semantics, and the return type. It even warns about a common failure mode (mis-biasing). Given the absence of annotations, this is a complete and robust description.

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?

The schema has 0% description coverage, forcing the description to compensate. The dedicated Args section defines every one of the 9 parameters, including domain-specific syntax (e.g., source as Micro-Cap value) and nuanced behavior (e.g., r1/r2 auto-bias when unset). This fully compensates for the sparse schema.

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 and informative statement: 'Draw a .CIR common-source MOSFET gain stage (NMOS primitive).' It names the exact circuit type and technology, distinguishing it clearly from sibling tools like generate_emitter_follower or generate_differential_pair.

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 provides context by specifying the circuit topology and bias scheme, and it suggests a downstream action ('Feed the result to simulate_schematic'). However, it does not explicitly state when to choose this tool over alternatives or when not to use it. No alternative tools are named, so guidance is mostly implicit.

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