http block to a tool on your stored agent, and AssemblyAI calls the endpoint whenever the model invokes the tool. There’s no tool.call/tool.result round trip in your client; your app just streams audio.
parameters is a JSON Schema object (the same format as function tools), so the accuracy hints (enum, examples, pattern, format) work here too.
How arguments map to the request
The model’s arguments are placed into the request based on the HTTP method:| Method | Where arguments go |
|---|---|
GET, DELETE | Query string. Each value stringified; null values dropped. |
POST, PUT, PATCH | JSON body. Native types preserved (numbers, nested objects). |
url are merged with the model’s arguments, so you can pin fixed params in the URL and let the model fill the dynamic ones. The response body (capped at 8 KiB) is fed back to the model as the tool result.
Securing and constraining HTTP tools
- Auth headers are write-only. Values in
http.headersare encrypted at rest and returned masked as"***". Put API keys and bearer tokens here. httpsand public hosts only. Requests to private, loopback, or link-local addresses are blocked; redirects are not followed.- Errors reach the model as text. A timeout or non-2xx returns a short message the model can recover from, so write your API to return useful error bodies, and tell the agent in its
system_prompthow to handle a failure (for example, apologize and ask the caller to try again, or offer an alternative).
Make them more accurate
Everything on the Tools overview applies to HTTP tools:- Parameter hints:
enum,examples,pattern,formatper property. - Execution modes:
interactivevshold. - Getting the agent to call your tools and per-agent patterns.