Skip to main content
Content updated: 2026-06-23

Tool Calling

This document only includes Tool Calling usages that have been successfully validated with actual requests in the Crazyrouter production environment. Validation time:
  • 2026-03-22
Validated models:
  • gpt-5.5
  • claude-opus-4-8
  • gemini-3.1-pro

Validated Capability Matrix

Claude tool calling is currently validated according to the Anthropic Messages protocol, which means POST /v1/messages will return a tool_use block. Do not extrapolate this conclusion to Claude’s OpenAI-compatible /v1/chat/completions path; in Copilot, Continue, some VS Code Agent, or other programming scenarios that rely on tool calling, the OpenAI-compatible endpoint may not be able to trigger native Claude tool calling. If you need Claude programming Agent capability, prioritize the use of Claude Code or configuration through the Anthropic native client.

GPT-5.4

cURL
Key fields returned from production validation:

Claude Sonnet 4.6

cURL
Key fields returned from production validation:
First round integration recommendations:
  • For Claude native /v1/messages, it is recommended to explicitly add tool_choice
  • In the prompt, clearly require “must call the tool, do not answer directly”
  • This makes it easier to stably reproduce tool_use

Gemini 3 Pro

cURL
Key fields returned from production validation:

When to Use Which Protocol

  • If your project is already using the OpenAI SDK, give priority to the OpenAI-compatible approach of gpt-5.5
  • If you are integrating Claude natively, prioritize /v1/messages, and add tool_choice during the first validation round
  • If you are integrating Gemini’s native capability, opt for Gemini Native API