Skip to content
AI Skills Central

Type to search Agent Skills, workflows, tutorials, tools and the glossary.

Building with LLMs

Tool calling

Letting a model request function calls, running them, and feeding results back.

Intermediate
Bookmark

Bookmarks are kept in your free account, so you can find this page again on any device.

Sign in to bookmark
On this page

Overview

Tool calling (also called function calling) lets a model ask your code to do something: look up an order, search documents, run a query. You describe each tool with a name, a description and a JSON Schema for its arguments. The model replies with a tool call instead of text, your code runs it, and you send the result back so the model can continue.

The craft is in the tool design. Descriptions should say when to use the tool and when not to; arguments should be few and well typed; results should be concise and include useful error messages. Anything with side effects needs permission checks in your code, because the model's request is only a request.

What you will practise

  • Write tool descriptions that say when, and when not, to use each tool
  • Keep arguments few and strictly typed
  • Return concise results and useful error messages
  • Enforce permissions in your code, not in the prompt

Learning paths

  • Agents and MCP

    An AI agents and MCP course for developers: build a tool-using agent with a clear stop condition, then expose your own data and actions with an MCP server.

    Intermediate10 h13 steps

  • Building with the Claude API

    Learn to build with the Claude API from your own code: the Messages API, tool use, structured output and prompt caching, then evaluate and trace what you built.

    Intermediate5 h9 steps

  • MCP in production

    An MCP course for production use: connect clients, build and test servers for a team, secure remote servers and keep up with changes to the MCP specification.

    Advanced6 h9 steps

Tutorials

Workflow recipes

Articles

Tools for this skill

9 of 14 tools tagged with this skill.

  • Agent Development Kit (ADK)

    Google's code-first framework for building, evaluating and deploying agents.

    Agent frameworks and SDKsOpen sourceGoogle

  • AI SDK

    TypeScript toolkit for streaming, tool calls and agents across model providers.

    Agent frameworks and SDKsOpen sourceVercel

  • Claude Agent SDK

    Build agents on the same harness that powers Claude Code.

    Agent frameworks and SDKsOpen sourceAnthropic

  • E2B

    Open-source cloud sandboxes for code that agents run.

    Safety and securityUsage-based, open sourceE2B

  • FastMCP

    Pythonic framework for building MCP servers and clients with decorators.

    MCP, skills and standardsOpen source

  • LangChain

    Components and integrations for building LLM applications.

    Agent frameworks and SDKsOpen sourceLangChain

  • Microsoft Agent Framework

    Microsoft's open-source framework for agents and multi-agent workflows.

    Agent frameworks and SDKsOpen sourceMicrosoft

  • Model Context Protocol

    Open protocol for connecting AI applications to tools and data.

    MCP, skills and standardsOpen standard

  • OpenAI Agents SDK

    Lightweight Python framework for agents, handoffs and guardrails.

    Agent frameworks and SDKsOpen sourceOpenAI

Show 5 more

Key terms

Words you will meet while learning this, defined in the glossary.

Full glossary
  • Programmatic tool calling

    A model using tools by writing a short program that makes several calls and filters the results, instead of one call per turn.

  • Tool calling

    A model emitting a structured request to call a defined function, which your code runs and whose result is then fed back to the model.