UNPKG

mcp-quickbase

Version:

Work with Quickbase via Model Context Protocol

76 lines (75 loc) 1.83 kB
import { BaseTool } from "../base"; import { QuickbaseClient } from "../../client/quickbase"; /** * Parameters for bulk_create_records tool */ export interface BulkCreateRecordsParams { /** * The ID of the table to create records in */ table_id: string; /** * Array of record data to insert */ records: Record<string, any>[]; } /** * Response from bulk creating records */ export interface BulkCreateRecordsResult { /** * Array of created record IDs */ recordIds: string[]; /** * The ID of the table the records were created in */ tableId: string; /** * Number of records created */ createdCount: number; /** * Creation timestamp */ createdTime?: string; } /** * Tool for creating multiple records in a Quickbase table */ export declare class BulkCreateRecordsTool extends BaseTool<BulkCreateRecordsParams, BulkCreateRecordsResult> { name: string; description: string; /** * Parameter schema for bulk_create_records */ paramSchema: { type: string; properties: { table_id: { type: string; description: string; }; records: { type: string; description: string; items: { type: string; additionalProperties: boolean; }; }; }; required: string[]; }; /** * Constructor * @param client Quickbase client */ constructor(client: QuickbaseClient); /** * Run the bulk_create_records tool * @param params Tool parameters * @returns Bulk create result */ protected run(params: BulkCreateRecordsParams): Promise<BulkCreateRecordsResult>; }