Skip to main content
The toolcall model is in alpha. The API shape and behavior may change, and there is no SLA yet. We welcome feedback at support@scaledown.ai.

Overview

Toolcall is called through the OpenAI-compatible POST /v1/chat/completions endpoint. Set model to toolcall (latest) or toolcall-1 (pinned to version 1) and send the conversation plus your tool definitions. The model returns exactly one tool call - the function to invoke and its arguments, as a JSON string that validates against that tool’s schema. It never returns text: content is always null. Because the endpoint is OpenAI-compatible, you can point an unmodified OpenAI or OpenRouter SDK at ScaleDown by changing only the base URL and API key.

Request

string
required
"toolcall" (always the latest version) or "toolcall-1" (pinned to version 1). Both currently behave identically.
array
required
Standard OpenAI chat messages. The last user message is the request to route. system messages are optional and can steer selection (e.g. disambiguation rules). Full multi-turn history is accepted, including prior assistant tool calls and tool results - see multi-turn conversations.
array
required
Your tool inventory, in the OpenAI function-tool format: {"type": "function", "function": {"name", "description", "parameters"}}. Non-empty, at most 64 tools, unique function.names, and only "type": "function" is supported. parameters must be a JSON Schema object (string, integer, number, boolean, array, object; properties, required, enum, items, and nested objects are all supported). Names may contain dots.
string | object
"auto" (default) - pick the best-matching tool. "required" - same behavior, explicit. {"type": "function", "function": {"name": "..."}} - force one specific tool; the model fills its arguments from the conversation even if another tool would fit better. "none" is not supported (400): the model can only respond with a tool call.
temperature, top_p, seed and other sampling parameters are accepted for client compatibility but ignored - sampling is fixed server-side. stream and response_format are rejected (400).

Example

Response

A standard chat.completion.
string
Echoes the model you sent (toolcall or toolcall-1).
null
Always null. The model produces no text.
array
Exactly one tool call:
string
Always "tool_calls".
object
prompt_tokens is the input tokens billed for the request ($0.05 per 1M), completion_tokens the output tokens (free), and total_tokens their sum.

Behavior

  • One tool call per response. Parallel tool calls are not supported. If a request implies several actions, issue follow-up turns or one request per action.
  • Always calls something. With tool_choice: "auto" the model picks the best-matching tool even for vague or off-topic input - it cannot decline. Use tool_choice with a specific function when you need guaranteed routing.
  • Schema-valid arguments, always. The decode is constrained to each tool’s JSON Schema; optional parameters the request does not specify are omitted rather than filled with placeholders.
  • Deterministic-ish. Sampling is fixed server-side. Like any sampled model, identical requests can occasionally differ on optional-argument values.

Multi-turn conversations

Feed the executed result back as a tool message and the model routes the next user message with full context - including resolving references like “that city” across turns.
This routes to get_time with {"tz": "Europe/Paris"}.

Writing tools that route well

Empirically (BFCL v3 benchmarking: 93% single-tool / 91% multi-tool selection accuracy):
  1. Put formats in descriptions. "The city and state, e.g. Portland, OR" is followed; a bare string invites free-form values.
  2. Use enum when the vocabulary is closed. Enum values are copied verbatim - including into the right parameter when two parameters have similar enums.
  3. Describe units and conventions (“rate as decimal, 10% -> 0.1”; dates as YYYY-MM-DD).
  4. Mark only truly required parameters required. Unspecified optional parameters are omitted.
  5. One tool per intent - since the model returns a single call, split compound requests (“check X then book Y”) across turns.

Errors

Limits

Questions or feedback? Contact support@scaledown.ai.