Skip to main content
Glama

delete_record

Remove a specific record from an Airtable table by providing the base ID, table name, and record ID to delete unwanted data entries.

Instructions

Delete a record from a table

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
base_idYesID of the base
table_nameYesName of the table
record_idYesID of the record to delete

Implementation Reference

  • The handler for the 'delete_record' tool. It extracts base_id, table_name, and record_id from arguments, makes a DELETE request to the Airtable API endpoint for that record, and returns the response data.
    case "delete_record": { const { base_id, table_name, record_id } = request.params.arguments as { base_id: string; table_name: string; record_id: string; }; const response = await this.axiosInstance.delete( `/${base_id}/${table_name}/${record_id}` ); return { content: [{ type: "text", text: JSON.stringify(response.data, null, 2), }], }; }
  • src/index.ts:323-344 (registration)
    Registration of the 'delete_record' tool in the listTools response, including its name, description, and input schema.
    { name: "delete_record", description: "Delete a record from a table", inputSchema: { type: "object", properties: { base_id: { type: "string", description: "ID of the base", }, table_name: { type: "string", description: "Name of the table", }, record_id: { type: "string", description: "ID of the record to delete", }, }, required: ["base_id", "table_name", "record_id"], }, },
  • Input schema definition for the 'delete_record' tool.
    inputSchema: { type: "object", properties: { base_id: { type: "string", description: "ID of the base", }, table_name: { type: "string", description: "Name of the table", }, record_id: { type: "string", description: "ID of the record to delete", }, }, required: ["base_id", "table_name", "record_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