How Tools Execute
Every tool call plays out on a timeline with three phases: what the assistant says before the call, when the tool actually runs, and what the assistant says after. The configuration flags each change the timing of these phases: whether a phase exists, when it starts, whether it overlaps the others, and whether the caller can interrupt. Every diagram opens the same way, with the caller asking for something.
The first choice is the execution mode. Every other flag notes in its heading which modes it applies to, and each compares against the baseline (sync, all flags off). That baseline is a comparison point, not the shipped configuration: require_speech_before_tool_call is on by default. Not every tool type accepts every flag; see which tool types accept each flag.
execution_mode: sync vs async
The first and biggest choice. Sync (the default, and the baseline for the rest of this page): the assistant goes silent and the answer waits until the tool returns. Async: the assistant fires the tool and forgets it, the conversation keeps going in parallel. The key subtlety with async: the result is detached from tool timing. A reply before the tool finishes can’t use it, and the result then sits in context until a later turn actually needs it, whenever that happens.
require_speech_before_tool_call (sync and async)
Off, the pre-tool line is optional: the model decides whether to say anything first. On — the default — the assistant is forced to speak first, so the pre-tool line always appears and the tool never runs in silence.
wait_for_speech_before_tool_call (sync and async)
To cut latency, Phonic normally dispatches the tool as soon as the model emits the call, which can overlap the assistant’s own speech. Turn this on to hold the tool until the assistant has finished speaking.
forbid_tool_call_after_speech (sync and async)
Off (the baseline), the assistant can call a tool even after it has already spoken in the turn. On, if the assistant already spoke this turn, the tool call is dropped rather than executed, useful for tools that only make sense as the very first thing the agent does.
uninterruptible (sync only)
Off (the baseline), caller speech during a sync tool call cancels the call and the assistant handles the new input. On, the caller can’t interrupt the tool, but the assistant still hears them and can respond to it once the tool completes.
forbid_speech_after_tool_call (sync and async)
Off (the baseline), the assistant generates a response once the result is back. On, no response is generated after the tool returns, useful when the tool’s side effect is the whole point and you don’t want the agent to narrate it.
wait_for_response (async only)
Off (the baseline for async), the tool behaves like plain async: the result is added to context and used only when a later turn needs it, nothing is held. With wait_for_response on, the async tool enters “busy mode”: the agent stops offering other tools and stays on the task, keeps the caller posted while it waits, and proactively delivers the result the moment it lands. The conversation isn’t frozen: the caller and agent can still talk during the wait, the agent just can’t call other tools.
Common combination: long-running background task
async + wait_for_response + forbid_speech_after_tool_call + allow_tool_chaining: false. Use this when a tool kicks off slow backend work (a lookup that takes several seconds, a booking, a payment) and you want the agent to acknowledge the request, skip narrating the tool call itself, keep the caller posted while it runs, then come back with the answer on its own. (Compare the wait_for_response timeline above, where the agent announces “tool has been called” right after firing; forbid_speech_after_tool_call is what removes that.)
Which tool types accept each flag
These flags configure custom tools, and a few also apply to the transfer tools. Send a flag only with a tool type that accepts it: creating a tool with a flag its type doesn’t accept fails with a 400 error naming that field.
The built-in tool instances (built_in_natural_conversation_ending, built_in_keypad_input, and built_in_choose_not_to_respond) accept none of these flags, because their timing is built in. Instead:
built_in_natural_conversation_endingandbuilt_in_keypad_inputtakespeech_before_tool_call("required","optional", or"suppressed").built_in_choose_not_to_respondtakes onlyrespond_after_sec. Silence is what the tool does, so there is no speech setting to configure.
See Built-in Tools for how each one behaves.
Flags by tool type
The same rules, read by tool type:
Leave out every flag your tool type doesn’t accept. The API rejects the field being present, not its value, so sending a flag as false (or as its default) fails just the same. For example, creating a built_in_transfer_to_agent tool with "wait_for_speech_before_tool_call": false returns:
A minimal valid built_in_transfer_to_agent create body sends only that type’s fields:
require_speech_before_tool_call is optional here and defaults to true.