ai-stats:advisor when the main model should be able to ask another model for a review, plan, sanity check, or specialist opinion before it finishes.
The main model calls Advisor like any other tool. AI Stats runs the Advisor model server-side and returns the advice as the tool result. The main model then writes the final response.
Advisor is gateway-managed across supported text models. It is not converted into Anthropic’s native Advisor tool unless the client explicitly sends Anthropic’s native tool shape.
Quick start
Choosing the Advisor model
You can pin the Advisor model in the tool definition:parameters.model is omitted, the tool call may provide model. If neither is set, AI Stats falls back to the outer request model.
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
name | string | none | Optional Advisor name. Names must be unique after trimming and may contain letters, numbers, spaces, underscores, and dashes. |
model | string | outer model | Advisor model to call. If omitted, the tool call can provide model. |
instructions | string | default Advisor behavior | Extra instructions for the Advisor model. |
forward_transcript | boolean | false | Include the current conversation transcript in the Advisor request. |
max_uses | integer | 1 | Maximum calls for this Advisor during the server-tool loop. |
max_completion_tokens | integer | 1400 | Max output tokens for the Advisor response. |
max_tokens | integer | 1400 | Legacy alias for max_completion_tokens. |
reasoning | object | provider default | Reasoning config forwarded to the Advisor call when supported by the selected model/provider. |
temperature | number | provider default | Sampling temperature for the Advisor call. |
Tool-call arguments
The model normally calls Advisor with aprompt:
model:
forward_transcript is true, AI Stats can execute a transcript-only Advisor call if the model does not supply a prompt.
Multiple advisors
Add oneai-stats:advisor entry per advisor. Each named advisor becomes a distinct internal tool, such as ai_stats_advisor_security_reviewer or ai_stats_advisor_architect.
name. If you force tool_choice: "ai-stats:advisor" with multiple advisors, AI Stats maps that alias to the first configured Advisor.
What the tool returns
Advisor returns JSON as the tool result:advisor_invalid_request, advisor_max_uses_exceeded, or advisor_request_failed.
Conversation memory
Advisor does not keep hidden cross-request state. If you replay prior messages and tool results in the next request, the main model can see the prior consultation. Ifforward_transcript is enabled, the Advisor can also see the forwarded conversation transcript for that request.
Usage and pricing
Advisor calls increment:server_tool_advisor_requests.
Current limits
- Advisor sub-agent tools are not enabled yet.
- Advisor advice streaming is not enabled yet.
- Recursive Advisor calls are blocked by the server-tool loop limits.