Decide
decideClassify, route, triage, moderate, or grade text, JSON, or images by asking an Ollama decision model structured choice, yes/no, or score questions in one call; it returns probabilities you can threshold.
Instructions
Ask an Ollama decision model to answer one or more structured questions about a state, in a single call. Answers are probabilities, never free text, so you can threshold them.
Inputs:
state: what to judge. Non-empty text, or a JSON object or array (sent as JSON text).
questions: map of question name to question. 1 to 64 questions. Names are 1-100 characters of ASCII letters, digits, "_", "." or "-".
images (optional): up to 4 images as raw base64 strings (no data: URLs, no http URLs).
Every question has a type, instructions (text, or a JSON object or array, explaining what to decide) and criteria:
choice: pick exactly one label. criteria is required: an object mapping 2-26 label keys to a description string or null. Answer: choice (the winning key), probabilities (one per key, summing to 1) and confidence (0-1).
noul: a yes/no judgement. criteria is optional: exactly {"false": "...", "true": "..."} describing each side. Answer: noul, the probability from 0 to 1 that the statement is true. It is not a boolean and has no confidence field.
score: place the state on an ordered scale. criteria is required: an array of 2-10 level descriptions ordered from lowest to highest. Answer: score, the probability-weighted mean of the zero-based level index (for example 1.84 on a 0-2 scale; not rounded), legend (index to description), probabilities (per index) and confidence (0-1).
Use it for classification, routing, triage, moderation and rubric grading. Do not use it to generate text.
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
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | The input to judge: non-empty text, or a JSON object or array (sent as JSON text). | |
| images | No | ||
| questions | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | ||
| usage | Yes | ||
| answers | Yes |