Tool and tool calling
Agents and tools · tool call, tool use, function calling
A tool is an action the agent can call: read a file, find a ticket in Jira, run a database query. The set of tools defines what the agent can do and what it can reach. Tool calling (function calling) works like this: the model returns a function name and arguments, for example search_jira with the query “login”; the harness runs the call and passes the result back to the model.
How a tool call works
- 1. Description · along with the task, the harness sends the model a list of tools. For each: a name (
search_jira), what it does (“searches Jira tickets”) and parameters (query, a search string). - 2. The model’s call · the model returns a call as JSON:
{"name": "search_jira", "arguments": {"query": "login"}}. - 3. Execution · the harness checks the call against permissions and queries Jira. Writes and deletions are shown to a person for approval first.
- 4. The result · the harness adds Jira’s answer (“3 tickets: …”) to the context and runs the model again. The model calls the next tool or writes the answer.
- Which models support it · models from OpenAI (GPT), Anthropic (Claude), DeepSeek and other current LLMs; local ones through Ollama, if the model supports tools.
- Tool calling vs MCP · tool calling is the call format from steps 2–4. MCP is a protocol through which an outside system (Jira, a 1C database) gives the agent its own list of tools and runs their calls.
Source: Anthropic: Tool use docs
Where it appears · 13
- AI agent = LLM + harness · Harness
- MCP server and AI agent for 1C · Harness
- Analytical reports with an AI agent · Harness
- Claude in Chrome · Harness
- The agent’s data plane and control plane · Harness
More 8
- MCP scopes in Claude Code · Harness
- MCP for an AI agent · Harness
- Claude Code, Codex, Cursor and Hermes Agent · Harness
- How to run and analyze interviews about AI use · Research
- ChatGPT Enterprise usage report for a company · Research
- Harness engineering in practice · Harness
- Who to interview before buying AI tools · Research
- Prompts for work tasks · Prompts and review