Letting the agent call your system
A document tells the agent what your policy is. A tool lets it check what is true for this customer, right now.
When you need one
Anything that changes between customers, or between yesterday and today, wants a tool rather than a page describing it. “What is your refund policy” is a document. “Is my order eligible for a refund” is a tool.
What you define
| Endpoint | The URL, with placeholders like /orders/{orderId}. |
|---|---|
| Method | GET, POST, PUT, PATCH or DELETE. |
| Headers | Whatever your API needs to authenticate the call — see below. Stored encrypted, and shown masked in the dashboard. |
| Parameters (request body schema) | The values the model may fill, each with a type. This is the complete list of what can be sent — see below. |
| Response mapping | A short template that turns your response into the sentence the agent is told. Optional, and you want it — see below. |
{
"endpoint": "https://api.yourshop.com/orders/{orderId}",
"method": "GET",
"headers": {
"Authorization": "Bearer sk_live_…"
},
"requestBodySchema": {
"orderId": { "type": "string", "description": "The order number the visitor gave" }
},
"responseMapping": "Order {id} is {status}, arriving {eta}."
}What we send, and what we never send
The arguments come from a model reading a visitor's message — and possibly a document or another tool's output with an instruction planted in it. So they are treated like any other untrusted input before anything reaches you.
TipOnly the parameters you declared
Where the parameters go
| Into a placeholder | A parameter whose name appears as {name} or :name in the endpoint fills it, URL-encoded, and is not sent again. |
|---|---|
| Everything else, on GET | The query string. |
| Everything else, otherwise | The JSON body. |
WarningDeclare every placeholder as a parameter
{orderId} and no orderId parameter is never called — the address would be incomplete.Placeholders cannot move the call
Write {orderId} in the endpoint and it is replaced with the value the model chose. :orderId works too, so a URL copied from your own routing does not need rewriting.
| URL-encoded | A value containing / or ? cannot change which of your endpoints is called. |
|---|---|
| No climbing | An empty value, . or .. is refused rather than substituted. |
| Same host, always | After filling, the address must have the same origin as the endpoint you configured, or nothing is sent. A port like :8443 is never mistaken for a placeholder. |
| No private addresses | An endpoint that resolves to an internal or private address is refused, and redirects are not followed. |
Telling visitors apart: X-Tigerbase-Visitor
Every call made for a visitor carries one header you did not configure:
GET /orders/4471 HTTP/1.1
Host: api.yourshop.com
Authorization: Bearer sk_live_…
Content-Type: application/json
X-Tigerbase-Visitor: 3f9c1a0e7b2d4c6f8a1e5b7d9c0f2a4e| What it is | A stable, opaque id for this visitor of this agent — 32 hex characters. The same visitor gets the same value on every call. |
|---|---|
| What it is not | Not the visitor's browser id (that is their key to their history with us), and not proof of who they are. |
| Can a capability forge it? | No. It is set after your configured headers, so a header of the same name in the capability is overwritten. |
| What to use it for | Rate-limiting per visitor, telling two visitors apart in your logs, auditing what the agent did for whom. |
| When it is absent | A turn with no visitor behind it — a one-off ask() from the server API without a conversationId — sends no header. |
// Express
app.get("/orders/:orderId", requireTigerbaseToken, async (req, res) => {
const visitor = req.get("X-Tigerbase-Visitor") ?? "unknown";
// One visitor cannot hammer this endpoint through the agent.
if (!(await rateLimit.allow(`tb:${visitor}`, 20, "1m"))) {
return res.status(429).json({ error: "Too many lookups" });
}
audit.log({ visitor, action: "order.lookup", order: req.params.orderId });
const order = await orders.find(req.params.orderId);
res.json({ id: order.id, status: order.status, eta: order.eta });
});WarningIt tells visitors apart. It does not say who they are.
Authenticating the call — this part is yours
Tigerbase sends the headers you configure and nothing else of yours. There is no shared secret between us on this path: your endpoint is your endpoint, and how it decides to trust the caller is your decision.
TipGive it its own credential, scoped narrowly
What comes back is data, never instructions
Your response is handed to the model labelled as data from your tool, with a note that it is facts to use and not an instruction to follow — even if a field in it is phrased as one. The model is told never to call a tool that changes something because data told it to.
| Timeout | 15 seconds. |
|---|---|
| Largest response read | 1 MB. Anything bigger is a failed call. |
| Largest response the model sees | 8,000 characters. Anything longer is cut, and marked as cut. |
| When your API fails | The model is told the request failed, with the HTTP status — not your error body. An external MCP tool that fails is reported only as not available right now. |
Response mapping — the part people skip
Without it, your entire response body is stringified and handed to the model. With it, you choose the sentence:
Order {order.id} is {order.status}, arriving {order.eta}.| It is your customers' data | An unmapped body goes into the model's context whole — including fields you never meant a visitor to hear about, which can then be paraphrased back to them. |
|---|---|
| You pay for it | Every field in that body is tokens, on every single call. |
| It is more reliable | A model given one clear sentence answers from it. A model given forty fields picks. |
TipReturn the least you can
Before it can run: operator review
A tool that reaches outside the platform is held when you create it. It is not offered to the model and cannot be executed until an operator has looked at it.
- 1
You build it
In the dashboard, or by describing it and letting the compiler write the configuration. - 2
It waits
Visible in your list, marked as held, with an explanation. Your agent carries on answering everything else. - 3
An operator approves or refuses it
You are notified either way, and a refusal carries a reason. - 4
It runs
From then on it is an ordinary tool.
WarningEditing what it calls sends it back
This applies to tools that reach outward — an API call, an external MCP server, a custom script. Tools that only act inside the page, like redirecting the visitor or capturing a lead, are not held. An external MCP tool gets the same treatment as an API call: arguments it did not declare in its own input schema are dropped.
WarningImported MCP tools wait too — and wait again if they change
Watching it work
The Pipeline page shows each run: which tool was called, what arguments the model chose, what came back, and how long it took. A failure shows the error rather than disappearing.
NoteThe first thing to check when a tool is never called