UNPKG

mcp-quickbase

Version:

Work with Quickbase via Model Context Protocol

96 lines (95 loc) 2.15 kB
import { BaseTool } from "../base"; import { QuickbaseClient } from "../../client/quickbase"; /** * Parameters for create_table tool */ export interface CreateTableParams { /** * The ID of the application */ app_id: string; /** * Name of the table */ name: string; /** * Description of the table */ description?: string; /** * Additional options for table creation */ options?: Record<string, any>; } /** * Response from creating a table */ export interface CreateTableResult { /** * The ID of the created table */ tableId: string; /** * The name of the created table */ name: string; /** * The description of the created table */ description?: string; /** * Information about created fields */ fields?: Record<string, any>[]; /** * The date the table was created */ created?: string; /** * Additional details returned from the API */ [key: string]: any; } /** * Tool for creating a new table in a Quickbase application */ export declare class CreateTableTool extends BaseTool<CreateTableParams, CreateTableResult> { name: string; description: string; /** * Parameter schema for create_table */ paramSchema: { type: string; properties: { app_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 create_table tool * @param params Tool parameters * @returns Created table details */ protected run(params: CreateTableParams): Promise<CreateTableResult>; }