Skip to main content
Glama

update_table

Modify a table's schema in Airtable by updating its name and description to better organize your data structure.

Instructions

Update a table's schema

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
base_idYesID of the base
table_idYesID of the table to update
nameNoNew name for the table
descriptionNoNew description for the table

Implementation Reference

  • Handler for the 'update_table' tool. Extracts parameters from the request, makes a PATCH request to the Airtable API to update the table's name and/or description, and returns the response as text.
    case "update_table": { const { base_id, table_id, name, description } = request.params.arguments as { base_id: string; table_id: string; name?: string; description?: string; }; const response = await this.axiosInstance.patch(`/meta/bases/${base_id}/tables/${table_id}`, { name, description, }); return { content: [{ type: "text", text: JSON.stringify(response.data, null, 2), }], }; }
  • src/index.ts:148-173 (registration)
    Registration of the 'update_table' tool in the listTools handler, including its name, description, and input schema definition.
    { name: "update_table", description: "Update a table's schema", inputSchema: { type: "object", properties: { base_id: { type: "string", description: "ID of the base", }, table_id: { type: "string", description: "ID of the table to update", }, name: { type: "string", description: "New name for the table", }, description: { type: "string", description: "New description for the table", }, }, required: ["base_id", "table_id"], }, },
  • Input schema definition for the 'update_table' tool, specifying required base_id and table_id, and optional name and description fields.
    inputSchema: { type: "object", properties: { base_id: { type: "string", description: "ID of the base", }, table_id: { type: "string", description: "ID of the table to update", }, name: { type: "string", description: "New name for the table", }, description: { type: "string", description: "New description for the table", }, }, required: ["base_id", "table_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