mcp-quickbase
Version:
Work with Quickbase via Model Context Protocol
78 lines (77 loc) • 1.89 kB
TypeScript
import { BaseTool } from "../base";
import { QuickbaseClient } from "../../client/quickbase";
/**
* Parameters for bulk_update_records tool
*/
export interface BulkUpdateRecordsParams {
/**
* The ID of the table containing the records
*/
table_id: string;
/**
* Array of record data to update (must include record IDs)
*/
records: Array<Record<string, any> & {
id: string;
}>;
}
/**
* Response from bulk updating records
*/
export interface BulkUpdateRecordsResult {
/**
* Array of updated record IDs
*/
recordIds: string[];
/**
* The ID of the table containing the records
*/
tableId: string;
/**
* Number of records updated
*/
updatedCount: number;
/**
* Update timestamp
*/
updatedTime?: string;
}
/**
* Tool for updating multiple records in a Quickbase table
*/
export declare class BulkUpdateRecordsTool extends BaseTool<BulkUpdateRecordsParams, BulkUpdateRecordsResult> {
name: string;
description: string;
/**
* Parameter schema for bulk_update_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_update_records tool
* @param params Tool parameters
* @returns Bulk update result
*/
protected run(params: BulkUpdateRecordsParams): Promise<BulkUpdateRecordsResult>;
}