Tools & Function Calling
How the tool loop works
1. Send prompt + tool definitions to LLM
2. LLM responds with tool_calls (or final text)
3. If tool_calls:
a. Execute all tool calls in parallel
b. Append results to conversation
c. Go to step 1 (re-invoke LLM with results)
4. If final text: return responseTool types
Type
What it does
External tools
Configuration
Field
Description
How it works
Parameter placeholders in URLs
Environment-specific URLs
Virtual tools (provider-native)
Available virtual tools
Tool ID
Provider
Description
Using virtual tools
Agent tools
Configuration
Field
Description
How it works
Safety mechanisms
Context tools
Tool
Description
CritiqueLoop tools
Configuration
Field
Description
How it works
Critic response format
MCP tools
Managing tools via API
Method
Endpoint
Description
Tool parameter schema
Last updated