Skip to main content
Glama

decide

Answer typed yes/no, choice, or score questions about supplied evidence with probabilistic outputs instead of generated text, batching related questions into one call.

Instructions

Answer typed questions about some evidence with a fast decision model. Returns probabilities, not text. Batch all questions about the same evidence into one call.

Question types:

  • predicate: yes/no. Returns probability that the condition holds. e.g. {"name": "ready_to_merge", "type": "predicate", "instructions": "Do the facts show that all required checks passed?"}

  • choice: pick one option. Returns choice, probabilities per option and confidence. e.g. {"name": "next_state", "type": "choice", "instructions": "Which state should the workflow move to next?", "choices": [{"value": "review", "description": "A human must look at it."}, {"value": "approve"}, {"value": "reject"}, {"value": "other", "description": "None of the above fits."}]}

  • score: place it on an ordered scale. Returns label (most likely level), score (probability-weighted 0-based level index), probabilities per level and confidence. e.g. {"name": "urgency", "type": "score", "instructions": "How urgent is this issue?", "levels": [{"label": "low"}, {"label": "medium"}, {"label": "high"}]}

Writing good questions:

  • instructions is one specific question or condition.

  • Choices are mutually exclusive and cover every case; add an "other" or "none" choice when the set may be incomplete. Give each a one-line description when the value alone is ambiguous.

  • Levels are ordered from low to high (2-10 of them).

  • name is unique per call (letters, digits, _ or -); answers are keyed by it.

evidence is plain text or a JSON object with everything the decision depends on.

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": {
      "evidence": "<evidence>",
      "questions": "<questions>"
    },
    "name": "decide"
  }
}

Input Schema

NameRequiredDescriptionDefault
evidenceYesPlain text or a JSON object with every fact the decision depends on.
questionsYes1-400 questions about the evidence.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it does much of that work: it discloses that outputs are probabilities rather than text, and enumerates the returned fields per question type (probability, choice, probabilities, confidence, label, score). It does not state evidence size limits, question-count limits, determinism, cost, or latency expectations, which are relevant for a decision-model call.

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 purpose and the key output fact, then cleanly sectioned into question types and authoring guidance, with zero filler prose. It loses a point for repeating schema-enforced constraints (2-10 levels, allowed characters in name, unique names) that the input schema already states verbatim.

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 two-parameter tool with an output schema and 100% schema description coverage, the description covers what an agent needs to construct valid questions and read answers correctly. Remaining gaps are operational (evidence size, question limits, cost/latency of the fast model) rather than structural.

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 100%, so baseline would be 3, but the description goes well beyond it with worked JSON examples for each question type and semantic rules the schema cannot express: instructions must be one specific question, choices must be mutually exclusive and exhaustive, descriptions should be added when a value alone is ambiguous, levels must be ordered. This is meaning-additive rather than a restatement.

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 resource ("answer typed questions about some evidence") plus the crucial output distinction ("returns probabilities, not text") and the engine's character ("fast decision model"). An agent immediately knows this is a classification/scoring call, not a generative one.

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?

Gives concrete operational guidance: batch all questions about the same evidence into one call, choose predicate vs choice vs score by output shape, cover all cases and add an "other"/"none" option, order levels low to high. It lacks any explicit when-not-to-use guidance or alternative (e.g. when to prefer a reasoning/generative tool over this fast model), which is the only gap.

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