Skip to main content
Glama

decide

Evaluates content, instructions, or files against yes/no questions and returns calibrated probabilities for QA gates, spelling checks, and consistency or hallucination checks.

Instructions

Decisions API: calibrated probability of "yes" for each yes/no question. Cheap and fast. Great as a QA gate, e.g. "Is the in-image text spelled correctly?" or, with a reference and a generated image, "Is it the same product in both images?" (hallucination/consistency check).

content: text or instructions to evaluate. questions: list of yes/no questions. files: optional files to include. model: default gemini-decision-1.

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

Input Schema

NameRequiredDescriptionDefault
filesNo
modelNo
contentYes
questionsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv6.0.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description must carry the full behavioral load. It does disclose useful traits — cost/latency profile, the default model, and the per-question probability return shape — but says nothing about side effects (presumably read-only inference), input limits, or failure behavior for malformed questions.

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?

Purpose is front-loaded in the first sentence, examples follow, and a compact parameter glossary closes it out. The fragmentary style ('Cheap and fast.') is terse but every line carries information; no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/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, no output schema, and four undocumented parameters, the definition covers the essentials but leaves meaningful holes: exact return structure (score array alignment with questions, probability scale), file input format, and model options. An agent could call it, but might guess wrong on files or output parsing.

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 description coverage is 0%, so the description has to explain all four parameters, and it nearly does: content (text or instructions), questions (list of yes/no questions), files (optional inclusions), model (with default gemini-decision-1). The gap is that the accepted format of 'files' (paths, URLs, base64?) and available model values are left unstated.

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?

States a concrete operation and output: a calibrated probability of 'yes' per yes/no question, framed as a 'Decisions API'. This is specific enough to distinguish it from generative siblings like gemini_chat or deep_research, though it never names an alternative 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?

Gives two concrete application contexts (QA gate for text spelling, reference-based hallucination/consistency check across images) and characterizes it as 'cheap and fast', which signals when to prefer it over heavier models. It stops short of saying when not to use it, e.g. for open-ended generation or multi-label classification.

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