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.
PurposeFunction tools let models perform actions and retrieve extra informationWhen to use themThey help when it is impractical to put all the context an agent might need into the instructionsInspectInspect natively supports registering Python functions as tools
See also
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.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Pydantic AI Function Tools (MIT); Inspect AI Tool Basics (MIT). Text was condensed and changed from the originals.
Cite this
iinventedlight. 2026. "Give models function tools so they can take actions and fetch extra information." iinventedlight Library, iil:note:eqc6c70p, version of 2026-11-22. https://iinventedlight.com/library/notes/pydantic-ai-function-tools/. License: CC-BY-4.0.
@misc{iil_note_eqc6c70p,
author = {{iinventedlight}},
title = {{Give models function tools so they can take actions and fetch extra information}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-22},
url = {https://iinventedlight.com/library/notes/pydantic-ai-function-tools/},
note = {Permanent ID iil:note:eqc6c70p. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/pydantic-ai-function-tools.md.