Skip to main content
Glama

search_opportunita

Search for opportunities by name in VTENext CRM to identify potential business deals using text queries.

Instructions

Cerca opportunità per nome

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
qYesTesto da cercare nel nome dell'opportunità
limitNo

Implementation Reference

  • index.js:60-75 (handler)
    Implementation of the 'search_opportunita' MCP tool, which performs a query against the VTENext Potentials module.
    server.tool(
      'search_opportunita',
      'Cerca opportunità per nome',
      {
        q: z.string().describe('Testo da cercare nel nome dell\'opportunità'),
        limit: z.number().optional().default(10),
      },
      async ({ q, limit }) => {
        const results = await client.query(
          `SELECT id, potentialname, sales_stage, amount, closingdate FROM Potentials WHERE potentialname 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