Skip to main content
Glama

choice

Pick one option from 2-100 mutually exclusive options with calibrated probabilities, surfacing near-ties. Use for triage, routing, classification, prioritization, or tie-breaking.

Instructions

Ask Jev (TypeSafe System One) to pick ONE of 2-100 mutually exclusive options, with calibrated probabilities.

The official choice question type — for fast, cheap structured decisions: triage, routing, classification, prioritization, tie-breaking among enumerated candidates. Returns probabilities over ALL options (not just the winner), so near-ties are visible. NOT for open-ended generation or multi-step reasoning — use an LLM for those.

Args: question: The decision, e.g. "Which error class is most likely the root cause?" options: Mapping of short unique id -> one-line description. 2-100 options. context: Optional background facts that inform the decision. Keep it short.

Returns: JSON string: {choice, confidence, probabilities (sorted desc), runner_up, model, latency_ms, usage}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contextNo
optionsYes
questionYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations provided, the description carries the full behavioral burden and does so thoroughly. It discloses calibrated probabilities, that the response covers ALL options so near-ties are visible, and the exact JSON return shape including choice, confidence, probabilities, runner_up, model, latency_ms, and usage.

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?

The description is well structured: a lead sentence, a use-case paragraph, an Args block, and a Returns block. Every sentence contributes useful information, and the most decision-relevant constraints are front-loaded.

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 tool with no annotations, the description is nearly self-contained: it covers purpose, parameters, output, constraints, and exclusions. It does not mention error/validation behavior, such as what happens with fewer than 2 options or malformed option values, which is a minor gap for a tool that otherwise documents its contract well.

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

Parameters5/5

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

Schema coverage is 0%, but the description compensates for all three parameters: `question` is clarified with a concrete example, `options` is constrained to a mapping of short unique ids to one-line descriptions with a 2-100 count bound, and `context` is marked optional and advised to be short. This adds substantial meaning beyond the raw schema.

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 precise operation: ask Jev to pick one of 2-100 mutually exclusive options with calibrated probabilities, and names typical decision uses like triage, routing, classification, prioritization, and tie-breaking. It is clearly scoped, but it does not explicitly differentiate itself from the sibling `classify` and `score` tools, whose purposes overlap with 'classification' and 'prioritization'.

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 explicit when-to-use context ('fast, cheap structured decisions') and clear when-not-to-use guidance ('NOT for open-ended generation or multi-step reasoning'), including an alternative ('use an LLM for those'). However, it does not address how `choice` relates to the sibling tools `classify` and `score`, leaving some selection ambiguity.

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

Deploy Server

Other Tools