Skip to main content
Glama

decide

Computes option probabilities from a text or JSON situation and named choice, yes/no, or score questions, returning confidence values for automated decisions.

Instructions

决策模型(Clef/d3/d3-flash,d3-flash 更快):描述情境 state(文本或 JSON)+ 命名问题 questions → 每个选项的概率。不生成文本。

questions 三种题型:

  • choice: {"type":"choice","instructions":"问题","criteria":{"选项名":"含义",...}}

  • noul(是否): {"type":"noul","instructions":"问题"}

  • score: {"type":"score","instructions":"问题","criteria":["低","中","高"]}(有序,最低在前) images/videos 为 data URL/本地路径列表(请求体 <5MB,单题 ≤32768 token)。 自动决策请看 probabilities/confidence,而非仅 top 答案(0.55 与 0.99 都是"是", 但只有后者适合自动执行)。按输入 token 计费。

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

Input Schema

NameRequiredDescriptionDefault
modelNod3
stateYes
imagesNo
videosNo
questionsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.3/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 mostly succeeds: it discloses request body <5MB, ≤32768 tokens per question, image/video input as data URL or local path, token-based billing, and, crucially, that output is probabilities with confidence semantics rather than generated text. It lacks any statement about side effects, auth, or determinism, which keeps it from a 5.

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?

The description is front-loaded with the core sentence, and the bulleted question-type list is scannable, so nearly every clause carries information (types, limits, confidence guidance, billing). It is dense, and the 0.55-vs-0.99 aside adds length, but it earns its space rather than padding.

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 a 5-parameter nested schema, no annotations, and no output schema, the description covers inputs well and hints at return fields (probabilities/confidence), but it never states the exact response shape or error behavior. It is adequate but leaves some gaps for a tool this complex.

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%, yet the description defines all five parameters: model options (Clef/d3/d3-flash, with d3-flash faster), state as text or JSON, images/videos as URL/path lists, and full JSON shapes for the three question types (choice, noul, score with ordered criteria). This is exactly the compensation the bare anyOf schema needs.

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?

The description states the verb and result explicitly: it takes a situation state plus named questions and returns a probability for each option, and it states what it does not do ("不生成文本"), which cleanly separates it from text-generating siblings such as chat. An agent can identify the operation without opening the 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 usage guidance for automated decision-making: use probabilities/confidence rather than the top answer, and only strict confidence (for example 0.99 rather than 0.55) suits auto-execution. It never names an explicit alternative tool or a clear when-not-to-use condition, so it falls short of a 5.

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