Skip to main content
Glama

sweep

Re-simulate a circuit spec for each value of a target parameter (part value, temperature, source frequency, or capacitance) and collect one specified metric per run.

Instructions

Parameter sweep: re-simulate spec for each value of target ("R1" = part value, "temp", "V1.wave.freq", "C1.value") and collect one number per run. metric: {"what":"stats","probe":"v(out)","field":"rms"} | {"what":"op","probe":"v(c)"} | {"what":"bandwidth","probe":"v(out)","field":"f_high_3db"} | {"what":"harmonics","probe":"v(out)","f0":1000,"field":"thd_pct"}.

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>",
      "target": "<target>",
      "values": "<values>",
      "metric": "<metric>"
    },
    "name": "sweep"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNosweep
specYes
metricYes
targetYes
valuesYes

Output Schema

NameRequiredDescriptionDefault
rowsYes
metricYes
targetYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose the core behavior — N re-simulations, one aggregated number per run — which is real value beyond structured fields, but it says nothing about cost/latency of repeated simulation, required project state, side effects, or failure handling when a value fails to converge.

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?

Two dense sentences with no filler: the first covers the operation and target syntax, the second enumerates metric variants compactly via an inline union. The piped notation is terse but readable, and the key behavior is front-loaded.

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

Completeness3/5

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

Given five parameters, nested objects, and zero annotations, the definition is only partially complete: it never explains what `spec` must contain, what `name` does, or whether the tool mutates sandbox/project state across the repeated runs. An output schema exists, so return values needn't be described, which keeps this from scoring lower.

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

Parameters3/5

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

Schema description coverage is 0% across five parameters, so the description must compensate. It does well for `target` (concrete examples: "R1", "temp", "V1.wave.freq", "C1.value") and `metric` (four fully spelled-out shapes with probe, field, and f0), and implies `values` as the sweep list. However, `spec` (a nested open object) and `name` are never explained, leaving two of five parameters undocumented anywhere.

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 states a specific verb and resource: re-simulate `spec` once per value of `target` and collect one number per run. That is enough for an agent to know this is a parameter sweep over a simulation spec. It does not contrast itself with plausible siblings such as simulate or monte_carlo, so it falls short of full sibling differentiation.

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?

Usage is implied rather than stated: 're-simulate `spec` for each value of `target`' tells the agent the scenario (vary one parameter across a list of values and reduce each run to a single number). There is no explicit when-to-use, when-not-to-use, or named alternative such as monte_carlo for statistical sampling.

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