Skip to main content
Glama

query_raw

Execute raw VTQL queries on VTENext CRM for read-only data retrieval. Use this tool to directly query Potentials, Contacts, and other modules using VTQL syntax.

Instructions

Esegue una query VTQL grezza su VTENext (solo lettura)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesQuery VTQL (es. SELECT * FROM Potentials LIMIT 5)

Implementation Reference

  • The 'query_raw' tool is registered and implemented in index.js, handling raw VTQL SELECT queries and executing them using the 'client.query' method.
    server.tool(
      'query_raw',
      'Esegue una query VTQL grezza su VTENext (solo lettura)',
      {
        query: z.string().describe('Query VTQL (es. SELECT * FROM Potentials LIMIT 5)'),
      },
      async ({ query }) => {
        if (!/^SELECT/i.test(query.trim())) {
          return { content: [{ type: 'text', text: 'Errore: solo query SELECT permesse.' }] };
        }
        const results = await client.query(query);
        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