Skip to main content
Glama

search_contatti

Search contacts by name, email, or company in the VTENext CRM system to find and retrieve contact information quickly.

Instructions

Cerca contatti per nome, email o azienda

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
qYesTesto da cercare
limitNo

Implementation Reference

  • The definition and handler implementation for the 'search_contatti' tool, which queries the 'Contacts' table using a SQL-like string.
    server.tool(
      'search_contatti',
      'Cerca contatti per nome, email o azienda',
      {
        q: z.string().describe('Testo da cercare'),
        limit: z.number().optional().default(10),
      },
      async ({ q, limit }) => {
        const results = await client.query(
          `SELECT id, firstname, lastname, email, phone, account_id FROM Contacts WHERE firstname LIKE '%${q}%' OR lastname LIKE '%${q}%' OR email LIKE '%${q}%' LIMIT ${limit};`
        );
        return {
          content: [{ type: 'text', text: JSON.stringify(results, null, 2) }],
        };
      }
    );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Castaldo-Solutions/mcp-vtenext'

If you have feedback or need assistance with the MCP directory API, please join our Discord server