---
source: https://iinventedlight.com/library/notes/pydantic-ai-function-tools.md
title: "Give models function tools so they can take actions and fetch extra information"
license: CC-BY-4.0
license_url: "https://creativecommons.org/licenses/by/4.0/"
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-22
status: published
approved_by: "Cole Withington, 2026-11-27 14:30 PT: \"Yes, publish all of that now\""
checked_on: 2026-11-22
as_of: 2026-11-22
confidence: medium
untested: "Not reproduced (2026-11-22). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coverage-gaps
client: Librarian
source_license: "MIT (Pydantic AI, including associated documentation files; Inspect AI); prose restates cited source lines in own words"
license_family: mit
attribution: "Summary by iinventedlight (AI-assisted). Sources: Pydantic AI Function Tools (MIT); Inspect AI Tool Basics (MIT). Text was condensed and changed from the originals."
topic_area: "code-ai-eng: function tools"
tags: [agents, tools, pydantic-ai, inspect, function-calling]
sources:
  - id: S1
    title: "Function Tools"
    publisher: Pydantic AI
    url: https://pydantic.dev/docs/ai/tools-toolsets/tools/
    accessed: 2026-11-22
    license: "MIT"
  - id: S2
    title: "Tool Basics"
    publisher: Inspect AI
    url: https://inspect.aisi.org.uk/tools.html
    accessed: 2026-11-22
    license: "MIT"
---

# Give models function tools so they can take actions and fetch extra information
**Answer:** Function tools let models perform actions and retrieve extra information. Inspect lets you register Python functions as tools and provide them to models that support them.

## Why it matters

Function tools give models a way to perform actions and retrieve extra information, which helps them generate a response. They are useful when you want the model to take some action and use the result. They also help when putting all the context an agent might need into the instructions is impractical or impossible. You can make agents' behavior more deterministic or reliable by deferring some of the required logic to another tool. If the model's final action should be a function call, and the result should not be sent back, use an output function instead.

Many models can now interact with client-side Python functions, which expands their capabilities. You can give models a custom tool set of your own, so they can cover a wider variety of tasks. Inspect natively supports registering Python functions as tools, then providing those tools to models that support them. Built-in standard tools cover code execution, text editing, computer use, and web search.

- `Purpose` Function tools let models perform actions and retrieve extra information
- `When to use them` They help when it is impractical to put all the context an agent might need into the instructions
- `Inspect` Inspect natively supports registering Python functions as tools

## See also

- [inspect-using-agents](https://iinventedlight.com/library/notes/inspect-using-agents/)
- [ao-tools-openai-function-calling](https://iinventedlight.com/library/notes/ao-tools-openai-function-calling/)
- [pydantic-ai-mcp](https://iinventedlight.com/library/notes/pydantic-ai-mcp/)

## Claims

- id: C1
  claim: Function tools let models perform actions and retrieve extra information.
  source: S1
  evidence: "a mechanism for models to perform actions and retrieve extra information"

- id: C2
  claim: Tools help when it is impractical to put all needed context into the instructions.
  source: S1
  evidence: "impractical or impossible to put all the context an agent might need into the instructions"

- id: C3
  claim: Inspect natively supports registering Python functions as tools.
  source: S2
  evidence: "Inspect natively supports registering Python functions as tools and providing these tools"

## Sources

- [S1] Function Tools. Pydantic AI. https://pydantic.dev/docs/ai/tools-toolsets/tools/ . License: MIT. Accessed 2026-11-22.

- [S2] Tool Basics. Inspect AI. https://inspect.aisi.org.uk/tools.html . License: MIT. Accessed 2026-11-22.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Pydantic AI Function Tools; Inspect AI Tool Basics. MIT. Text was condensed and changed from the originals.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
