Skip to main content
Glama

set_distribution

Declare what an input or constant might have been — its uncertainty, drawn in a simulation — or clear it with null. Inputs and constants only: a calculated node's uncertainty is derived by running the model. Clearing also drops any correlation the node was in. Right for a one-off assumption — a tax rate, a multiple, an opening balance. For an input that varies by period — a price, a rate, a volume — a distribution says nothing about whether being wrong this period means being wrong the next, which is the biggest lever on anything cumulative: use process_build (or process_fit where the model holds the history) to give it a memory, rather than writing shock rows of your own. spreadUncertainty says how sure the spread itself is — a lognormal sigma on its width, drawn once per trial through a companion constant (0.3: one trial in six has it over 1.35× as wide); null takes it away. A distribution restated without it keeps the one it had.

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": {
      "model": "<model>",
      "name": "<name>",
      "distribution": "<distribution>"
    },
    "name": "set_distribution"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
modelYesModel uid (`model_…`), from model_list.
distributionYes
spreadUncertaintyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Goes well past the annotations by disclosing two non-obvious state effects: clearing 'also drops any correlation the node was in', and 'a distribution restated without it keeps the one it had' for spreadUncertainty. What it omits is failure behavior — whether an invalid shape/parameter combination errors out or how an overwrite of an existing distribution is reported — so it stops short of full disclosure for a mutation tool.

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?

Front-loaded with the action and the clear/null duality, and every subsequent sentence adds distinct information (scope, alternatives, correlation side effect, spreadUncertainty semantics). It is dense and the spreadUncertainty sentences are hard to parse on one pass, but there is no filler.

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 four-parameter mutation tool with no output schema and thin schema descriptions, the definition supplies the scope rule, the alternative-tool routing, and the side effects an agent would otherwise get wrong. Remaining gap is the return/confirmation behavior and error conditions, which nothing else in the supplied structured data covers.

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?

With only 25% schema description coverage, the description carries the load and mostly succeeds: spreadUncertainty is explained concretely ('a lognormal sigma on its width, drawn once per trial... 0.3: one trial in six has it over 1.35× as wide; null takes it away'), and the input/constant restriction implicitly defines what `name` may refer to. The `name` parameter itself is never described, leaving one required field to inference.

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?

States a specific verb and object — 'Declare what an input or constant might have been' — plus the inverse action ('or clear it with null'). It also carves out the scope boundary ('Inputs and constants only: a calculated node's uncertainty is derived by running the model'), which lets an agent separate this from node-computation tools without reading any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly names when this is right ('a one-off assumption — a tax rate, a multiple, an opening balance') and when it is wrong ('an input that varies by period'), and routes that case to named alternatives: process_build, or process_fit where the model holds the history. It even forecloses the wrong workaround ('rather than writing shock rows of your own').

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