Skip to main content
Glama
form_retrieval_tool.ts877 B
import { Tool } from './tool'; import { TallyApiService } from '../services'; import { TallyApiClientConfig } from '../services/TallyApiClient'; import { TallyFormsResponse } from '../models/tally-schemas'; export interface FormRetrievalArgs { page?: number; limit?: number; workspaceId?: string; } export class FormRetrievalTool implements Tool<FormRetrievalArgs, TallyFormsResponse> { public readonly name = 'list_forms'; public readonly description = 'Lists Tally forms.'; private tallyApiService: TallyApiService; constructor(apiClientConfig: TallyApiClientConfig) { this.tallyApiService = new TallyApiService(apiClientConfig); } public async execute(args: FormRetrievalArgs): Promise<TallyFormsResponse> { console.log(`Executing form retrieval tool with args: ${JSON.stringify(args)}`); return this.tallyApiService.getForms(args); } }

Implementation Reference

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