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

Connect toWhat’s Possible
CRM systemLook up customer info, register sales opportunities
Ticket systemCreate issues, update status
HR systemSubmit leave requests, look up employee info
Weather/stock APIsProvide real-time external data
Internal data APIsLook up business data like sales, inventory

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
Each tool in the list shows:
ItemDescription
NameTool display name
DescriptionTool purpose
AuthorUser who created the tool
ModifiedLast modified time (relative)
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 + button at the top-right of the Workspace > Tools list.Fill in the create form.
Tool creation form
Field LabelDescriptionExample
What does this tool do? (name)Tool display name”Customer Management API”
How can this tool be used? (description)Tool purpose”Look up and manage customer info in the CRM system”
AccessPublic, or restricted to specific groups/usersPublic, or specified groups/users
Access is split into Public and Private (specific groups/users). For Private, you can refine Read and Write permissions per group/user.
Clicking Create Tool 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

Connection Settings

FieldDescriptionDefault
Connection TypeOpenAPI or MCP dropdownOpenAPI
API Base URLOpenAPI server’s base URL
OpenAPI Spec PathPath to the OpenAPI spec fileopenapi.json
Auth TypeAuthentication methodBearer Token
API KeyToken value when using Bearer Token
EnabledToggle connection enable/disableEnabled
Enter the Bearer token in the API Key field. It’s sent as the Authorization: Bearer <token> header on API calls.
API Base URL: https://api.example.com
OpenAPI Spec Path: openapi.json
Auth Type: Bearer Token
API Key: sk-xxxxxxxxxxxxxxxx

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

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

Connection Settings

FieldDescriptionDefault
Connection TypeSelect MCP
MCP Server URLMCP server URL (SSE endpoint)
Auth TypeAuth method (None / Bearer Token / API Key)None
Token / API KeyAuth value per method
Additional HeadersExtra HTTP headers (optional)
EnabledToggle connection enable/disableEnabled

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.
X-Custom-Header: value
X-Another-Header: another-value

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.
User: Look up customer ID 12345

AI: [Calling CRM API...]

Customer info retrieved:

| Item | Value |
|------|-------|
| Name | John Doe |
| Email | hong@example.com |
| Tier | VIP |
| Last purchase | 2024-01-15 |

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

Security FeatureDescription
Encrypted communicationAll API calls are TLS-encrypted
Credential storageAPI keys are stored as JSON in the database
Access controlRestrict tool usage by Read/Write permissions
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

CauseSolution
URL errorRe-verify API Base URL and OpenAPI Spec Path
Auth failureCheck API key/token validity
NetworkCheck firewall/proxy settings
CORSCheck server-side CORS settings
CauseSolution
Insufficient permissionsCheck API permissions (scope)
Rate LimitThrottle call frequency
Server errorCheck external service status
CauseSolution
URL formatCheck SSE endpoint URL format (e.g., https://mcp.example.com/sse)
Auth method mismatchConfirm config matches the server’s required auth (None/Bearer Token/API Key)
Connection disabledVerify the Enabled toggle is on

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

Admin Tool Servers

Global tool server settings (Admin)

Tracing

Step-by-step tracking of tool invocation