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
| Name | Required | Description | Default |
|---|---|---|---|
| base_id | Yes | ID of the base | |
| table_id | Yes | ID of the table to update | |
| name | No | New name for the table | |
| description | No | New description for the table |
Implementation Reference
- src/index.ts:445-464 (handler)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"], }, },
- src/index.ts:151-172 (schema)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"], },