64 questionsQuestion · Short answer
Tools and MCPs
For developer-defined client tools, retain the complete assistant turn containing the tool_use blocks. Then send the next user message with one tool_result for each client call. Set each tool_use_id to that call's ID and put all result…
Applications and Integration
Use Claude JSON outputs when downstream code needs a defined response shape. Use strict tool use when Claude proposes arguments for a registered tool. On a supported Claude API model, the first uses output_config.format with type:…
Model Selection and Optimization
Start with the documented thinking mode and default effort for your exact model, then change one supported control at a time on the same evaluation set. Use the lowest effort that clears the required quality and safety gates within the…
Applications and Integration
Check the API outcome and completion metadata before using the JSON payload. A response with stop_reason: "refusal" can return HTTP 200, and stop_reason: "max_tokens" can leave JSON incomplete. Route these outcomes to explicit application…