Skip to main content
Glama

get_form

Retrieve details of a specific Tally form by its ID to access form information for management or integration purposes.

Instructions

Retrieve details of a specific Tally form

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
formIdYesID of the form to retrieve

Implementation Reference

  • Registration of the 'get_form' tool including its input schema in the _handleToolsList method. This defines the tool's name, description, and expected input (formId).
      name: 'get_form',
      description: 'Retrieve information about a specific Tally form',
      inputSchema: {
        type: 'object',
        properties: {
          formId: { type: 'string', description: 'ID of the form to retrieve' }
        },
        required: ['formId']
      }
    },
  • Input schema definition for the 'get_form' tool requiring a formId string.
        type: 'object',
        properties: {
          formId: { type: 'string', description: 'ID of the form to retrieve' }
        },
        required: ['formId']
      }
    },
  • Core implementation of form retrieval via Tally API in TallyApiClient.getForm, which makes the HTTP GET request to /forms/{formId} and validates the response using TallyFormSchema. This is the underlying service method used by tools.
    public async getForm(formId: string): Promise<TallyForm> {
      if (this.isMockEnabled()) {
        const mockRes = await tallyApiMock.getForm(formId);
        return mockRes.data;
      }
      const url = `/forms/${formId}`;
      const response = await this.get(url);
      return validateTallyResponse(TallyFormSchema, response.data);
    }

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/learnwithcc/tally-mcp'

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