Skip to main content
Tool integration lets the AI invoke external system functions (Function Calling). Connect a REST API based on an OpenAPI spec or an MCP (Model Context Protocol) server, and the AI automatically calls tools at the right moment during a conversation.

What is a Tool?

A tool is an interface that extends the AI’s capabilities to external systems. The AI can fetch real-time information beyond its training data or trigger actions on external systems.

Use Cases

Supported Protocols

OpenAPI

Standard REST API spec (formerly Swagger). The general-purpose protocol most web services provide.

MCP

Model Context Protocol. AI-dedicated tool server protocol with safer and more efficient integration.

Tool List

In Workspace > Tools, view all registered tool integrations.
Tool list

Manage registered tool integrations in Workspace > Tools

Each tool in the list shows: There’s a search box at the top of the list to find tools by name or description. The menu (...) on each tool card lets you delete.

Creating a Tool

Tool creation has two steps: enter basic info (CreateTool), then configure the connection on the detail page (ToolDetail).
1

Create a new tool

Click the + New Tool button at the top-right of the Workspace > Tools list.Fill in the create form.
Tool creation form

Set tool name, description, and access permissions

Access is split into Public and Private (specific groups/users). For Private, you can refine Read and Write permissions per group/user.
Clicking Save & Update creates the tool and auto-redirects to the detail settings page.
2

Configure the connection on the detail page

Set up the actual connection on the auto-loaded detail page (/workspace/tools/{id}). See the OpenAPI Tool Connection and MCP Tool Connection sections below for the detail page configuration.

OpenAPI Tool Connection

How to connect a REST API that provides an OpenAPI (formerly Swagger) spec. Configure the following on the tool detail page.
Tool detail page

On the tool detail page, configure connection type, URL, auth, and Tool Description

Connection Settings

Enter the Bearer token in the API Key field. It’s sent as the Authorization: Bearer <token> header on API calls.

Test Connection and Verify Functions

After configuration, click the Test Connection button. When the connection succeeds, the Available Functions panel on the right auto-displays the API endpoint list. Each function shows HTTP method (GET, POST, etc.), name, description, and path. Hover to see parameter details.
Available functions panel

On successful connection, the available API endpoint list is displayed automatically


MCP Tool Connection

MCP (Model Context Protocol) is a dedicated protocol for communication between AI models and external tools. On the tool detail page, change Connection Type to MCP and configure the following.
MCP connection config

Change Connection Type to MCP and configure server URL and authentication

Connection Settings

MCP Authentication Methods

Connect to the MCP server without auth. Suitable for local or internal-network MCP servers.

Additional Headers

If the MCP server requires custom headers, enter them in the Additional Headers field. One per line in key: value form.

Test Connection

Click Test Connection to connect to the MCP server and fetch the list of provided tools. On success, the MCP tool list is shown in the Available Functions panel on the right.

Tool Description (for the agent)

The Tool Description field at the top of the tool detail page is used by the agent to decide when to use this tool server.
  • Write the description directly, or click the AI button to auto-generate based on the connected function list
  • For AI generation, choose the model from the dropdown (default: system default model)
  • AI generation is only possible after Test Connection has loaded the function list
A well-written Tool Description improves the agent’s accuracy in choosing the right tool at the right time. Example: “Use when project issue management, message sending, or API integration is needed.”

Using Tools

Connect a Tool to an Agent

When you connect a tool to an agent, the AI auto-invokes it at appropriate moments during a conversation.
  1. In Workspace > Agents, open the agent edit screen
  2. Pick the tool to connect in the Tools section
  3. Save

Tool Invocation in Chat

The AI analyzes the user’s question, decides if a tool is needed, and calls it automatically when so.

Tool Management

Edit

Click a card in the tool list to go to the detail page where you can edit connection settings, name, description, Tool Description, and more. Save changes with the Save & Update button at the top-right of the detail page.

Delete

In the tool list, click the menu (...) on the right of a card and select Delete. Confirm in the deletion dialog and the tool is permanently deleted.

Change Access

Click the Access button at the top-right of the detail page to change access permissions. Specify Read and Write permissions per group/user, or set to Public.

Security Considerations

API keys are stored as plain text — rotate them regularly. Connect only APIs within private networks, and use IP allowlisting or VPN/Private Endpoint when needed. Restrict database access appropriately to protect credentials.

Troubleshooting


FAQ

Any API providing an OpenAPI (Swagger) spec can be connected. Without a spec, build your own MCP server or write the OpenAPI spec separately.
The external service’s pricing applies when using its API. Cloosphere itself charges no extra cost for tool calls.
All communication is TLS-encrypted, and access can be finely controlled to limit usage. Combined with guardrails, you can further prevent sensitive info leaks.
If you already have a REST API providing an OpenAPI spec, choose OpenAPI. If you’re building a new AI-dedicated tool server or already have an MCP-compatible server, choose MCP.

Next Steps

Connect a Tool to an Agent

Extend AI capabilities by connecting tools to agents

Tracing

Step-by-step tracking of tool invocation