Tool and tool calling
A tool is an action the agent can call: read a file, find a ticket in Jira, run a database query. MCP is an open way to plug ready-made tool sets of outside systems into an agent. 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.
Frequently asked questions
What is tool calling?
Calling a tool: the model returns a function name and parameters, the harness runs the call and passes the result back to the model.Source: Anthropic: Tool use docs
Where it appears · 17
- Escalation to a human in AI agents · Harness
- AI agent maturity levels · Specs and context
- TLA+ vs Quint vs Alloy, which formal verification language to choose · Specs and context
- Jira and an AI agent · Harness
- AI agent = LLM + harness · Harness
More 12
- 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
- MCP scopes in Claude Code · Harness
- MCP for an AI agent · Harness
- Codex vs Claude Code, which to pick, and when Cursor or Hermes Agent fits · Harness
- How to run and analyze interviews about AI use · Research
- ChatGPT Enterprise usage report from admin console exports · Research
- Harness engineering in practice · Harness
- Who to interview before buying AI tools · Research
- Prompts for work tasks · Prompts and review