Overview
Let models call GonkaGate-operated tools during a chat-completions request.
Server Tools are GonkaGate-operated tools that a model can use during a POST /v1/chat/completions request. Add them to the OpenAI-compatible tools array with the gonkagate: prefix. Your application does not need to implement the tool callback.
Available tools
| Tool | Type | What it does |
|---|---|---|
| Web Search | gonkagate:web_search | Gives the request access to current web information through GonkaGate web search. |
| Web Fetch | gonkagate:web_fetch | Lets the model fetch a public URL and read extracted HTML, text, or PDF content. |
| Datetime | gonkagate:datetime | Gives the model the current date and time, optionally in a specific timezone. |
How it works
- Include one or more GonkaGate server tools in
tools. - Send the request to
https://api.gonkagate.com/v1/chat/completionsas a normal chat-completions call. - GonkaGate executes the server tool when it is needed and passes the result back to the model.
- The final response is returned in the usual
choices[0].message.contentfield.
Server tools can be used next to normal user-defined function tools. GonkaGate executes only the gonkagate:* tools. Your application still handles your own function tools.
Quick start
export GONKAGATE_API_KEY="gp-your-api-key"
curl https://api.gonkagate.com/v1/chat/completions \
-H "Authorization: Bearer $GONKAGATE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen/qwen3-235b-a22b-instruct-2507-fp8",
"messages": [
{
"role": "user",
"content": "What changed in AI this week, and what day is it in New York?"
}
],
"tools": [
{ "type": "gonkagate:web_search" },
{
"type": "gonkagate:datetime",
"parameters": { "timezone": "America/New_York" }
}
]
}'Server Tools vs Plugins vs User-Defined Tools
| Server Tools | Plugins | User-Defined Tools | |
|---|---|---|---|
| Who decides to use it | The model | Always runs | The model |
| Who executes it | GonkaGate | GonkaGate | Your application |
| Call frequency | 0 to N times per request | Once per request | 0 to N times per request |
| Specified via | tools array | plugins array | tools array |
| Type prefix | gonkagate:* | N/A | function |
Plugins remain supported. Use Server Tools when you want the model to decide whether to use a GonkaGate-operated tool during a request. Use plugins when you need plugin-specific request fields or saved plugin settings.
Compatibility notes
- Server tool types must use the
gonkagate:prefix. gonkagate:web_searchuses existing GonkaGate web-search behavior and does not accept request-level server-tool parameters.gonkagate:web_fetchsupports non-streaming chat completions only. Do not use it withstream: true.- If you combine
gonkagate:web_fetchwith your own function tools, the model must not call Web Fetch and your function tool in the same assistant turn. gonkagate:datetimeworks by adding the current datetime context before the model response.
See also
- Web Search for current information.
- Web Fetch for reading public URLs.
- Datetime for timezone-aware current time.
- Tool Calling for user-defined function tools.
- Chat Completions API reference for the full request schema.
Was this page helpful?