Skip to main content
Glama
LawrenceCirillo

QuickBase MCP Server

quickbase_get_table_fields

Retrieve all fields for a specified table using the QuickBase MCP Server, enabling efficient management and organization of table structures.

Instructions

Get all fields for a table

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tableIdYesQuickBase table ID

Implementation Reference

  • The core handler function that executes the tool logic by making an API request to QuickBase to retrieve all fields for the given table ID.
    async getTableFields(tableId: string): Promise<any[]> {
      const response = await this.axios.get(`/fields`, {
        params: { tableId }
      });
      return response.data;
    }
  • Defines the tool's metadata including name, description, and input schema validation (requiring tableId string).
    {
      name: 'quickbase_get_table_fields',
      description: 'Get all fields for a table',
      inputSchema: {
        type: 'object',
        properties: {
          tableId: { type: 'string', description: 'QuickBase table ID' }
        },
        required: ['tableId']
      }
    },
  • src/index.ts:140-151 (registration)
    Registers the tool handler in the MCP server's switch statement, dispatching calls to the QuickBaseClient.getTableFields method.
    case 'quickbase_get_table_fields':
      if (!args || typeof args !== 'object') {
        throw new Error('Invalid arguments');
      }
      return {
        content: [
          {
            type: 'text',
            text: JSON.stringify(await this.qbClient.getTableFields(args.tableId as string), null, 2),
          },
        ],
      };
  • src/index.ts:49-54 (registration)
    Registers the list tools handler which returns the quickbaseTools array containing this tool's schema.
    // List available tools
    this.server.setRequestHandler(ListToolsRequestSchema, async () => {
      return {
        tools: quickbaseTools,
      };
    });

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