Skip to main content
Glama
LawrenceCirillo

QuickBase MCP Server

quickbase_get_relationship_details

Retrieve comprehensive details about table relationships and lookup fields for a specified table ID, including optional related field information, using the QuickBase MCP Server.

Instructions

Get detailed information about table relationships including lookup fields

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
includeFieldsNoInclude related field details
tableIdYesTable ID to analyze relationships for

Implementation Reference

  • Core handler function that retrieves detailed relationship information for a specified table, including parent/child relationships and optionally related reference/lookup fields.
    async getRelationshipDetails(tableId: string, includeFields: boolean = true): Promise<any> { try { const relationships = await this.getRelationships(tableId); const tableInfo = await this.getTableInfo(tableId); const result = { tableId, tableName: tableInfo.name, relationships: [] as any[], relatedFields: [] as any[] }; for (const relationship of relationships) { const relationshipDetail: any = { parentTableId: relationship.parentTableId, childTableId: relationship.childTableId, foreignKeyFieldId: relationship.foreignKeyFieldId, type: 'one-to-many' // QuickBase primarily supports one-to-many }; if (includeFields) { // Get fields related to this relationship const fields = await this.getTableFields(tableId); const relatedFields = fields.filter(field => field.fieldType === 'reference' || field.fieldType === 'lookup' || (field.properties && field.properties.lookupReference) ); relationshipDetail.relatedFields = relatedFields; } result.relationships.push(relationshipDetail); } return result; } catch (error) { console.error('Error getting relationship details:', error); throw error; } }
  • Tool registration entry defining the tool name, description, and input schema for MCP integration.
    { name: 'quickbase_get_relationship_details', description: 'Get detailed information about table relationships including lookup fields', inputSchema: { type: 'object', properties: { tableId: { type: 'string', description: 'Table ID to analyze relationships for' }, includeFields: { type: 'boolean', default: true, description: 'Include related field details' } }, required: ['tableId'] } },
  • JSON schema defining the input parameters for the tool.
    inputSchema: { type: 'object', properties: { tableId: { type: 'string', description: 'Table ID to analyze relationships for' }, includeFields: { type: 'boolean', default: true, description: 'Include related field details' } }, required: ['tableId'] } },
  • Helper method to fetch basic relationships for a table, used within getRelationshipDetails.
    async getRelationships(tableId: string): Promise<any[]> { const response = await this.axios.get(`/relationships`, { params: { childTableId: tableId } }); return response.data; }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/LawrenceCirillo/QuickBase-MCP-Server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server