Skip to main content
Glama

sim_get_results

Read simulation results from an .sdf file to extract wave samples, min/max/first/last statistics, and AC magnitude/phase, filtered by analysis, wave, or run.

Instructions

Read a simulation's results: every wave, with sampled points.

Reads the .sdf that sim_run saved (the last one by default). Each wave comes with its unit, point count, min/max/first/last over every point, and up to max_points samples evenly spaced from first to last. An AC wave reports magnitude and phase in degrees against frequency. The sweep variable (time, frequency, the swept source) is marked independent.

Args: results_document: path of a .sdf; empty uses the last sim_run. analysis: one analysis by name ("Transient Analysis", "AC Analysis", "Operating Point", "DC Sweep", ...); empty returns all. waves: wave names to keep, e.g. ["v(out)", "i(v1)"]; empty keeps all. max_points: samples per wave; 0 returns statistics only. all_runs: a document run more than once holds every run; by default only the latest run of each analysis is returned.

Returns: Dict with results_document and analyses: a list of {analysis, waves: [...]}, or an error naming what is missing.

Input Schema

NameRequiredDescriptionDefault
wavesNo
all_runsNo
analysisNo
max_pointsNo
results_documentNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.1

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the burden well: it discloses that this is a read of an existing .sdf, the default-source behavior, sampling behavior ('up to max_points samples evenly spaced'), the statistics-only mode when max_points=0, and that failures return an error naming what is missing. It does not state file-size/performance limits or whether it errors when no prior sim_run exists, leaving a small gap.

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?

Front-loaded summary sentence, then a paragraph on data shape, then structured Args and Returns blocks. Dense with information and free of filler; the AC-wave and independent-variable notes are non-obvious details worth their length.

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?

An output schema exists, yet the description still sketches the return shape ({analysis, waves: [...]}) and error behavior, and it fully documents five otherwise-undescribed parameters. Nothing an agent needs to invoke it correctly is missing.

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?

Schema description coverage is 0%, so the description must compensate, and it does: all five parameters are explained with meaning and edge-case semantics (empty results_document = last sim_run, empty analysis = all, empty waves = all, max_points=0 = statistics only, all_runs = every run vs latest). Example values are given for wave names and analysis names.

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 first sentence states a specific verb and resource ('Read a simulation's results') and immediately scopes the content ('every wave, with sampled points'). The second paragraph identifies the underlying artifact (.sdf written by sim_run) and the default fallback, which distinguishes it from the sibling sim_run that produces that file.

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?

Usage is clear from context: it reads what sim_run saved, with an explicit default ('empty uses the last sim_run') and per-argument conventions for narrowing (analysis by name, waves to keep, all_runs for multi-run documents). It lacks an explicit 'do not use this to run a simulation' exclusion or a named alternative, so it stops short of a 5.

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