Creating a Tool
How the editor works#
Choose New tool on the Tools page and the editor opens.
It works on one idea, written at the top of it: make the call once with a real value, and the answer becomes the form. You describe the request, press Call it, and then tick the fields from the real response that your agent should be given. You are never typing out the shape of an API by hand.
Agents allowed to call it#
Start by choosing which agents may use this tool. A tool belongs to the workspace, not to one agent, so this decides who is handed it.
An empty list means nobody
With no agents selected the tool will never run, and the form says so: "No agent can call this yet, so it will never run. Pick at least one."
The call#
Name is what you and your colleagues call it — List payment providers.
The agent calls it is the name the model sees, filled in from yours: list_payment_providers. Letters, digits, dashes and underscores only, because that is what a model will accept as a function name. Edit it and it stops following the name above.
When to use it is the description, and it is the most important field in the editor. The agent decides whether to reach for this tool by reading it.
Use when user asks about available payment methods.Two switches sit alongside it:
| Switch | What it does |
|---|---|
| Use only in Flow | The agent will never choose this tool on its own. It runs only from a Call a tool step in a flow. |
| This changes something | For creating, cancelling or updating — anything that is not just looking something up. The visitor is asked first. |
Where it goes#
Method is GET or POST. Address is where the request goes, and Add a header covers anything the API needs sent with it.
A POST also takes a body: JSON, with {{input....}} where the agent's values go.
https://boltpay.dev/api/v1/payment-providersThe address must start with https:// — plain HTTP is refused, because the request carries your credentials.
Don't put the token here
The editor says it under the headers: authentication is set separately, not here. Writing an Authorization header by hand, or a {{secret....}} placeholder into the address or body, is rejected with a pointer to Authentication below.
What the agent fills in#
Anything the agent has to collect from the customer is an input. Add an input gives you a row with four things:
| Part | What it does |
|---|---|
| Name | What the placeholder refers to — amount, username, email. |
| Type | Text, number, true/false, or a choice from a fixed list. |
| Required | Whether the call can be made without it. |
| Description | What this value is, in the agent's words. It is what the agent says when it asks for it. |
Write the descriptions properly. "The amount of the checkout like $15." produces a sensible question; a blank one produces a vague one.
Refer to an input anywhere in the request as {{input.amount}}. The editor checks both directions: a placeholder with no input behind it is an error, and an input the request never uses is flagged as a likely leftover.
Authentication#
Type is Bearer token or none, and Credential picks which stored token to send. Add one creates a credential without leaving the editor.
The token stays on our servers. Your agents never see it, and you never write it into the request yourself.
Call it#
Call it makes the real request from our servers. Under the button you can see exactly what will be sent:
GET https://boltpay.dev/api/v1/payment-providersIf the tool has inputs, Try it with appears above the button — fill in a sample value for each, and those are what the trial call uses.
What the agent is told#
This is why you call it first. Once a response has come back, the fields in it are listed for you to tick what it should see — everything you leave is dropped before it gets there.
Each ticked field becomes a row under IT WILL BE GIVEN: the name the agent will use, and the path it came from.
| The agent sees | Taken from |
|---|---|
name | data[0].name |
currency | data[0].currency |
min_amount | data[0].min_amount |
Rename any of them to something the agent will understand. Everything you did not tick never reaches the model, which keeps answers accurate and keeps data you do not need out of the conversation.
To change the selection later, call it again — the response is re-read and you can tick different fields.
If the call fails#
The last field is what the agent says when the request does not come back. It never sees the error itself, so this is the wording the customer effectively hears.
Saving#
Save tool stores it. From then on the agents you allowed can call it, and you can come back and call it again whenever the API changes.