Custom Tools
Extend your agent beyond the built-in tools in two ways: call your own HTTP APIs, or connect external tool servers via MCP.Calling your own APIs
Custom HTTP integrations are configured through the unified API & Webhooks tool. It covers everything the old “Custom Tool (API)” did — and more:- API Endpoints mode — define each endpoint (or import an OpenAPI spec) as a named, typed function the agent calls directly. This is the recommended path.
- Free-form Request mode — let the agent compose its own requests under a base URL.
- Webhook mode — fire-and-forget POSTs to Zapier / Make / n8n / custom URLs.
MCP (Model Context Protocol) Integration
MCP lets you connect external tool servers to your agents. An MCP server exposes a set of tools over a standardized protocol, so your agent can discover and use them automatically.What is MCP?
MCP is an open protocol that standardizes how AI agents communicate with tool servers. Instead of configuring each tool individually, you point your agent at an MCP server and it automatically discovers all available tools.Connecting an MCP Server
- Go to your agent’s Tools section.
- Click Add Tool and select MCP Server.
- Enter the MCP server URL:
- Configure authentication if required (API key or bearer token).
- Click Discover Tools — thinnestAI will fetch the list of available tools from the server.
- Select which tools to enable for your agent.
- Save.
Running Your Own MCP Server
You can build an MCP server to expose your internal tools and APIs:MCP Use Cases
- Internal APIs — Expose company-specific tools without building custom integrations for each one.
- Shared tool servers — One MCP server can serve tools to multiple agents.
- Third-party MCP servers — Connect to the growing ecosystem of public MCP servers.
Best Practices
Tool Naming
- Use
snake_casenames:check_inventory,create_order,get_user_info. - Make names action-oriented: the agent should understand what the tool does.
Descriptions
- Describe inputs and outputs clearly.
- Mention edge cases: “Returns null if the user is not found.”
- Include example values when helpful.
Error Handling
- Your API should return meaningful error messages.
- The agent will read error responses and can explain them to the user or retry.
- Use standard HTTP status codes (400 for bad input, 404 for not found, etc.).
Security
- Use HTTPS for all production endpoints.
- Rotate API keys regularly.
- Limit tool permissions to only what the agent needs (read-only if possible).
- Consider rate limiting on your API to prevent excessive calls.
Example: Order Status Checker
Here’s a complete example of a custom tool that checks order status: Tool Configuration:
Parameters:
Agent conversation:
Next Steps
- CRM & Webhooks — Connect to CRMs and send data to external systems.
- Built-in Tools — Browse all pre-built tools available.

