Skip to main content
A tool is a function contract that a model can call. It has the name the model calls it by (its Function name), a description written for the model, a JSON Schema for its parameters, and an optional JSON Schema for its output. Create a tool for each function your agent uses, so that Oumi can present it to the model during synthesis and evaluation. A tool is only the interface. It does nothing in a job until a tool implementation answers its calls. Define the tool first, then give it at least one implementation.
Tools are immutable. After you create a tool, you can change only its display name. See Change or delete a tool.

WHAT A TOOL CONTAINS

To create tools with the API, see Tool schema.

CREATE A TOOL

On the Tools page, click Create Tool. Define the parameters and the output schema in the Form tab, or paste a JSON Schema in the JSON tab. When you click Create Tool, Oumi opens the form for the tool’s first implementation. Parameters and Output schema sections of the Create Tool form with a required order_id parameter If you imported traces from your agent, ask FAiE (Frontier AI Engineer Agent) to find the tools in that dataset. FAiE lists the tools that the traces declare or call, and it creates the ones you choose from their declarations. It can’t create a tool that the traces call but never declare, so define that one yourself. When a declaration has no output schema, FAiE infers one from the tool results in the traces, so review it before you create the tool. With the API, call POST /v1/projects/{project_id}/tools:preview. See Tool schema.

WRITE GOOD TOOL DEFINITIONS

The model never sees your implementation. It sees only the tool’s name, description, and parameter schema, and it decides from those alone whether to call the tool and what arguments to pass. A vague definition produces wrong calls in every job that uses the tool. Datasets that you generate with tools also carry these definitions in each row, so they become part of your training data.

NAME THE TOOL FOR WHAT IT DOES

Use a short verb and noun in lowercase snake_case, such as get_order_status or cancel_booking. The model emits this name in every call, so a name that states the action helps it pick the right tool among several. The Create Tool form requires lowercase snake_case.

SAY WHAT THE TOOL DOES AND WHEN TO CALL IT

Write the description for the model, not for a person browsing the Tools page. State what the tool returns and the situation in which the model should call it. When two tools could apply to the same request, also say when not to call this one.

DESCRIBE EVERY PARAMETER

The model fills each argument from the conversation, so it needs to know what each one means and what format it takes:
  • Give every property a type and a description. Include an example value when the format matters, such as an ID pattern or a date format.
  • List every argument the tool cannot work without in required.
  • Use Allowed values in the form, or enum in JSON, when an argument takes one of a fixed set of values.

USE SUPPORTED SCHEMA KEYWORDS

Oumi constrains the model’s output to your schema with guided decoding, which limits generated text to what the schema allows. Guided decoding cannot compile every JSON Schema keyword. Oumi therefore rejects a schema that uses oneOf, allOf, not, or if/then/else anywhere, and a schema whose root is anyOf. A nested anyOf is allowed. When you need one of these keywords, restructure the tool instead. Use allowed values for a choice between values, or split one tool into two tools with simpler signatures. See Validation rules. To learn JSON Schema, see Understanding JSON Schema.

DEFINE THE OUTPUT WHEN ITS SHAPE MATTERS

An Output schema tells Oumi what a correct result looks like. Oumi checks every implementation’s output against it. A simulated output in another shape reaches the model as an error, and an endpoint response in another shape counts as a failed call. For an endpoint implementation, the output schema describes the whole response body, not a field within it. Leave the output schema out only when the result is free-form text.

CONFIRM THE CONTRACT BEFORE YOU CREATE IT

Because a tool is immutable, the only fix for a wrong signature is a new tool. Check the function name, parameters, and output schema before you create it, especially when you derived them from existing code or logs.

EXAMPLE


CHANGE OR DELETE A TOOL

You can only rename a tool. To change anything else, open the tool’s menu, select Duplicate, edit the copy, and click Create Tool. The copy starts with no implementations. The original tool and its implementations stay as they are. To delete a tool, open its menu and select Delete. Oumi also deletes the tool’s implementations. You can’t undo this.

HOW TOOLS ARE USED

A job does not reference tools directly. A synthesis or evaluation job with tools takes a list of tool implementations, and each implementation serves one tool. The model in the job sees the tools that those implementations serve, and the implementations answer the model’s calls.

Tool implementations

Decide what the model gets back when it calls a tool.

Synthesize agent data

Generate tool-calling conversations for training.

Evaluate with tools

Evaluate how well a model uses its tools.