Skip to navigation

Add tools

Turn an operation in your API into a tool that AI agents can discover, understand and call correctly.
View as Markdown

Adding a tool makes one operation in your API available to AI agents. You identify the operation, describe it in terms an agent can act on, define the information it accepts and returns, and decide who may use it and at what price. Mitu then presents the tool to every agent that connects to your service and forwards each call to your API, which performs the work as it would for any other client.

Tools are added under Tools in the Agents area of the Mitu dashboard. If your API is already described by an OpenAPI document, you can import your tools instead and refine them using the same settings described here.

Before you begin

Your API must be connected through your integration, because the path of every tool is appended to the base URL you set there. If any tool will act on a customer’s account, choose how customers authenticate first.

Adding a tool

1

Identify the operation

Select Add tool, then enter the HTTP method and the path of the operation in your API. Give the tool a name that states the action it performs, using a short verb and noun such as check_availability or create_booking.

2

Describe it for agents

Agents choose between tools using the text you provide, so precise wording leads directly to more accurate requests.

  1. Description
    What the tool does and what it returns, in plain language.
  2. When to use
    The situation in which an agent should call it, and any condition that must be met first, such as the customer confirming the details.
  3. Call first
    Any tools that must be called before this one, such as retrieving availability before creating a booking.
3

Define its input and output

Describe the information the tool accepts, and what it returns, with a JSON Schema. Agents use the input schema to construct a valid request and the output schema to interpret the response.

Input schema
{
"type": "object",
"properties": {
"service_id": {
"type": "string",
"description": "The identifier of the service being booked, as returned by check_availability."
},
"start_time": {
"type": "string",
"format": "date-time",
"description": "The start of the booking, in ISO 8601 format."
},
"notes": {
"type": "string",
"description": "Any requirements the customer has asked to pass on."
}
},
"required": ["service_id", "start_time"]
}

Describe every field as you would to a new colleague, and keep the schema aligned with what your API actually accepts.

4

Set who can use it

Decide whether the tool requires a signed in customer. Any tool that reads or changes a customer’s account should require one, while tools that return public information can remain open. Each tool also accepts a fixed number of calls per minute, 60 by default, which protects your API from excessive traffic. Rate limits describes what happens when it is exceeded.

5

Set its price

Every tool is free unless you price it. Choose a fixed price, a price your API calculates for each request, or a session that the agent funds once and draws on. Pricing describes each model.

6

Publish it

A tool added in the dashboard is saved as a draft, so you can describe it in your instructions before agents see it. It becomes available to agents when you next publish, together with any other drafts and your instructions, so related changes always reach agents at the same moment. Before you rely on a tool, call it from an AI app to confirm that the agent selects it at the right moment and sends a valid request.

Tool settings

SettingDescription
NameThe name agents use to call the tool.
Method and pathThe HTTP method and the path of the operation, relative to your API base URL.
DescriptionWhat the tool does and what it returns.
When to useThe situation in which an agent should call the tool.
Call firstTools that must be called before this one.
Input schemaThe JSON Schema of the information the tool accepts.
Output schemaThe JSON Schema of what the tool returns.
Requires sign inWhether the agent must be acting for a signed in customer.
Rate limitThe most calls per minute the tool accepts. The default is 60.
PricingFree, fixed, dynamic or session.
ReleaseDraft until you next publish, then live.
StatusActive, paused or archived. Paused and archived tools are hidden from agents without being deleted.

Managing tools over time

  1. Pause instead of deleting
    Pause a tool to withdraw it from agents temporarily, for example while the operation behind it is unavailable, and resume it when it is ready.
  2. Archive what you retire
    Archive a tool you no longer offer, so it is hidden from agents while its configuration is kept.
  3. Keep schemas in step with your API
    Update a tool’s schema whenever the operation behind it changes, so agents continue to send requests your API accepts.

Each tool you add extends what agents can do with your business by exactly one operation, under the access, pricing and limits you have set. Your API remains responsible for the work itself, so every request is handled with the same logic and safeguards that apply to your own applications.