UNPKG

mcp-quickbase

Version:

Work with Quickbase via Model Context Protocol

69 lines (68 loc) 1.64 kB
import { BaseTool } from '../base'; import { QuickbaseClient } from '../../client/quickbase'; /** * Parameters for create_record tool */ export interface CreateRecordParams { /** * The ID of the table to create the record in */ table_id: string; /** * The data for the new record, formatted as a JSON object * with field IDs or field names as keys */ data: Record<string, unknown>; } /** * Response from creating a record */ export interface CreateRecordResult { /** * The ID of the created record */ recordId: string; /** * The ID of the table the record was created in */ tableId: string; /** * Creation timestamp */ createdTime?: string; } /** * Tool for creating a new record in a Quickbase table */ export declare class CreateRecordTool extends BaseTool<CreateRecordParams, CreateRecordResult> { name: string; description: string; /** * Parameter schema for create_record */ paramSchema: { type: string; properties: { table_id: { type: string; description: string; }; data: { type: string; description: string; }; }; required: string[]; }; /** * Constructor * @param client Quickbase client */ constructor(client: QuickbaseClient); /** * Run the create_record tool * @param params Tool parameters * @returns Created record information */ protected run(params: CreateRecordParams): Promise<CreateRecordResult>; }