Skip to main content

Tool Server Publishing

Make a published API available as a tool for agents and chat, and control which operations they may call.

A published API can be a tool for AI agents, in Agent Builder workflows and in chat. Publishing alone exposes nothing: you choose which operations agents may call in the API's Agent tools section. Only those operations become tools, and an API with none chosen is not a tool at all.

Upgrading to 1.1.0

Before 1.1.0, publishing an API made every one of its operations a tool. On upgrade, operations that an agent workflow already uses stay exposed, so no workflow loses a tool. Every other published API exposes nothing until someone ticks its operations, and chat users who relied on one of its tools lose it until then. The Not exposed to agents filter on the API Builder's Published tab lists these APIs.


Choose What Agents May Call​

Open the API and go to Agent tools (under Design in the page's section list).

  • Tick the operations agents may call, then click Save agent tools. Search, Select all and Select none help with large APIs. Only operations with an operationId can be tools.
  • The choice applies to the version prod serves and takes effect at once. It is not part of a version: changing it needs no review and no new publish.
  • An operation that workflows use shows Used by N workflow(s). Unticking one asks first, because those workflows lose the tool; see What workflows check.
  • The section says who can use the API as a tool: Usable as a tool by N people, plus administrators. These are the people described in Who can use a published API.
  • An operation chosen earlier that the version prod serves no longer has is listed under Selected earlier, but no longer in the API, and is ignored.
  • If the API isn't live yet, the choice is kept and takes effect once it is published.

API developers, lifecycle managers and space admins of the API's space, and admins, can change the choice. Workflow names are shown only to the API's own team.

The rest of API Builder shows the choice too:

  • A live API that exposes nothing shows Live, but no operation is exposed to agents yet next to its status. Click it to go to the Agent tools section.
  • The API list shows N for agents under each live API's endpoint count, and the Published tab has a Not exposed to agents filter.

The Agent Tool Catalog​

The Agent tools tab on the API Builder home page lists every operation agents can call, in Agent Builder and in chat:

  • APIs are grouped by catalog and space; platform-wide APIs come last.
  • The search matches API names, catalog and space names, and operations.
  • Manage opens an API's Agent tools section.
  • APIs that expose nothing are not listed, so the catalog stays short however many APIs are published.
  • For each operation it shows how many workflows use it, but not their names, since the catalog spans spaces.

Where the Choice Is Enforced​

WhereWhat happens
Agent Builder's API Tools picker and chat's toolsOnly exposed operations of the version prod serves are offered. The picker's list comes from GET /api/v1/agent-skills/tools/apis: each live API you can use, with its exposed operations (those with an operationId)
The API GatewayA call made by an agent to an operation that isn't exposed is refused with 403 and the error operation_not_exposed. Calls with consumer keys are not affected: the choice concerns agents only
WorkflowsA node that calls an operation agents can't use blocks staging and publishing

What workflows check​

Saving a workflow warns about every agent node that calls an API operation that doesn't exist here, isn't live, or isn't exposed to agents. Staging or publishing the workflow is refused (HTTP 422) until the operation is exposed or removed from the node. See Stage gate: API operations must be available to agents.


What Registration Does​

An API is registered as a Global Tool Server while it is live and exposes at least one operation. Otherwise its registration is removed. The entry in TOOL_SERVER_CONNECTIONS (the list described in OpenAPI Tool Servers) has:

  • Target URL: always the built-in API Gateway (/api/v1/api-definitions/{id}/proxy), whether or not the API has mappers. Rate limits, size caps, caller identity, masking, auditing and the network checks therefore apply to every call.
  • Spec: not stored in the entry. The entry is marked spec_type: "api_builder", and Studio reads the spec prod serves straight from the API (with environments, the version deployed to prod), cut down to the exposed operations. The config stays small however many APIs are published, and the tools follow the API's version and the choice without registering again.
  • Auth: a bearer key equal to the API's own gateway secret (generated on first publish; view it with Security → Show gateway secret, and rotate it at any time). Rotating it updates the entry's key at once, and the old secret stops working on every server at once. The real upstream credential is never written into the entry; only the gateway holds it.
  • Identity: the entry's id is api_{api_definition_id}, stored on the definition as tool_server_id so it can be found again on unpublish or rollback. The entry is marked as an API Builder tool server, so Hrida.ai attaches a signed caller identity to each call.
  • Access: see Who can use a published API.

Because execute_tool_server, the one code path every tool server call goes through, builds its request as registered URL + OpenAPI route path, the calling side needs no special handling. For an agent, a published API is like any other Global Tool Server.

In Agent Builder no per-user enabling is needed: an agent node picks the API's exposed operations under API Tools. In chat, a Global Tool Server follows the usual rules (see the OpenAPI Tool Servers guide): it is hidden by default, and each user or model configuration enables it before it shows up as a tool.

Not listed in Manage Tool Servers​

API Builder's entries are not listed in Admin Settings → Integrations → Manage Tool Servers, which shows only the tool servers added there; with many APIs the list was unusable. Saving that page can't change or remove API Builder's entries, and it refuses an entry that claims to be one. API Builder manages them: use the agent tool catalog to see what agents can call. For diagnostics, admins can list them through the API with GET /api/v1/configs/tool_servers?include_api_builder=true.


Who Can Use a Published API​

The entry's access grants are set on every registration:

  • The API's owner and every member of its API space get read access, so the people who build and govern an API can use it in their own agents.
  • Members of the spaces it is published to get read access too.
  • A platform-wide API (one with no API space) grants no one by creating it: admins can always use it, and others only through the spaces it is published to.
  • Grants an admin added by hand earlier are kept on every re-registration.
  • Membership changes take effect immediately. Adding or removing a space member re-registers every published API in that space, so a removed member's grant is dropped straight away.
  • The gateway also re-checks the caller against these grants on every call, so a removed member is refused even in a conversation that started before they were removed.

When the Registration Is Removed or Refreshed​

What happensRegistration
The API stops being live: pulled back to draft (or moved to staged by an admin) without environments, or prod no longer serves a versionRemoved
No operation is exposed any moreRemoved
An earlier version is restored with Restore as draft (the default; see rollback)Removed until the API is reviewed and published again
An earlier published version is restored with Restore liveKept, serving the restored spec
The API is deleted: in draft or rejected, or in any status by an instance admin, a published one includedRemoved first
A mapper is added, changed or removed on a published APIRefreshed at once. Because such a change goes live immediately, only a lifecycle_manager, space_admin or admin can change mappers on a published API; developers pull it back to draft first

API​

MethodPathDescription
GET/api/v1/api-definitions/{id}/agent-toolsThe API's operations, each with exposed, used_by_count and (for the API's team) the workflows using it; operations chosen earlier that are missing; and who can use the API as a tool
PUT/api/v1/api-definitions/{id}/agent-toolsSet the exposed operations: {"operation_ids": ["getOrder"], "force": false}. Unknown operations return 422. Removing an operation a workflow uses returns 409 unless force is true
GET/api/v1/api-definitions/agent-tools/catalog?query=The agent tool catalog: every API you can use that exposes at least one operation, with its catalog and space
GET/api/v1/agent-skills/tools/apisThe API Tools picker's list: each live API you can use, with its exposed operations (those with an operationId)

API responses also carry agent_tool_count and agent_tool_total: how many operations are exposed, out of how many could be.


Hrida.ai is proprietary software of Zlabs Innovation. See the license for terms. © 2026 Zlabs Innovation.