Skip to main content
Tool servers are not available yet. This page describes how they will work, so you can plan for them. The Tool servers page, and the V3 tools an agent uses to read and change tool servers, are built but not turned on for any account. Until they are on for yours, they are refused with FEATURE_NOT_ENABLED. Your Prime calling a server’s tools comes in a later release.
A tool server is an MCP server that your company runs or uses: your attribution tool, your CRM, your data warehouse. MCP is a standard way for software to offer actions to an AI agent. When you connect one to your Apostra account, your account’s own agent, the Prime (see hosted buyer agents), can use its tools while it works, for the advertisers you choose, and only the tools you turn on. Tool servers belong to buyer accounts. An account can have up to five.

Who can add and change a server

Only an administrator of the account adds a server, replaces its key, changes its address or removes it, on the Tool servers page in Settings, signed in to Apostra in their own browser. Changing a key or an address asks you to sign in again if your sign-in is more than 15 minutes old. Any member can see the account’s servers, their advertisers and their tools. The page shows a member every control, disabled, with the reason. Your Prime cannot change its own tools. If a request to change a tool server comes from the Prime’s own conversation, it is refused.

Adding a server

You give the server a name of up to 100 characters, its address and, if it needs one, a key.
  • The address is the server’s MCP endpoint over https, on the public internet. Some services put a key in the address itself. That is fine: the whole address is stored as a secret too.
  • The key is sent to the server as a bearer token. It is at least 16 characters. Leave it empty if the server needs none.
  • A server that asks for its own sign-in, rather than a key, is not supported yet. The page says so.
Apostra then connects to the server and lists its tools. Every tool starts off, and the server acts for no advertiser until you choose one. If the server refuses the key, the server is still added and opens as Needs reconnecting, with the key form ready. It is not used until you enter a key it accepts.

Which advertisers it acts for

You choose which of the account’s advertisers each server acts for, and what its tools may do for each one: Your Prime calls a server only while it works for one of that server’s advertisers.

Settings for each tool

Each tool has two settings. A tool you turn on for Read runs on its own, and a tool you turn on for Read and write asks first, unless you choose otherwise. A tool that asks first waits for a person in the conversation to confirm each call.
A write tool set to run on its own lets your Prime change things in your own systems, spending money there included, without asking you first. What a tool server returns can never move Apostra money on its own: once your Prime has used a tool server in a conversation, any Apostra change there that spends money, such as launching a campaign or raising a budget, waits for a person to confirm it on Apostra, whatever you set here.
A tool’s definition is its name, its description, and the shape of what it accepts and returns. The page shows each tool’s description as an administrator approved it, not as the server describes it now. If the server changes a tool’s definition, that tool is turned off and marked Changed since approval until an administrator approves the new one. A tool whose definition Apostra cannot accept, for example because what it accepts is too large, cannot be turned on, and the page says why.

Taking access away

These apply at once:
  • removing an advertiser, or moving it from Read and write to Read;
  • lowering a tool’s access;
  • setting a tool to ask first.

Giving more access

These wait for an administrator to approve them on Apostra:
  • adding an advertiser, or moving one to Read and write;
  • turning a tool on, or raising its access;
  • setting a tool to run on its own;
  • approving a tool’s changed definition.
The approval page shows each tool’s complete definition, marked as written by the tool server, and for a changed tool the definition approved before beside the new one. Nothing changes until it is approved. You can approve it there yourself, or another administrator can approve it from the same link. One approval covers at most 20 tools, so its page can always show every definition in full. To give more than 20 tools more access, save them in more than one change.

Reconnecting a server

A server that refuses its key is marked Needs reconnecting, and your Prime stops calling it until you enter a key it accepts. On the server’s page, choose Replace key or address.
  • A new key at the same address keeps the server’s advertisers and tool settings. A new key can point at a different company’s data at the same service, so check it is yours.
  • A different address, path included, is a different server: every tool is turned off and listed again, and you turn them back on. The advertisers stay.
Check again lists the server’s tools again: a tool the server no longer offers is removed, and a tool whose definition changed is turned off until an administrator approves the new one. A server marked Switched off by Apostra is one Apostra turned off. Your Prime does not call it.

What Apostra stores, and what it never shows

The address and the key are stored encrypted, together, as one secret for each server. After you save them they are never shown again, on the page or anywhere else. The page shows only the address’s host, who set the address and key, and when. They are typed only on the Tool servers page, and sent to Apostra over HTTPS in that page’s own request. They never pass through chat, an agent, a widget or a tool call, and they never appear in your Prime’s conversation, our logs or our error tracking.

Removing a server

Removing a server stops your Prime calling it at once and deletes its address and key. If the delete does not go through at first, Apostra retries it until they are gone. To use the server again, you add it again and turn its tools back on. The record of what it did stays in the account’s history. An account with tool servers cannot be deleted: remove the account’s tool servers first, on the Tool servers page.

For agents and developers

An agent reads and changes the same settings through V3: search({kind: "integration", filter: {type: "tool_server"}}), get({kind: "integration", id}) and save_integration. A change that gives more access answers approval_required with a link to the approval page. Asked to add a server, save_integration answers authorization_required with a link to the Tool servers page, because the address and key are typed only there.