Skip to main content
Tools are what turn a model into an agent. On its own a model answers only from what it already knows; tools let it search the live web, fetch a page, run code, or call into your own systems. You enable tools by listing them in the tools array, and within a single request the model runs an agentic loop — it reasons, calls a tool, observes the result, and repeats until it can answer.

Three kinds of tools

Built-in tools

Enable each by its type. Every tool has its own reference page for full settings, response shape, and pricing.

Bring your own

MCP servers

Connect a remote MCP server with type: mcp and let the model call its tools automatically.

Custom functions

Declare a type: function tool with a JSON Schema and run the call on your side.