Providers and tools
A provider is one API: a base URL, default headers, and its authentication. The tools under it are individual operations — one per endpoint you want an agent to be able to call. Create a provider with its tools in one request, or add them afterwards:default_headers are sent on every call to the provider — an API version, an
Accept, a gateway key that must accompany every request. The provider’s auth
headers and a tool’s own header inputs win over them when the names collide,
compared without regard to case.
A call made by a workflow run also carries two headers that say which run
is behind it, so an API that keeps an audit trail can record more than the
credential:
Every HTTP tool call of the run has them: a tool step, the call an approval
step executes. Inside a sub-workflow both name the run that started it, not
the nested one. They sit above
default_headers and below the auth headers
and a tool’s own header inputs. A call made outside a workflow run — a chat
turn, POST /v1/tools/execute — sends neither.
Shared platform providers
Some providers are the same for several organizations — an API the platform itself integrates once, on behalf of all of them. Those are owned by the platform organization (SideNet’s own) and carry a share scope that says who else sees them:
A shared provider is visible, read-only, in the other organization’s
provider list, like the built-in tool providers:
GET /v1/tool-providers
lists it with a platform block naming the owner and its share,
GET /v1/tools lists it under custom with the same platform block and
its tools under it, agents attach its tools in agentTools like any other,
and nothing is attached automatically. Only the platform organization may set a share other than
private (POST / PATCH /v1/tool-providers answer 400 elsewhere); it
changes the scope at any time and the change applies at once.
Three rules keep ownership simple:
- Only the owner edits.
PATCH /v1/tool-providers/{id}, the tool writes under it andDELETEanswer403from any other org, naming the owner. A platform provider shared with nobody is a plain404elsewhere, as if it did not exist. When the owner saves, every org with an agent on the provider is rebuilt before the call returns, so a new tool exists everywhere at once. - The owner’s credential stays the owner’s. A stored
auth_config/auth_secretis used for calls made by the owning org, and by the organizations the owner grants the provider to. A call from any other org uses the caller’s own runtime credential (the user’stools_authentry, or an org key’sruntimeAuth) or fails withno credential for provider X— the provider is listed asrequiredinGET /v1/tools-authfor that reason. A per-userbase_urloverride works as it does everywhere. - References are stable. Agents reference the owner’s tool rows by id; a tool the owner removes, or a scope the owner narrows, breaks exactly the dashboards and agents it would have broken in the owner’s own org.
Granting a shared provider to an organization
Sharing a provider shows it; it does not pay for it. A provider the platform is billed for per call must not become spendable by every organization the scope reaches, so a sharing organization getsno credential for provider X
until the owner switches it on for that organization:
DELETE /v1/tool-providers/{id}/grants/{org_id} takes it back.
- Only the platform organization grants, and only on a provider it
shares. Any other organization that sees the provider gets the same
403an edit gets there, naming the owner. The call is idempotent:201the first time,200with the same grant afterwards. - A grant holds no secret. The credential stays in the owner’s vault and
is read on each call, so a revoked grant, or a secret the owner rotates
with
auth_secret, applies to the next call in every granted organization. - A caller’s own credential still wins. A user with a
tools_authentry for the provider, or an org key sendingruntimeAuth, is served with that, exactly as inside the owner’s organization. - Per-user providers take no grants. On a provider with
require_runtime_auththe request answers422: every user there acts with a credential of their own, and an organization-wide one would undo that. A private provider, and an organization the share scope does not reach (a self-serve org on aplatform_createdprovider), answer422too. Turningrequire_runtime_authon later leaves existing grants in place but without effect, andgrantedreadsfalsewhile it is on.
GET /v1/tool-providers/{id} shows both sides: in the platform organization
it lists grants (org_id, org_name, granted_at); in a sharing
organization the platform block carries granted: true | false, which
GET /v1/tool-providers and GET /v1/tools repeat, and GET /v1/tools-auth
stops listing a granted provider as required.
The same scopes exist on the platform organization’s
workflows and skills.
Import from OpenAPI
Paste your spec into the Studio and every operation becomes a candidate tool. Two things to fix before you accept them: Names. The model sees the tool name. An operation whose imported name is a long API summary is normalised automatically — the model-facing name is derived and de-duplicated, and the readable label moves into the description — but it’s worth checking the result.get_clients is a good name;
getClientsByOrganisationIdV2Beta is not.
Descriptions. This is the single highest-leverage text in your integration
— more than any prompt. Describe what the endpoint returns and when to use it,
in your users’ vocabulary, and name the neighbouring tool when two are easily
confused.
Editing a tool’s schema
A read returns every API tool with two schemas:
The distinction matters because the mapping back to the wire name only exists
while the stored schema still has the bracketed spelling. A client that edits
inputSchema and saves it as input_schema overwrites date_checkin[after]
with date_checkin_after; from then on the flattened name goes to your API
verbatim, the API ignores the filter it doesn’t know, and every call returns
unfiltered data — a paginated walk then fetches the whole collection.
The save routes guard against this: a top-level parameter whose name is only
the flattened form of a stored bracketed name is written back under the stored
name (in properties, required and x-params), and the server logs a
warning naming the tool and the keys. A genuinely renamed, added or removed
parameter still saves as sent — the guard only fires when the bracketed name
is gone and its flattened twin took its place. Send input_schema as you read
it and the guard never has to fire.
Reads and writes
A dashboard refreshes on a timer and may only call tools that read — a write in that position would repeat on every refresh. Each tool carries aread_only flag with three values:
Set it on
POST /v1/tools, PATCH /v1/tools/:id or the bulk
PATCH /v1/tool-providers/:id/tools, and read it back on every tool read.
You need it when the derived answer is wrong or absent: an API whose every
endpoint is a POST under a bare name (/rpc/my_stay, /rpc/property_settings)
has reads the heuristic cannot see, and a name like check_in is not a read
at all, which is why check is not a read verb. Flag the reads true and
the dashboard agent can use them; flag anything ambiguous false and it never
will.
Request body shape
An API tool sends the inputs routed to the body as one JSON object — the shape nearly every REST endpoint takes. Task-queue APIs are the exception: DataForSEO, for one, refuses anyPOST body that is not a JSON array of
task objects (40503 "POST Data Is Invalid. An ARRAY of tasks is expected."),
so a plain object fails before it reaches the endpoint. Each tool carries a
body_mode for that case:
Nothing else changes: the same authentication, the same validation against
input_schema, the same response handling, and path, query and header inputs
still go where x-params routes them. A call with no body inputs sends no body
in either mode. Set it on POST /v1/tools, PATCH /v1/tools/:id, the bulk
PATCH /v1/tool-providers/:id/tools or inline in a provider’s tools, and
read it back on every tool read.
A tool on another host
A tool normally goes to the provider’sbase_url + its path. A tool can
instead carry its own base_url: the request then goes to the tool’s host +
path, under the provider’s credential and in the provider’s catalogue entry.
That is how an endpoint that lives elsewhere — an edge function next to the
REST API it belongs with — joins the provider it belongs to instead of
becoming a second provider for one route.
A tool’s base_url is final. A caller’s per-request base_url override (the
tools_auth entry) swaps the provider’s host, so it does not
apply to a tool that names its own: that tool is not on the provider’s host
to begin with. Leave base_url null (the default) and the tool follows the
provider, overrides included.
Shaping what the agent sees
- Prune. Import everything, attach only what an agent needs. An agent that holds 60 tools chooses worse than one holding 8. When an agent genuinely needs a large catalogue, turn on tool search for it so only the tools a conversation uses enter the prompt — see Tool discovery.
- Pin fixed values in the tool’s configuration rather than instructing the model to always pass them. A pin is a fact; a prompt rule is an exhortation, and small models ignore exhortations under load.
- Set
require_approvalon anything that writes, charges or sends. See Approvals. - Set
loop_responseson anything that paginates or returns large collections. See Working with large APIs.
The progress line while a tool runs
While an agent is calling tools, the widget shows one line above the calls: not “Calling listReservations” but, when it can, what is happening in the user’s words — Looking up tomorrow’s arrivals at the Rivoli (0/1). The counter is the calls finished (failed ones included) over the calls in the group, and the line is replaced each time a new call starts; once every call is done it collapses to “Used 2 tools”. The sentence comes from one of three places, in this order:- The model. Every tool an agent holds carries an optional, reserved
_progress_messageargument, which the model fills in the same step as the call: one short sentence, in the user’s language, with the call’s own details. It is never sent to your API, and clients never see it in the call’s arguments. - Your configuration.
progress_labelon the agent’s tool entry is a fixed sentence for that tool, used when the model wrote none. A custom API tool without one falls back to its OpenAPI summary when that reads as prose (“List reservations”). - The widget, which otherwise says “Calling” and the tool’s name.
data-tool-progress-message chunk,
{ toolCallId, toolName, text, source } with source either model or
server, emitted as the call starts to run and never stored with the
message. The chat SDK renders it; a client of your own can
ignore it.
Test the tool, not your assumption
Run a tool directly, with the provider’s real method, path, auth and declared schema:TOOL_ID is the tool’s runtime key — {provider}_{name}, the id you see in
GET /v1/tools — or, for an API tool, its uuid from the same listing: the
stable reference an agent stores, so you can run a tool straight off an agent’s
roster.
This is the fastest way to find a wrong base URL, a missing header or a schema
that doesn’t match reality — before an agent meets it.
It exercises the tool, not the binding. Configuration pinned on an
agent’s copy of the tool,
loop_responses behaviour and approval pauses are
all part of the binding, so they still need a real agent turn to verify.Keeping up with your API
When your API changes, re-import the spec rather than editing tools by hand. You get a review screen before anything is applied:- New endpoints, collapsible and editable before you accept them.
- Changed endpoints, one row per field — field name, current value, new value — colour-coded and editable inline.
- Accept or reject field by field, or in bulk across the whole spec. Rejected endpoints move to an Ignored group you can revisit.
Authentication
Providers support static credentials — bearer, API key, basic and custom headers — a bearer exchanged from a long-lived key at your own token endpoint, and three OAuth 2.0 grants: client credentials, password and refresh token, with tokens fetched and refreshed for you. Credentials can also be supplied per user at runtime, which is how you give each of your end users their own access. See Authenticating tool providers. Outbound tool requests are logged with URL, method, body length, a short body preview and a masked view of the headers, so a 401 from your upstream is diagnosable. Credential values are never written out in full.Checklist
- Provider base URL and auth verified with
executebefore any agent holds a tool. - Tool names are short, verb-first and readable; descriptions match the schema exactly.
- Fixed arguments are pinned in configuration, not requested in a prompt.
- Write, charge and send operations carry
require_approval. - Paginated collections carry
loop_responses. - Spec changes go through re-import and its review screen, never hand edits.
- Schema edits send back
input_schema(wire names), never the derivedinputSchema.