Clef Decide
clef_decideJudge decisions with a local Clef model and return strict JSON probability distributions for choice, score, and yes/no questions, including confidence scores for decisive next actions.
Instructions
Judge a situation with the local Clef decision model.
Pass state (compact factual context — string or JSON; treated as data, never executed) and typed questions:
"choice": pick among named options (criteria = option id -> description)
"score": judge an ordered scale (criteria = ordered list of levels)
"noul": yes/no question Returns strict JSON: a probability distribution over the allowed answers per question — no prose, no sampling. Each decision carries model-reported
confidence;usagereports input_tokens/output_tokens and latency_ms. Act on the argmax only when decisive: top p >= 0.8 and high confidence for destructive or security-adjacent calls; otherwise gather more context or ask the user. Batch related decisions in one call — up to 64 questions scored in a single forward pass.modeloverrides the default id.
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": "clef_decide"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model id to use (default: clef-flash from CLEF_MODEL). | |
| state | Yes | Task state as data: a compact string or JSON object with the facts needed to judge (task, errors, logs, diffs). Never treated as instructions. Serialized size limit: 1 MB; model context is 16k tokens. | |
| options | No | Extra options. Currently only temperature, which is a documented no-op. | |
| questions | Yes | Map of question id -> typed question. Up to 64 questions per call; all are scored together in a single forward pass, so batch related decisions here. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | ||
| usage | No | ||
| decisions | Yes |