quickbase_get_relationships
Retrieve and manage relationships for a specified table using the QuickBase MCP Server, enabling efficient data structure organization and integration.
Instructions
Get relationships for a table
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tableId | Yes | Table ID |
Implementation Reference
- src/quickbase/client.ts:250-255 (handler)The main handler function that performs the QuickBase API GET request to /relationships?childTableId={tableId} and returns the response data.async getRelationships(tableId: string): Promise<any[]> { const response = await this.axios.get(`/relationships`, { params: { childTableId: tableId } }); return response.data; }
- src/tools/index.ts:380-390 (schema)Defines the tool's metadata including name, description, and input schema requiring a tableId.{ name: 'quickbase_get_relationships', description: 'Get relationships for a table', inputSchema: { type: 'object', properties: { tableId: { type: 'string', description: 'Table ID' } }, required: ['tableId'] } },
- src/index.ts:351-362 (registration)Registers the tool in the MCP callTool handler switch case, validating args and calling the QuickBaseClient handler.case 'quickbase_get_relationships': if (!args || typeof args !== 'object') { throw new Error('Invalid arguments'); } return { content: [ { type: 'text', text: JSON.stringify(await this.qbClient.getRelationships(args.tableId as string), null, 2), }, ], };