---
question: Where do the tools an agent can call come from?
kind: overview
---

# Tools

A tool is a function an agent's model can call. The model reads each tool's name, description and arguments, decides when to call one, and gets its result back. Tools are Python, passed to a module agent when the module builds it: see [Give it tools](/capabilities/build/agents/give-it-tools). A workspace agent has none.

No `abi` command, REST endpoint or `config.yaml` key creates a tool.

## Where tools come from

- **Workflows and pipelines**: each `Workflow` or `Pipeline` class of the module returns one tool with `as_tools()`, once the module has built it (`await self.build_processes()`). See [Create a workflow](/capabilities/build/agents/creating-a-workflow).
- **Other agents**: an agent another module publishes is one tool, named after it. See [Add sub-agents](/capabilities/build/agents/add-sub-agents).
- **Functions**: any LangChain tool, such as a function with the `@tool` decorator. Wrap the calls of an [integration](/capabilities/build/agents/creating-an-integration) this way, or in a workflow.

## Key concepts

- **Name and description**: what the model chooses from. Write the description as the question or action the tool answers. A name keeps letters, digits, `_` and `-`; other characters become `_`. A workflow's tool is named after the snake-case slug of its class and described by its docstring.
- **Arguments**: a Pydantic model (`args_schema`). A workflow's tool takes its parameters model. Field descriptions tell the model what to pass.
- **Default tools**: every agent gets `get_time_date`. `enable_default_tools=False` on the agent leaves it out.
- **Tool calling**: the chat model has to support it. Otherwise the agent logs a warning and runs without tools.
- **When tools are fixed**: an agent takes its tools when it is built, in `on_initialized`. Restart the module to change them.
