Skip to main content
Glama

Measurement uncertainty: GUM and Monte Carlo

propagate_uncertainty
Read-onlyIdempotent

Check dimensions, then compare first-order GUM with seeded fixed-sample Monte Carlo for an explicit model of 1–16 inputs. Return uncertainty budgets, coverage intervals and convergence/linearization findings. Conditional on supplied distributions; no affine units. CPU, direct-only; no planner binding.

Input Schema

NameRequiredDescriptionDefault
seedNoDefault 1. Same seed, same result.
samplesNoMonte Carlo draws, default 1000000 (JCGM 101 typical value for 2 significant digits).
coverageNoCoverage probability, default 0.95.
variablesYes
expressionYesModel with + - * / ^, parentheses, pi and sqrt exp ln log10 sin cos tan asin acos atan abs. Literals are dimensionless; no implicit multiplication.
result_unitNoOutput unit; must match the model dimension.
correlationsNoCorrelations between normal inputs with standard_uncertainty > 0.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -{
      -  "$schema": "http://json-schema.org/draft-07/schema#",
      -  "additionalProperties": false,
      -  "properties": {
      -    "assumptions": {
      -      "items": {
      -        "maxLength": 512,
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "maxItems": 16,
      -      "minItems": 1,
      -      "type": "array"
      -    },
      -    "budget": {
      -      "items": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "contribution": {
      -            "maximum": 1e+300,
      -            "minimum": 0,
      -            "type": "number"
      -          },
      -          "distribution": {
      -            "anyOf": [
      -              {
      -                "const": "constant",
      -                "type": "string"
      -              },
      -              {
      -                "const": "normal",
      -                "type": "string"
      -              },
      -              {
      -                "const": "uniform",
      -                "type": "string"
      -              },
      -              {
      -                "const": "triangular",
      -                "type": "string"
      -              }
      -            ]
      -          },
      -          "name": {
      -            "maxLength": 32,
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "sensitivity": {
      -            "maximum": 1e+300,
      -            "minimum": -1e+300,
      -            "type": "number"
      -          },
      -          "standard_uncertainty": {
      -            "maximum": 1e+300,
      -            "minimum": 0,
      -            "type": "number"
      -          },
      -          "unit": {
      -            "maxLength": 64,
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "value": {
      -            "maximum": 1e+300,
      -            "minimum": -1e+300,
      -            "type": "number"
      -          },
      -          "variance_share": {
      -            "maximum": 1,
      -            "minimum": 0,
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "contribution",
      -          "distribution",
      -          "name",
      -          "sensitivity",
      -          "standard_uncertainty",
      -          "unit",
      -          "value",
      -          "variance_share"
      -        ],
      -        "type": "object"
      -      },
      -      "maxItems": 16,
      -      "minItems": 0,
      -      "type": "array"
      -    },
      -    "contract_version": {
      -      "const": "0.1.0",
      -      "type": "string"
      -    },
      -    "correlation_variance_share": {
      -      "maximum": 1e+300,
      -      "minimum": -1e+300,
      -      "type": "number"
      -    },
      -    "coverage": {
      -      "maximum": 0.999,
      -      "minimum": 0.5,
      -      "type": "number"
      -    },
      -    "diagnostic": {
      -      "anyOf": [
      -        {
      -          "additionalProperties": false,
      -          "properties": {
      -            "kind": {
      -              "anyOf": [
      -                {
      -                  "const": "invalid_model",
      -                  "type": "string"
      -                },
      -                {
      -                  "const": "dimension_inconsistent",
      -                  "type": "string"
      -                },
      -                {
      -                  "const": "undefined_at_estimate",
      -                  "type": "string"
      -                }
      -              ]
      -            },
      -            "message": {
      -              "maxLength": 2048,
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "position": {
      -              "anyOf": [
      -                {
      -                  "maximum": 512,
      -                  "minimum": 0,
      -                  "type": "integer"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            }
      -          },
      -          "required": [
      -            "kind",
      -            "message",
      -            "position"
      -          ],
      -          "type": "object"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ]
      -    },
      -    "dimension": {
      -      "anyOf": [
      -        {
      -          "maxLength": 256,
      -          "minLength": 1,
      -          "type": "string"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ]
      -    },
      -    "elapsed_ms": {
      -      "maximum": 1000000000000,
      -      "minimum": 0,
      -      "type": "number"
      -    },
      -    "engine": {
      -      "const": "rust-cpu",
      -      "type": "string"
      -    },
      -    "gum": {
      -      "anyOf": [
      -        {
      -          "additionalProperties": false,
      -          "properties": {
      -            "coverage_factor": {
      -              "maximum": 10,
      -              "minimum": 0,
      -              "type": "number"
      -            },
      -            "expanded_uncertainty": {
      -              "maximum": 1e+300,
      -              "minimum": 0,
      -              "type": "number"
      -            },
      -            "interval": {
      -              "items": {
      -                "maximum": 1e+300,
      -                "minimum": -1e+300,
      -                "type": "number"
      -              },
      -              "maxItems": 2,
      -              "minItems": 2,
      -              "type": "array"
      -            },
      -            "standard_uncertainty": {
      -              "maximum": 1e+300,
      -              "minimum": 0,
      -              "type": "number"
      -            },
      -            "value": {
      -              "maximum": 1e+300,
      -              "minimum": -1e+300,
      -              "type": "number"
      -            }
      -          },
      -          "required": [
      -            "coverage_factor",
      -            "expanded_uncertainty",
      -            "interval",
      -            "standard_uncertainty",
      -            "value"
      -          ],
      -          "type": "object"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ]
      -    },
      -    "method": {
      -      "maxLength": 1024,
      -      "minLength": 1,
      -      "type": "string"
      -    },
      -    "monte_carlo": {
      -      "anyOf": [
      -        {
      -          "additionalProperties": false,
      -          "properties": {
      -            "blocks": {
      -              "maximum": 10,
      -              "minimum": 10,
      -              "type": "integer"
      -            },
      -            "draws": {
      -              "maximum": 2000000,
      -              "minimum": 10000,
      -              "type": "integer"
      -            },
      -            "finite_draws": {
      -              "maximum": 2000000,
      -              "minimum": 0,
      -              "type": "integer"
      -            },
      -            "mean": {
      -              "maximum": 1e+300,
      -              "minimum": -1e+300,
      -              "type": "number"
      -            },
      -            "nonfinite_fraction": {
      -              "maximum": 1,
      -              "minimum": 0,
      -              "type": "number"
      -            },
      -            "shortest_interval": {
      -              "items": {
      -                "maximum": 1e+300,
      -                "minimum": -1e+300,
      -                "type": "number"
      -              },
      -              "maxItems": 2,
      -              "minItems": 2,
      -              "type": "array"
      -            },
      -            "stability": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "high_standard_error": {
      -                  "maximum": 1e+300,
      -                  "minimum": 0,
      -                  "type": "number"
      -                },
      -                "low_standard_error": {
      -                  "maximum": 1e+300,
      -                  "minimum": 0,
      -                  "type": "number"
      -                },
      -                "mean_standard_error": {
      -                  "maximum": 1e+300,
      -                  "minimum": 0,
      -                  "type": "number"
      -                },
      -                "numerical_tolerance": {
      -                  "maximum": 1e+300,
      -                  "minimum": 0,
      -                  "type": "number"
      -                },
      -                "stable": {
      -                  "type": "boolean"
      -                },
      -                "standard_deviation_standard_error": {
      -                  "maximum": 1e+300,
      -                  "minimum": 0,
      -                  "type": "number"
      -                }
      -              },
      -              "required": [
      -                "high_standard_error",
      -                "low_standard_error",
      -                "mean_standard_error",
      -                "numerical_tolerance",
      -                "stable",
      -                "standard_deviation_standard_error"
      -              ],
      -              "type": "object"
      -            },
      -            "standard_deviation": {
      -              "maximum": 1e+300,
      -              "minimum": 0,
      -              "type": "number"
      -            },
      -            "symmetric_interval": {
      -              "items": {
      -                "maximum": 1e+300,
      -                "minimum": -1e+300,
      -                "type": "number"
      -              },
      -              "maxItems": 2,
      -              "minItems": 2,
      -              "type": "array"
      -            }
      -          },
      -          "required": [
      -            "blocks",
      -            "draws",
      -            "finite_draws",
      -            "mean",
      -            "nonfinite_fraction",
      -            "shortest_interval",
      -            "stability",
      -            "standard_deviation",
      -            "symmetric_interval"
      -          ],
      -          "type": "object"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ]
      -    },
      -    "notes": {
      -      "items": {
      -        "maxLength": 512,
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "maxItems": 32,
      -      "minItems": 0,
      -      "type": "array"
      -    },
      -    "provenance": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "client": {
      -          "additionalProperties": {},
      -          "properties": {
      -            "name": {
      -              "type": "string"
      -            },
      -            "version": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "name",
      -            "version"
      -          ],
      -          "type": "object"
      -        },
      -        "identity_source": {
      -          "type": "string"
      -        },
      -        "model": {
      -          "type": "null"
      -        },
      -        "server": {
      -          "const": "scorecompute",
      -          "type": "string"
      -        },
      -        "tool": {
      -          "const": "propagate_uncertainty",
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "tool",
      -        "server",
      -        "client",
      -        "identity_source",
      -        "model"
      -      ],
      -      "type": "object"
      -    },
      -    "recommended": {
      -      "anyOf": [
      -        {
      -          "additionalProperties": false,
      -          "properties": {
      -            "interval": {
      -              "items": {
      -                "maximum": 1e+300,
      -                "minimum": -1e+300,
      -                "type": "number"
      -              },
      -              "maxItems": 2,
      -              "minItems": 2,
      -              "type": "array"
      -            },
      -            "method": {
      -              "anyOf": [
      -                {
      -                  "const": "exact_evaluation",
      -                  "type": "string"
      -                },
      -                {
      -                  "const": "gum_first_order",
      -                  "type": "string"
      -                },
      -                {
      -                  "const": "monte_carlo",
      -                  "type": "string"
      -                }
      -              ]
      -            },
      -            "standard_uncertainty": {
      -              "maximum": 1e+300,
      -              "minimum": 0,
      -              "type": "number"
      -            },
      -            "value": {
      -              "maximum": 1e+300,
      -              "minimum": -1e+300,
      -              "type": "number"
      -            }
      -          },
      -          "required": [
      -            "interval",
      -            "method",
      -            "standard_uncertainty",
      -            "value"
      -          ],
      -          "type": "object"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ]
      -    },
      -    "samples": {
      -      "maximum": 2000000,
      -      "minimum": 10000,
      -      "type": "integer"
      -    },
      -    "seed": {
      -      "maximum": 4294967295,
      -      "minimum": 0,
      -      "type": "integer"
      -    },
      -    "statement": {
      -      "anyOf": [
      -        {
      -          "maxLength": 2048,
      -          "minLength": 1,
      -          "type": "string"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ]
      -    },
      -    "status": {
      -      "anyOf": [
      -        {
      -          "const": "evaluated",
      -          "type": "string"
      -        },
      -        {
      -          "const": "invalid_model",
      -          "type": "string"
      -        },
      -        {
      -          "const": "dimension_inconsistent",
      -          "type": "string"
      -        },
      -        {
      -          "const": "undefined_at_estimate",
      -          "type": "string"
      -        }
      -      ]
      -    },
      -    "unit": {
      -      "anyOf": [
      -        {
      -          "maxLength": 256,
      -          "minLength": 1,
      -          "type": "string"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ]
      -    },
      -    "validation": {
      -      "anyOf": [
      -        {
      -          "additionalProperties": false,
      -          "properties": {
      -            "adequate": {
      -              "type": "boolean"
      -            },
      -            "high_difference": {
      -              "maximum": 1e+300,
      -              "minimum": 0,
      -              "type": "number"
      -            },
      -            "low_difference": {
      -              "maximum": 1e+300,
      -              "minimum": 0,
      -              "type": "number"
      -            },
      -            "numerical_tolerance": {
      -              "maximum": 1e+300,
      -              "minimum": 0,
      -              "type": "number"
      -            }
      -          },
      -          "required": [
      -            "adequate",
      -            "high_difference",
      -            "low_difference",
      -            "numerical_tolerance"
      -          ],
      -          "type": "object"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ]
      -    },
      -    "verdict": {
      -      "anyOf": [
      -        {
      -          "anyOf": [
      -            {
      -              "const": "no_uncertainty",
      -              "type": "string"
      -            },
      -            {
      -              "const": "linearization_adequate",
      -              "type": "string"
      -            },
      -            {
      -              "const": "linearization_inadequate",
      -              "type": "string"
      -            },
      -            {
      -              "const": "monte_carlo_not_converged",
      -              "type": "string"
      -            },
      -            {
      -              "const": "model_undefined_for_some_draws",
      -              "type": "string"
      -            }
      -          ]
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ]
      -    }
      -  },
      -  "required": [
      -    "assumptions",
      -    "budget",
      -    "contract_version",
      -    "correlation_variance_share",
      -    "coverage",
      -    "diagnostic",
      -    "dimension",
      -    "elapsed_ms",
      -    "engine",
      -    "gum",
      -    "method",
      -    "monte_carlo",
      -    "notes",
      -    "recommended",
      -    "samples",
      -    "seed",
      -    "statement",
      -    "status",
      -    "unit",
      -    "validation",
      -    "verdict",
      -    "provenance"
      -  ],
      -  "type": "object"
      -}New value: +null
  2. Added

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources