Skip to main content
Glama

monte_carlo

Run tolerance-based statistical simulations over circuit components to quantify metric variation, returning mean, standard deviation, min, max, and every run.

Instructions

Monte Carlo over component tolerances: tolerances {"R1":"5%","C1":"10%"} (gauss: sigma = tol/3; uniform: +-tol). metric as in sweep(). Returns mean/std/min/max and every run.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "spec": "<spec>",
      "tolerances": "<tolerances>",
      "metric": "<metric>"
    },
    "name": "monte_carlo"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNomc
runsNo
seedNo
specYes
metricYes
tolerancesYes
distributionNogauss

Output Schema

NameRequiredDescriptionDefault
nNo
maxNo
minNo
stdNo
meanNo
runsYes
errorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose real behavior: the tolerance distribution math (gauss sigma=tol/3, uniform ±tol) and the return contents (mean/std/min/max plus every run). It still omits how expensive a run is, what spec/metric actually drive, or scaling behavior with runs.

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?

Dense and front-loaded: the tolerance example comes first, followed by distribution math and returns. Nothing is padded, though the reliance on 'metric as in sweep()' forces cross-tool lookup for a required parameter.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a complex tool with seven parameters, nested objects, zero schema coverage, and no annotations. The description covers tolerances, distribution, and return shape, but leaves the core spec/metric/runs inputs unexplained, which is inadequate for correct invocation.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate, but it only explains tolerances (with a useful key/percent example) and partially distribution; spec, metric, runs, seed, and name are left undefined. Three of seven parameters get no meaning beyond their bare names and defaults.

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?

The description names a specific statistical technique applied to a specific domain ('Monte Carlo over component tolerances') and anchors the metric parameter to the sibling sweep(). An agent can tell what the operation performs, though it never spells out the underlying simulation action or the resource in a verb+noun form.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It references sweep() for the metric semantics, which implicitly hints at a relationship, but there is no explicit when-to-use this versus sweep/simulate, no prerequisites, and no stated exclusions. Usage must be inferred entirely by the agent.

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