Skip to main content
Glama

What if…

what_if
Read-onlyIdempotent

Re-rank decision options under hypothetical weights or score changes without altering the saved session, showing new totals, margin, and whether the winner changes.

Instructions

Re-rank the options under hypothetical weights and/or scores, without changing the stored session. Answers "what if we cared more about X?" or "what if that estimate is wrong?" with the new ranking, totals, margin and whether the winner changes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
weightsNoCriterion -> weight. Name EVERY criterion to give new relative importances, or name only some to set their exact normalized weight (0-1, e.g. a flip_weight from analyze) while the rest keep their proportions.
decision_idYesId returned by start_decision, e.g. 'dec-a3f2'.
score_overridesNoHypothetical raw scores for specific cells.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already establish readOnly/not-destructive/idempotent, so the safety profile is covered. The description adds genuine behavioral context beyond that: the session is not modified, and the response includes ranking, totals, margin, and whether the winner changes. It does not disclose output schema contents in detail, but the output schema exists and carries that burden.

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

Conciseness5/5

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

Three sentences, zero filler, front-loaded with the core operation and the non-mutation guarantee. Every clause earns its place.

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 read-only hypothetical ranking tool with a rich schema and an output schema, the description covers purpose, safety, and return shape. The only minor gap is not naming which sibling to use instead for persisting changes, but overall it is complete enough to invoke correctly.

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 coverage is 100%, so the baseline is 3, but the description adds meaning beyond the schema: it clarifies that both weights and score overrides are hypothetical and that omitting them falls back to stored values. It complements rather than repeats the parameter docs.

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 (re-rank) and resource (options under hypothetical weights/scores), and immediately distinguishes itself from the mutation siblings by declaring it does not change the stored session. An agent can separate this from score_option or analyze without opening a schema.

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?

The description gives concrete motivating questions ('what if we cared more about X?', 'what if that estimate is wrong?') that define when to reach for it, and the read-only, non-persisting framing implies when not to (use score_option to persist). It stops short of naming the alternative tools explicitly, so no exclusions are stated.

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