Custom Tools
Need to connect agents to an API, database, or service that MeetLoyd does not have a pre-built connector for? Custom tools let you extend your agents with any capability you can imagine.
What Are Custom Tools?
Custom tools are user-defined actions that agents can call during conversations. They follow the Model Context Protocol (MCP) standard -- the same open protocol used by all of MeetLoyd's built-in integrations. When an agent decides it needs to use a tool, MeetLoyd executes it securely on the server side and returns the result.
You define three things for each custom tool:
- What it does -- a name and description so the agent knows when to use it
- What it needs -- an input schema describing the parameters
- How it runs -- the execution method (HTTP call, JavaScript logic, webhook, or database query)
Tool Types
| Type | Best For | How It Works |
|---|---|---|
| HTTP | REST APIs | MeetLoyd makes a server-side HTTP call with your configuration |
| JavaScript | Custom logic, data transformation | Your code runs in a secure sandbox with a 30-second timeout |
| Webhook | External processing on your own server | MeetLoyd calls your endpoint; your server processes and responds |
| Database | SQL queries | Direct connection to your database with parameterized queries |
Why Custom Tools?
How Agents Use Custom Tools
Once you create a custom tool and assign it to an agent, the agent can call it naturally during any conversation. For example, if you create a weather_lookup tool, a user can ask "What is the weather in Paris?" and the agent will call your tool, get the result, and respond conversationally.
You do not need to teach the agent special syntax -- the tool's name and description are enough for the agent to know when and how to use it.
Next: Explore Security Features for authentication and access control.