router_chat_completions
Sends OpenAI-compatible chat completion requests to a specified model using message JSON and optional tools, returning model responses for agent or chatbot workflows.
Instructions
OpenAI-compatible chat completions
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"model": "<model>",
"messages_json": "<messages_json>"
},
"name": "router_chat_completions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Model ID | |
| max_tokens | No | Max tokens | |
| tools_json | No | JSON array of tools | |
| temperature | No | Temperature | |
| messages_json | Yes | JSON array of messages |