mcp-quickbase
Version:
Work with Quickbase via Model Context Protocol
67 lines (66 loc) • 1.74 kB
TypeScript
import { BaseTool } from "../base";
import { QuickbaseClient } from "../../client/quickbase";
/**
* Parameters for delete_relationship tool
*/
export interface DeleteRelationshipParams {
/**
* The ID of the child table (DBID) containing the relationship
*/
table_id: string;
/**
* The ID of the relationship to delete
*/
relationship_id: number;
}
/**
* Result from deleting a relationship
*/
export interface DeleteRelationshipResult {
/**
* The ID of the deleted relationship
*/
relationshipId: number;
/**
* Whether the deletion was successful
*/
deleted: boolean;
}
/**
* Tool for deleting a table-to-table relationship in Quickbase.
*
* WARNING: This is a DESTRUCTIVE operation that permanently deletes
* the relationship and all associated lookup and summary fields.
*/
export declare class DeleteRelationshipTool extends BaseTool<DeleteRelationshipParams, DeleteRelationshipResult> {
name: string;
description: string;
/**
* Parameter schema for delete_relationship
*/
paramSchema: {
type: string;
properties: {
table_id: {
type: string;
description: string;
};
relationship_id: {
type: string;
description: string;
};
};
required: string[];
};
/**
* Constructor
* @param client Quickbase client
*/
constructor(client: QuickbaseClient);
/**
* Run the delete_relationship tool
* @param params Tool parameters
* @returns Deletion confirmation
*/
protected run(params: DeleteRelationshipParams): Promise<DeleteRelationshipResult>;
}