Skip to main content
Glama

Electronics Architect

Monte Carlo (metered)

simulate_monte_carlo

Run a multi-trial Monte Carlo tolerance analysis entirely server-side. Randomizes component tolerances (supporting Uniform, Gaussian, or Bimodal distributions; draws are clamped to each property's registry min/max bounds) and simulates circuit yield, statistical distributions of voltages/currents/powers/temperatures, and worst-case thermal violation rates. Result carries seed (replay it for a byte-identical run), failedTrials (thrown trials — counted and excluded from trials and every statistic), unconvergedTrials (informational). Percentiles (median/p99/p1) use the nearest-rank method. A design containing a node type this build does not recognize is refused with an error rather than simulated as zeros. Each run counts against the account's monthly Monte Carlo quota, like a run from the editor; get_account_usage shows what is left. BY DEFAULT THE RESULT IS A DIGEST, not the trials: the run counts, summary (system power and efficiency percentiles, thermal violation rate, protection trips) and nodeStats — for every node, min / mean / max / p1 / p99 of voltage, current, power and temperature across the trials, and how many trials broke that node's thermal limit. The per-trial array is omitted because it is about 3 KB per trial for a fifteen-node design — a default 1000-trial run is 3.5 MB, more than a client can read. Pass includeTrials: true only when you need the per-trial inputs (keyed "::") for sensitivity analysis, and keep options.trials at 50 or fewer when you do.

Input Schema

NameRequiredDescriptionDefault
optionsNoOptional Monte Carlo settings.
designIdNoA saved design's id from create_design or list_designs — needs the signed-in account. Give this or `designJson`.
designJsonNoFull circuit design JSON (Sheet.serialize() format; design schema v1 at https://electronics-architect.com/schema/design-v1.json — SI base units, numbers not strings). Give this or `designId`.
includeTrialsNoAlso return the raw per-trial array (nodes, inputs, violations per trial). Default false — it is large, so keep options.trials small when you set this.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Goes well beyond the annotations: discloses quota metering ('counts against the account's monthly Monte Carlo quota'), refusal semantics for unrecognized node types, seed replay guarantees, the nearest-rank percentile method, and how failedTrials are excluded from statistics. It also explains why the default result is a digest rather than the per-trial array (3.5 MB for a 1000-trial run), which is exactly the kind of non-obvious behavior an agent cannot infer.

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 purpose before diving into result semantics, and every sentence is substantive rather than filler. It is dense and runs long, but the density is earned by otherwise-undocumented behaviors like the digest default and quota cost.

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?

With no output schema, the description correctly carries the full return-value burden, enumerating `seed`, `failedTrials`, `unconvergedTrials`, `summary`, and `nodeStats` in detail. The main gap is that it does not explain how this synchronous, metered run relates to `run_monte_carlo_job`, nor does it mention expected runtime for large trial counts.

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 description coverage is 100%, so the schema already carries the per-parameter burden (baseline 3). The description adds real meaning on top: byte-identical replay tied to `seed`, the reason to keep `options.trials` at 50 or fewer with `includeTrials`, and the keyed format of the per-trial `inputs` map.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Strong specific verb+resource: 'Run a multi-trial Monte Carlo tolerance analysis entirely server-side,' with concrete detail on what is randomized and what is reported. However it never distinguishes itself from the sibling `run_monte_carlo_job`, which an agent could easily confuse with this synchronous metered tool.

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 clear when-to-use guidance for `includeTrials: true` ('only when you need the per-trial inputs for sensitivity analysis') and for the default digest path, plus routes quota checks to `get_account_usage`. It states no explicit exclusion against the async sibling `run_monte_carlo_job`, which is the one routing decision an agent most needs.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources