describe_modulo
Retrieve available fields for a VTENext CRM module to understand data structure and enable accurate data operations.
Instructions
Mostra i campi disponibili per un modulo VTENext
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| modulo | Yes | Nome del modulo (es. Potentials, Contacts, Activities) |
Implementation Reference
- index.js:182-194 (handler)The implementation of the describe_modulo tool. It takes 'modulo' as an input, calls client.describe(modulo), maps the fields to name, type, and label, and returns the result as a stringified JSON.
server.tool( 'describe_modulo', 'Mostra i campi disponibili per un modulo VTENext', { modulo: z.string().describe('Nome del modulo (es. Potentials, Contacts, Activities)'), }, async ({ modulo }) => { const result = await client.describe(modulo); const fields = result.fields.map(f => ({ name: f.name, type: f.type.name, label: f.label })); return { content: [{ type: 'text', text: JSON.stringify(fields, null, 2) }], }; }