/analyze researches each schema field independently. /decide answers the whole schema in a single reasoning pass — use it when the fields are facets of one judgment: where to file a document, which branch a workflow should take, what to rename a file.
When to use Decide vs Analyze
Rule of thumb: if the fields are separate questions about the document, use
/analyze. If they describe one decision — where every field must be consistent with the others — use /decide.
What makes it different
instructionsis a first-class parameter — you state the task and what makes a decision correct, instead of encoding it into field descriptions.contextcarries your situational data — folder trees, sibling decisions, established facts. Labeled blocks the agent treats as authoritative.- One reasoning pass — every field comes from the same judgment, so
reasoningis a single string and the fields never contradict each other. - Failures are errors — provider overload returns
503withRetry-After, provider errors return502. A200always contains a real decision, never null answers with zero confidence. - The document is optional — pass only
contextfor pure-context decisions.
Example
Request parts
At least one of
file, url, or context is required — a decision needs something to decide from.
Response
Error handling
A200 always contains a real decision. Upstream AI failures surface as real HTTP errors: