Skip to main content
Glama

femm_experiment_parametric

Run parametric sweeps in FEMM by re-opening a base model, applying case-specific parameters, solving each case, and collecting specified outputs.

Instructions

Generic parametric study. Every case re-opens the same saved base model, applies its setup, solves and collects outputs. case: {"name": "Hc=900k", "params": {"hc": 9e5}, "commands": [{"command": "mi_modifymaterial", "args": ["N42", 3, 9e5]}]} (preprocessor commands only: mi_/ei_/hi_/ci_). template: optional multi-line MicroPython run inside FEMM per case, formatted with params, e.g. "mi_selectgroup(1)\nmi_movetranslate({dx}, 0)". outputs: {"name", "kind": "point", "x", "y", "quantity": "B|Bx|By|A|H|mu|J"} | {"kind": "block", "code": 22, "groups": [1]} | {"kind": "circuit", "circuit": "A", "quantity": "flux|current|voltage|L|R"} | {"kind": "gap", "boundary": "AGE", "code": 0} | {"kind": "line", "points": [[x,y],...], "code": 3} | {"kind": "expr", "expression": "..."}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
casesYes
outputsYes
sessionNomain
templateNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full load and does well: it discloses that every case re-opens the same saved base model (so cases are independent, no state carryover), runs its commands, solves, and collects outputs, and it restricts case commands to preprocessor prefixes mi_/ei_/hi_/ci_. No disclosure of failure modes, runtime cost, or concurrency.

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-loads the purpose in one sentence, then gives dense, example-driven detail for cases/template/outputs. Every clause carries information given the empty schema, though the output-kind enumeration is run together and could be formatted more readably.

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?

For a nested-parameter sweep tool with no annotations, no output schema, and 0% schema description coverage, the description covers cases, template, and output kinds well but leaves the 'session' parameter and the identity/loading of the 'saved base model' unexplained, which an agent needs to call it correctly.

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 coverage is 0% and the nested cases/outputs are untyped objects, so the description must compensate — and it does, documenting case keys (name/params/commands), the template placeholders like {dx}, and the six output kinds with their fields. The 'session' parameter is never explained, keeping this below a 5.

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?

States a specific verb+resource ('Generic parametric study') and describes the per-case flow: re-open base model, apply setup, solve, collect outputs. The word 'Generic' implicitly separates it from the specialized siblings (femm_experiment_cogging, _backemf, _inductance), but no sibling is named explicitly.

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 by 'Generic parametric study' versus the named specialized experiment tools, and 'preprocessor commands only: mi_/ei_/hi_/ci_' scopes what a case may contain. However there is no explicit statement of when to prefer this over femm_experiment_force_vs_position or the other experiment_* tools.

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

Deploy Server

Other Tools