close_search_leads
Pack: close-crm · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/close_search_leads for the schema, then POST the same URL with its arguments for the data.
Search or list leads (companies/accounts in Close) using Close’s query language.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
_apiKey | string | yes | Close API key |
query | string | no | Close query string. Examples: name:"Acme Inc", status_label:"Potential", email_address:@acme.com, lead_created_within:30d. Free text also works. Omit to list all leads. |
_limit | number | no | Results per page (default 100, max 200) |
_skip | number | no | Number of results to skip for pagination (default 0) |
Example call
Arguments
{
"_apiKey": "your-close-crm-api-key"
}
curl
curl -X POST https://gateway.pipeworx.io/close-crm/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"close_search_leads","arguments":{"_apiKey":"your-close-crm-api-key"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('close_search_leads', {
"_apiKey": "your-close-crm-api-key"
});
More examples
{
"_apiKey": "your-close-crm-api-key",
"query": "name:\"Acme Inc\"",
"_limit": 50
}
Connect
Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the close-crm pack
{
"mcpServers": {
"close-crm": {
"url": "https://gateway.pipeworx.io/close-crm/mcp"
}
}
}
See Getting Started for client-specific install steps.