Chat
chatSend messages to AI models across providers (OpenAI, Anthropic, Google, Grok) and get responses using a single MCP interface.
Instructions
Chat with AI models from various providers
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": {
"messages": "<messages>",
"model": "<model>"
},
"name": "chat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Model ID (e.g., 'gpt-4', 'claude-3-opus', 'gemini-pro') | |
| stream | No | Whether to stream the response | |
| messages | Yes | List of message dicts with 'role' and 'content' | |
| provider | No | Optional provider name ('openai', 'anthropic', 'google', 'grok') | |
| max_tokens | No | Maximum tokens to generate | |
| temperature | No | Sampling temperature (0.0-2.0) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||