HOOLIXAgentic AI index
Explore
toolOllama

Ollama Tool Calling

Local function calling for agent loops.

Ollama supports tool calling through /api/chat and its Python and JavaScript libraries, including multi-turn agent-loop patterns.

Setup path

Install

npm i ollama
  1. 1

    Install SDK

    npm i ollama or pip install ollama -U

  2. 2

    Define tools

    Pass function schemas or callable functions to chat.

  3. 3

    Loop

    Append tool call results to messages and continue.

Tags

ollamatool-callinglocal-modelsagent-loop

Provider

Local model runtime with tool calling, structured outputs, OpenAI compatibility, and agent-loop friendly APIs.

Provider docs

Related resources

Tool
GitHub Copilot

GitHub Copilot Cloud Agent

Assign GitHub issues to a cloud coding agent.

Copilot cloud agent can work on tasks in GitHub, use repository context, and connect to MCP servers configured for the repository.

Verified 2026-06-12Open
Tool
Ollama

Ollama Structured Outputs

JSON mode and schema-constrained local responses.

Ollama structured outputs enforce JSON or a JSON schema through the format field, with Pydantic and Zod validation patterns.

Verified 2026-06-12Open
Tool
Ollama

Ollama OpenAI Compatibility

Point OpenAI-compatible clients at local Ollama.

Ollama provides compatibility with parts of the OpenAI API, including /v1/chat/completions and /v1/responses.

pip install openai
Verified 2026-06-12Open
Tool
Model Context Protocol

MCP Registry

Official metadata registry for public MCP servers.

The MCP Registry is a preview centralized metadata repository for publicly accessible MCP servers, with namespace management and standardized installation metadata.

Verified 2026-06-12Open