Skip to main content
Glama

list_tables

Retrieve all tables within an Airtable base by providing the base ID to manage and organize your data structure.

Instructions

List all tables in a base

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
base_idYesID of the base

Implementation Reference

  • Handler for the 'list_tables' tool. Extracts the base_id from the request arguments, fetches the list of tables from the Airtable API endpoint `/meta/bases/${base_id}/tables`, and returns the response data as formatted JSON text.
    case "list_tables": { const { base_id } = request.params.arguments as { base_id: string }; const response = await this.axiosInstance.get(`/meta/bases/${base_id}/tables`); return { content: [{ type: "text", text: JSON.stringify(response.data.tables, null, 2), }], }; }
  • src/index.ts:86-99 (registration)
    Registration of the 'list_tables' tool in the ListTools response, including its name, description, and input schema requiring a 'base_id'.
    { name: "list_tables", description: "List all tables in a base", inputSchema: { type: "object", properties: { base_id: { type: "string", description: "ID of the base", }, }, required: ["base_id"], }, },
  • Input schema for the 'list_tables' tool, defining the required 'base_id' parameter as a string.
    inputSchema: { type: "object", properties: { base_id: { type: "string", description: "ID of the base", }, }, required: ["base_id"], },

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/felores/airtable-mcp'

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