Skip to main content
Glama

derive

Evaluate expressions of finished-run probes on a grid to compute circuit gain, input impedance, voltage differences, or power; AC expressions return magnitude/dB/phase.

Instructions

Evaluate an expression of a finished run's probes on a grid, e.g. "db(v(out)/v(in))" (gain), "v(in)/i(R1)" (input impedance), "v(a)-v(b)", "v(out)*i(R2)" (power). AC probes are complex (answer gives mag/dB/deg). measure() accepts such expressions as probe.

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": {
      "name": "<name>",
      "expr": "<expr>"
    },
    "name": "derive"
  }
}

Input Schema

NameRequiredDescriptionDefault
exprYes
nameYes
interpNolinear
pointsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/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 add genuine behavioral value by disclosing that AC probes are complex and the answer is returned as magnitude/dB/degrees, but it is silent on whether the derived result is persisted (the required `name` parameter suggests it is), on failure modes for invalid expressions, and on the grid evaluation cost.

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 but front-loaded: the core action comes first, then examples, then the AC output caveat and the measure() cross-reference. Each example earns its place by disambiguating the expression syntax; the text is terse to the point of being clipped in places but contains no filler.

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?

An output schema exists, so return values need no detail, and the expression semantics are well covered. What remains missing is enough about the three unnamed parameters and the persistence/naming behavior to call this confidently without consulting the schema, which is a meaningful gap given 0% schema coverage.

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% across four parameters, so the description must compensate. It gives real meaning for `expr` through the worked examples, but `name`, `interp` and `points` (the grid interpolation mode and resolution) receive no explanation at all, leaving half the interface undocumented.

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 verb (evaluate) and resource (an expression of a finished run's probes) and grounds it with four concrete expression examples covering gain, impedance, difference and power. The closing note that measure() accepts such expressions as `probe` hints at the sibling boundary, though the distinction is left implicit rather than stated outright.

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?

"a finished run's probes" implies a prerequisite (a completed simulation with recorded probes) and the measure() reference points at an alternative path, but the description never says when to use derive versus measure, nor what happens for an unfinished run or an absent probe. Usage is inferable, not stated.

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