Skip to main content
Glama
ilyautov

consilium-principis

run_calculation

Run deterministic Monte Carlo on a valid decision map with a fixed seed to compute mean, median, p10/p90, P(best), expected regret, tornado, and uncertainties; invalid maps fail closed with errors.

Instructions

Детерминированный Монте-Карло по ВАЛИДНОЙ карте решения (ноль LLM в счёте: считает код, сид фиксирован, тот же сид → тот же результат). Невалидная карта → отказ с errors (fail-closed, доноси их вопросами совета). Возвращает на вариант mean/median/p10/p90, P(лучший), expected_regret, торнадо, top_uncertainties + label_text — готовую «📐 рамку»: показывай расчёт ТОЛЬКО с ней, лейбл «📐» — рядом с 🔵/🟢/🟡, НИКОГДА не смешивая.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nNo
mapYes
seedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses determinism (fixed seed, same seed → same result), zero LLM involvement, fail-closed behavior on invalid input, and the full set of returned metrics. It omits cost/latency expectations and what exactly the 'errors' payload looks like.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core purpose is front-loaded, which is good, but the single dense sentence crams computation semantics, failure handling, return fields, and emoji/label rendering rules together. The presentation rules are useful but read as operator instructions that compete with the tool's purpose for attention.

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?

There is no output schema, and the description compensates by enumerating the return metrics (mean/median/p10/p90, P(best), expected_regret, tornado, top_uncertainties, label_text) and the invalid-map error path. Only the undocumented 'n' parameter and any performance expectations remain gaps.

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% and the schema documents nothing, so the description must compensate. It only partially does: it establishes that 'map' must be a valid decision map and alludes to the seed being fixed, but 'n' is never mentioned and the seed's relationship to the parameter (is it settable, or forced?) is ambiguous rather than explained.

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 and resource: a deterministic Monte Carlo run over a valid decision map, and stresses that the computation is code-driven, not LLM-driven. That clearly separates it from siblings like validate_decision_map or save_decision_map, though it never names those siblings explicitly.

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

Usage Guidelines4/5

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

It states the prerequisite (the map must be VALID), the failure path (invalid map → refusal with errors, fail-closed), and how the output should be presented (only alongside the 📐 frame, never mixed with other labels). It gives clear context but does not name an alternative tool or route the agent to validate_decision_map first.

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