Skip to main content
Glama

get-answers

Retrieve form responses using a form's unique identifier. This tool fetches submitted answers from dynamic forms for analysis or processing.

Instructions

Obtiene las respuestas de un formulario existente mediante su UUID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uuidYesUUID del formulario

Implementation Reference

  • src/index.ts:76-88 (registration)
    Full registration of the 'get-answers' tool using server.tool(), including the tool name, description, input schema (UUID), and the complete handler function that fetches and returns form answers.
    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) }] }; } );
  • The handler function implementing the core logic of the 'get-answers' tool: instantiates DynamicForm with UUID, calls getAnswers(), handles errors, and formats the response as MCP content.
    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) }] }; }
  • Zod input schema for the 'get-answers' tool, validating a single 'uuid' parameter as a string UUID.
    { uuid: z.string().uuid().describe("UUID del formulario") },

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/backsoul/dynamicform-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server