mcp-quickbase
Version:
Work with Quickbase via Model Context Protocol
92 lines (91 loc) • 2.08 kB
TypeScript
import { BaseTool } from "../base";
import { QuickbaseClient } from "../../client/quickbase";
/**
* Parameters for update_table tool
*/
export interface UpdateTableParams {
/**
* The ID of the table to update
*/
table_id: string;
/**
* New name for the table
*/
name?: string;
/**
* New description for the table
*/
description?: string;
/**
* Additional options for table update
*/
options?: Record<string, any>;
}
/**
* Response from updating a table
*/
export interface UpdateTableResult {
/**
* The ID of the updated table
*/
tableId: string;
/**
* The updated name of the table
*/
name?: string;
/**
* The updated description of the table
*/
description?: string;
/**
* The date the table was updated
*/
updated?: string;
/**
* Additional details returned from the API
*/
[key: string]: any;
}
/**
* Tool for updating an existing table in a Quickbase application
*/
export declare class UpdateTableTool extends BaseTool<UpdateTableParams, UpdateTableResult> {
name: string;
description: string;
/**
* Parameter schema for update_table
*/
paramSchema: {
type: string;
properties: {
table_id: {
type: string;
description: string;
};
name: {
type: string;
description: string;
};
description: {
type: string;
description: string;
};
options: {
type: string;
description: string;
};
};
required: string[];
};
/**
* Constructor
* @param client Quickbase client
*/
constructor(client: QuickbaseClient);
/**
* Run the update_table tool
* @param params Tool parameters
* @returns Updated table details
*/
protected run(params: UpdateTableParams): Promise<UpdateTableResult>;
}