Skip to main content
Glama
eng-toolkit

eng-toolkit

by Lin830326

Optimize Sensitivity

optimize_sensitivity

Quantifies how input uncertainty affects arithmetic model outputs using local Richardson sensitivity, correlated GUM uncertainty, Monte Carlo, or Sobol indices.

Instructions

Local Richardson sensitivity, correlated GUM uncertainty, distribution Monte Carlo or independent-input Saltelli/Jansen Sobol indices. Grammar: numbers, names, + - * / ^ (**), parentheses, whitelisted math calls; no comparisons inside expressions. Variables are plain numbers in the units you choose; the tool does not track units inside expressions.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "optimize_sensitivity"
  }
}

Input Schema

NameRequiredDescriptionDefault
seedNoDeterministic random seed, e.g. 0; integer 0..4294967295, echoed in the result.
methodNogum, monte_carlo, or sobol, e.g. 'gum'; Sobol requires independent marginals and reports unclipped sampling estimates.gum
nominalNoAt most 16 nominal records, e.g. 'x=2;y=3'. Names define expression variables.
samplesNoMonte Carlo rows 100..200000; Sobol base rows 100..200000, total evaluations also capped at 200000.
expressionNoScalar arithmetic model, e.g. 'x*y'; '' means missing.
time_limitNoWall-clock budget with time units, e.g. '10 s'; supported 0.001..60 s, shared by all solver stages.10 s
correlationNoJSON symmetric positive-semidefinite correlation matrix in nominal name order; blank means independent.
second_orderNoInclude Hessian second-order Gaussian mean/variance corrections; these are local approximations.
distributionsNoNormal/uniform/triangular/lognormal marginals, e.g. x,normal,2,0.1 or {"x":["normal",2,0.1]}; '' uses nominal normals.
standard_uncertaintiesNoNonnegative standard uncertainties as name=value records; omitted names default to zero, e.g. 'x=0.1;y=0.2'.

Output Schema

NameRequiredDescriptionDefault
okYes
dataNoNon-quantity payload (reports, listings)
errorNo
valueNoPrimary quantity result
valuesNoAll named quantity results (includes the primary)
warningsNo
artifactsNo
provenanceYesWhat produced the result and from which inputs.
review_statusNounreviewed

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.1

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations provided, the description carries the full behavioral burden. It usefully discloses two non-obvious constraints: expressions support only arithmetic with whitelisted math calls and no comparisons, and units are not tracked so variables are plain numbers. It does not say whether the tool is a pure side-effect-free computation, how the time budget affects failure modes, or how method choice changes the returned quantities, though the output schema covers return shape.

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?

Two dense sentences, no filler, and the grammar/units constraints are genuinely load-bearing for a tool whose core input is a user-supplied expression. It is slightly front-loaded on jargon (Richardson, Saltelli/Jansen) without a plain-language lead, which costs a little readability.

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?

All 10 parameters are fully documented in the schema and an output schema exists, so the description need not explain returns. What is missing at this complexity level is how the four analytical modes differ in required inputs and interpretation, leaving an agent to infer mode selection from the method enum alone.

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 description coverage is 100%, so the baseline is 3; the description earns an extra point by specifying the expression grammar (operators, exponent forms, parentheses, whitelisted math calls, no comparisons) and the unit-free variable semantics, which materially constrain how 'expression' and 'nominal' must be authored and are not stated in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description enumerates the analysis techniques the tool supports (local Richardson sensitivity, correlated GUM uncertainty, Monte Carlo propagation, Saltelli/Jansen Sobol indices), which lets an agent infer that this is an uncertainty/sensitivity analysis tool. However, it is a noun-phrase list with no explicit verb or resource statement, and nothing distinguishes it from computation-oriented siblings such as optimize_fit or optimize_doe.

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?

The only conditional guidance is the parenthetical that Sobol requires independent marginals, which is carried in the method parameter anyway. There is no statement of when to prefer GUM over Monte Carlo over Sobol, no prerequisites, and no routing to or away from sibling 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