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.

The model chooses the arguments. We decide what actually leaves, and how the answer comes back.

What you define

EndpointThe URL, with placeholders like /orders/{orderId}.
MethodGET, POST, PUT, PATCH or DELETE.
HeadersWhatever 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 mappingA short template that turns your response into the sentence the agent is told. Optional, and you want it — see below.
An api_action capability
{
  "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

Every key the model adds that is not in your parameter list is dropped. A declared parameter of the wrong type — a number where you said string — stops the call, and the model is told the request was not sent. Every declared parameter is required.

Where the parameters go

Into a placeholderA parameter whose name appears as {name} or :name in the endpoint fills it, URL-encoded, and is not sent again.
Everything else, on GETThe query string.
Everything else, otherwiseThe JSON body.

WarningDeclare every placeholder as a parameter

A placeholder is only filled from a declared parameter. An endpoint with {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-encodedA value containing / or ? cannot change which of your endpoints is called.
No climbingAn empty value, . or .. is refused rather than substituted.
Same host, alwaysAfter 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 addressesAn 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:

What your API receives
GET /orders/4471 HTTP/1.1
Host: api.yourshop.com
Authorization: Bearer sk_live_…
Content-Type: application/json
X-Tigerbase-Visitor: 3f9c1a0e7b2d4c6f8a1e5b7d9c0f2a4e
What it isA 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 notNot 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 forRate-limiting per visitor, telling two visitors apart in your logs, auditing what the agent did for whom.
When it is absentA turn with no visitor behind it — a one-off ask() from the server API without a conversationId — sends no header.
typescript
// 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.

Anybody can open your widget and become a new visitor. If an action must be limited to one customer's own records — their orders, their bookings — your endpoint still needs its own check, such as an order number together with the email on it, or a login of your own.

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

Not your admin token. Issue a key that can read one kind of record and do nothing else, so the worst case of a mistake here is bounded. And make your endpoint read-only unless it genuinely has to write — “look up an order” is a much safer tool than “cancel an order”.

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.

Timeout15 seconds.
Largest response read1 MB. Anything bigger is a failed call.
Largest response the model sees8,000 characters. Anything longer is cut, and marked as cut.
When your API failsThe 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:

text
Order {order.id} is {order.status}, arriving {order.eta}.
It is your customers' dataAn 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 itEvery field in that body is tokens, on every single call.
It is more reliableA model given one clear sentence answers from it. A model given forty fields picks.

TipReturn the least you can

The best version of this is an endpoint that returns three fields because that is all the agent needs — not one that returns your full order object and relies on the mapping to hide the rest. A field that is never sent cannot be repeated, by accident or by a planted instruction.

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. 1

    You build it

    In the dashboard, or by describing it and letting the compiler write the configuration.
  2. 2

    It waits

    Visible in your list, marked as held, with an explanation. Your agent carries on answering everything else.
  3. 3

    An operator approves or refuses it

    You are notified either way, and a refusal carries a reason.
  4. 4

    It runs

    From then on it is an ordinary tool.

WarningEditing what it calls sends it back

Changing the endpoint, method or headers of an approved tool re-opens the review. Otherwise approval would be a one-time formality that could be edited into something else afterwards.

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

Every tool you import from an MCP server starts as pending, one per tool, unless an operator did the import. Because the remote server writes each tool's description and input schema — and the description goes to the model word for word — a re-import that finds either one changed sends an approved tool back to review. A server cannot get a harmless tool approved and then rewrite it into an instruction.

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

Its description. The model decides whether to use a tool entirely from how you described it — there is no rule you write for “if the visitor asks about an order”. A vague description is the usual reason a perfectly working tool sits unused.