add_nota_opportunita
Add notes or comments to sales opportunities in VTENext CRM to track progress and maintain detailed records for each deal.
Instructions
Aggiunge una nota/commento a un'opportunità
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| opportunita_id | Yes | ID dell'opportunità (es. 13x42) | |
| testo | Yes | Testo della nota |
Implementation Reference
- index.js:145-160 (handler)The tool 'add_nota_opportunita' is registered and implemented in index.js, taking an opportunity ID and a text string as inputs to create a new comment record using the client.create method.
server.tool( 'add_nota_opportunita', 'Aggiunge una nota/commento a un\'opportunità', { opportunita_id: z.string().describe('ID dell\'opportunità (es. 13x42)'), testo: z.string().describe('Testo della nota'), }, async ({ opportunita_id, testo }) => { const result = await client.create('ModComments', { commentcontent: testo, related_to: opportunita_id, }); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }], }; }