Tools
The practical guide to defining, testing, governing, and using callable tools in workflows and assistant surfaces.
Use this page when you need the practical path for callable tools: define the tool, test it, wire it into a workflow or assistant surface, and understand the sandbox and approval boundaries.
At a glance
| Task | Start here | Deep reference |
|---|---|---|
| define or register a tool | shape the callable contract first | Tools architecture |
| verify tool behavior | use fixture-backed tests | Tools architecture |
| call the tool from a workflow | connect it through a workflow node | Workflows |
| govern side effects | inspect approval and runtime policy boundaries | Trust and governance |
The tool journey, step by step
This is the loop the alpha supports end to end for a tool, with each step as a page action. caliber/caliber-ui/e2e/tool-journey.spec.ts drives it on the shipped defaults (it saves the fixtures and creates the workflow through the API, the endpoints the page's editors save to).
| # | Step | In the page (Tools) | What you should see |
|---|---|---|---|
| 1 | Register | Register Tool, then the wizard: name, module, callable, input schema | the tool's workspace (/tools?tool=TL-…, an address a reload keeps) |
| 2 | Run it | Sandbox, then Test Run, with a JSON object as input (anything else is refused with a message, not run) | the tool's output, produced by the sandbox |
| 3 | Save fixtures | open the tool, Fixtures: add cases with an input and an assertion | the cases are saved against the tool |
| 4 | Calibrate | Fixtures: Run calibration | "Pass rate 100% — 2/2 passed", or which cases failed |
| 5 | Pin a baseline | Test Runs: Set as baseline on a run (a run is saved when you invoke the tool on Sandbox or run the suite on Hardening) | the run carries a Baseline marker, and later runs are compared to it |
| 6 | Use it in a workflow | reference the tool from an agent node in a workflow version | the workflow appears under Publish, Where used |
| 7 | Make a new version | Publish, Version history, New version (admins): the wizard opens on the tool with its name fixed and the version one on; change what differs and register | the new version's own workspace; the history lists both versions, and you can promote or roll back between them |
Two things about the Tools list. A fresh install lists sixteen tools that CALIBER seeded itself, and each is labelled Built-in, so you can tell them from the ones an admin registered. Four of them are the agent-memory tools (memory_search, memory_list, list_entities, memory_add). While agent memory is off (CALIBER_MEMORY_ENABLED is not true) they are labelled Unavailable, with the reason on the row, because wiring one into a workflow would only make it return an error at run time.
The names of the sixteen built-in tools are reserved. Registering a tool under one of them (even in another case, or as tool.grep_files.v2) is refused with 409 reserved_tool_name; pick a different name. The same applies when you publish an OpenAPI tool draft or an Aria tool draft. The names of the trusted effect connectors (document_request, document-request, http, registered_tool, openapi_http and openapi-http) are reserved too: a tool called document_request is never the reference connector.
Who is trusted to write tools
Read this before you let anyone register a tool.
- Tool authors are trusted. A registered tool is code, imported from a Python module and called. Only a global admin can register, change or archive a tool, and that is the whole of the trust model: CALIBER does not defend itself against an admin who registers a malicious tool.
- The sandbox is a process boundary, not a container. By default each call runs in a separate Python interpreter with an empty environment, a private working directory, resource limits and a wall-clock deadline that kills the process group. It is not a container, virtual machine or seccomp boundary: the child keeps ambient filesystem and network access on the host. That is appropriate for tool authors you trust and is not isolation from ones you do not. Set
CALIBER_TOOL_SANDBOX_BACKENDto a backend you provide if you need OS-enforced isolation. Without one, promoting a workflow version that uses registered tools to a production-class alias is refused:CALIBER_TOOL_SANDBOX_REQUIRE_EXTERNAL_ISOLATION_FOR_ENVIRONMENT_CLASSESdefaults toproduction(set it empty to turn the gate off), and an alias whose name is not recognised as staging or development counts as production. - Restrict which modules a tool may come from.
CALIBER_REGISTERED_TOOL_MODULE_ALLOWLISTis a comma-separated list of module prefixes, for examplecaliber.*,mycompany.tools.*. It ships empty, which means any importable module may be registered, and/readinessreports that as "registered tool modules are unrestricted" (a check that is not required, so it never fails readiness). Set it for anything beyond a local trial. - Inside a project, roles apply on top of that. Registering, changing or archiving a tool needs
caliber.adminand, for a project tool,editororowner; saving fixtures needseditororowner. Running a tool, starting a calibration, recording a test run and setting a baseline needreviewer,editororowner, and each of those also needscaliber.operator. Reading needs only membership. A member whose role is too weak gets 403 and a person outside the project gets 404. See Auth and project scoping. - Side effects need approval. A tool that writes or acts on an external system is registered with approval required, and the sandbox mocks it in preview runs.
- Workflows add a second boundary of the same kind. A
python_codenode is authorable by operators. Preview refuses it and a published run blocksimport, but that is containment, not isolation. The reference profile refuses the node altogether (unsupported_in_reference_profile); see Executable code is refused.
1. What tools are for in CALIBER
Tools are versioned callable assets. They are not just snippets attached to a prompt. CALIBER tracks their contract, tests, and execution boundaries because they may touch real external systems.
2. Common tasks
| You want to... | Read this next |
|---|---|
| package a new callable | Tools architecture |
| use a tool in a flow | Workflows |
expose the tool to an agentic surface (Aria is on by default; disable with CALIBER_FEATURE_ARIA=false) | Aria assistant |
| audit why a tool call was blocked or paused | Trust and governance |
3. Common failure modes
| Symptom | First thing to check |
|---|---|
| The tool works locally but not in CALIBER | packaging, sandbox assumptions, or missing dependencies |
| The tool appears but cannot run live | approval policy or runtime permission boundary |
| The workflow compiles but the tool step fails | tool schema/inputs do not match the runtime call shape |