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.

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": {
      "expression": "<expression>",
      "variables": "<variables>"
    },
    "name": "propagate_uncertainty"
  }
}

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

A3.7/5.0
Behavior4/5

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

The annotations already declare that the tool is read-only, idempotent, non-destructive, and closed-world. The description adds behavior beyond those annotations by mentioning seeded fixed-sample Monte Carlo, returned uncertainty budgets and convergence/linearization findings, CPU/direct-only execution, and no planner binding. It does not cover permissions or rate limits, but it adds substantial operational context.

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?

The description is compact and front-loads the core workflow: 'Check dimensions, then compare first-order GUM with seeded fixed-sample Monte Carlo...'. It packs return values, domain constraints, and execution constraints into a short space without filler. Some terms such as 'affine units' and 'planner binding' are dense, but the overall structure is efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex numerical tool with seven parameters and no output schema, the description explains the main return concepts: uncertainty budgets, coverage intervals, and convergence/linearization findings. It also states important execution and domain constraints, including no affine units and no planner binding. Minor details such as result formatting or failure modes are absent, but the definition is complete enough to support correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is high at 86%, so the schema already carries most parameter meaning, including units, distributions, sample count, coverage, and correlations. The description adds some useful constraints such as '1–16 inputs', 'Conditional on supplied distributions', and 'no affine units', but these largely reinforce or summarize information already present in the schema. A baseline 3 is appropriate.

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 states a specific action and resource: check dimensions, then compare first-order GUM with seeded fixed-sample Monte Carlo for a model with 1–16 inputs. It also names the returned artifacts, so the agent can identify the tool's function without opening the schema. It does not explicitly distinguish itself from any sibling tool, which keeps it below a 5.

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?

The description gives useful constraints such as 'for an explicit model of 1–16 inputs', 'Conditional on supplied distributions', and 'no affine units', which imply when the tool applies. However, it does not state when not to use it or name an alternative sibling tool for related statistical or arithmetic checks. Guidance is present but remains implicit rather than explicit.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources