get-answers
Extract and view responses from a dynamic form using its unique UUID. Simplify data retrieval and analysis for web form submissions with this tool in the Dynamic Form MCP server.
Instructions
Obtiene las respuestas de un formulario existente mediante su UUID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uuid | Yes | UUID del formulario |
Implementation Reference
- src/index.ts:80-87 (handler)Handler function for the 'get-answers' tool that creates a DynamicForm instance with the given UUID and calls getAnswers() to retrieve the form answers, returning them as JSON or an error message.async ({ uuid }) => { const form = new DynamicForm(uuid); const { answers, error } = await form.getAnswers(); if (error) { return { content: [{ type: "text", text: `Error al obtener las respuestas: ${error}` }] }; } return { content: [{ type: "text", text: JSON.stringify(answers) }] }; }
- src/index.ts:76-88 (registration)Registration of the 'get-answers' MCP tool using server.tool(), including name, description, input schema, and inline handler.server.tool( "get-answers", "Obtiene las respuestas de un formulario existente mediante su UUID", { uuid: z.string().uuid().describe("UUID del formulario") }, async ({ uuid }) => { const form = new DynamicForm(uuid); const { answers, error } = await form.getAnswers(); if (error) { return { content: [{ type: "text", text: `Error al obtener las respuestas: ${error}` }] }; } return { content: [{ type: "text", text: JSON.stringify(answers) }] }; } );
- src/index.ts:79-79 (schema)Input schema for 'get-answers' tool: requires a 'uuid' parameter validated as a UUID string.{ uuid: z.string().uuid().describe("UUID del formulario") },