airtable

v1.0.3
com.mcparmory/airtable Checked 8 hours ago Published 6 months ago

Create, read, update, and delete records in Airtable bases and tables

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_current_user Get Current User

Retrieve the current authenticated user's identity and account information. Returns the user ID, associated OAuth scopes (if applicable), and email address (if the token has user.email:read scope).

list_table_records List Table Records

Retrieve paginated records from a table with optional filtering, formatting, and view selection. Results are returned one page at a time (up to 100 records per page by default), with pagination support via offset tokens.

ParameterTypeDescription
baseId *stringThe unique identifier for the base containing the table.
tableIdOrName *stringThe table identifier or name to query records from.
cellFormatstringFormat for cell values: 'json' returns type-specific JSON representations, 'string' returns user-facing formatted strings. When using 'string', timeZone and userLocale are required.
filterByFormulastringA formula to filter records. Records are included if the formula evaluates to a truthy value (excluding 0, false, empty string, NaN, empty array, or #Error!).
maxRecordsintegerThe maximum total number of records to return across all paginated requests. Must be at least 1.
offsetstringPagination token from a previous response. Include this to fetch the next page of records.
pageSizeintegerNumber of records to return per page. Must be between 1 and 100 (defaults to 100).
recordMetadataarrayOptional metadata to include with each record. When specified, adds commentCount to the record metadata.
sort_directionsarrayList of sort directions corresponding to sort_fields. Each value must be 'asc' or 'desc'. If shorter than sort_fields, remaining fields default to 'asc'.
sort_fieldsarrayList of field names to sort by, in order of precedence
timeZonestringThe time zone for formatting dates when using string cell format (required if cellFormat is 'string'). Use standard time zone identifiers.
userLocalestringThe user locale for formatting dates when using string cell format (required if cellFormat is 'string'). Use standard locale codes.
viewstringFilter results to a specific view by its name or ID. Only records visible in that view will be returned.

create_records Create Records

Create multiple records in a table. Submit up to 10 record objects in a single request, with cell values keyed by field name or field ID. Returns an array of newly created record IDs.

ParameterTypeDescription
baseId *stringThe unique identifier for the base containing the target table.
tableIdOrName *stringThe table identifier or name. Table IDs are recommended to avoid needing request updates when table names change.
recordsarrayArray of up to 10 record objects to create. Each record object should contain a single key with an inner object of cell values, keyed by field name or field ID.
typecastbooleanEnable automatic type conversion from string values to appropriate field types. Disabled by default to preserve data integrity; enable when integrating with third-party data sources that may require c…

replace_records Replace Records

Replace multiple records in a table with a destructive update that clears all unincluded cell values. Supports upserting up to 10 records by matching on specified field(s).

ParameterTypeDescription
baseId *stringThe unique identifier of the base containing the table.
fieldsToMergeOn *arrayOne to three field names or IDs used to match and identify records for replacement. Field IDs must uniquely identify a single record.
records *arrayArray of up to 10 records to replace or upsert, with each record containing field values to apply.
tableIdOrName *stringThe unique identifier or name of the table to update.
typecastbooleanWhen enabled, Airtable will attempt to convert string values to appropriate cell types (e.g., numbers, dates). Defaults to false.

update_records Update Records

Update or upsert up to 10 records in a table. When performUpsert is enabled, records matching the specified merge fields are updated; non-matching records are created. Only fields included in the request are modified; all other fields remain unchanged.

ParameterTypeDescription
baseId *stringThe unique identifier of the base containing the table.
fieldsToMergeOn *arrayOne to three field names or IDs used to identify which records to update or upsert. Field IDs must uniquely identify a single record. When multiple fields are specified, all must match for a record to…
records *arrayArray of record objects to update or upsert, with a maximum of 10 records per request. Each record should include the merge-on fields and any fields to be updated.
tableIdOrName *stringThe unique identifier or name of the table to update records in.
typecastbooleanWhen enabled, Airtable will automatically convert string values to appropriate cell types (e.g., '123' to number, 'true' to checkbox). Defaults to false.

delete_records Delete Records

Delete multiple records from a table by their record IDs. Supports batch deletion of up to 10 records in a single request.

ParameterTypeDescription
baseId *stringThe unique identifier for the base containing the table.
tableIdOrName *stringThe table identifier or name where records will be deleted.
recordsarrayArray of record IDs to delete. Accepts up to 10 record IDs per request. Each ID should be a valid record identifier string.

get_record Get Record

Retrieve a single record by its ID from a specified table. If the record is not found in the table, the system automatically searches across the entire base and returns the record if located.

ParameterTypeDescription
baseId *stringThe unique identifier of the base containing the record.
recordId *stringThe unique identifier of the record to retrieve.
tableIdOrName *stringThe table identifier or name where the record is located.
cellFormatstringThe format for cell values in the response. Use 'json' to format cells according to their field type, or 'string' to format all cells as user-facing strings (requires timeZone and userLocale parameter…

replace_record Replace Record

Destructively update a single record in a table, clearing all unspecified cell values. Use this operation when you want to replace the entire record content with new values.

ParameterTypeDescription
baseId *stringThe unique identifier for the base containing the table and record to update.
fields *objectAn object containing the cell values for the record, keyed by field name or field ID. Any fields omitted from this object will be cleared during the update.
recordId *stringThe unique identifier of the record to update.
tableIdOrName *stringThe table identifier or name. Both formats are accepted interchangeably.
typecastbooleanEnable automatic data type conversion from string values when integrating with third-party data sources. Disabled by default to maintain data integrity.

update_record Update Record

Partially update a single record in a table by specifying only the fields you want to change. Unspecified fields remain unchanged. Table names and IDs can be used interchangeably.

ParameterTypeDescription
baseId *stringThe unique identifier for the base containing the record.
fields *objectAn object containing the field values to update, keyed by field name or field ID. Only specified fields will be updated; all other fields remain unchanged.
recordId *stringThe unique identifier of the record to update.
tableIdOrName *stringThe table identifier or name where the record is located. Both table IDs and table names are accepted.
typecastbooleanEnable automatic data type conversion from string values when updating fields. Disabled by default to preserve data integrity, but useful when integrating with third-party data sources.

delete_record Delete Record

Permanently deletes a single record from a table. This action cannot be undone.

ParameterTypeDescription
baseId *stringThe unique identifier of the base containing the table and record to delete.
recordId *stringThe unique identifier of the record to delete.
tableIdOrName *stringThe table identifier or name where the record is located. Can be specified by either the table's unique ID or its display name.

sync_table_data Sync Table Data

Syncs CSV data into a Sync API table. The CSV can contain up to 10,000 rows and 500 columns, with a maximum HTTP request size of 2 MB per sync run.

ParameterTypeDescription
apiEndpointSyncId *stringThe API endpoint sync identifier, obtained from the Sync API table setup flow or the synced table settings.
baseId *stringThe unique identifier for the base containing the table to sync.
body *stringRaw CSV data to sync into the table. Supports up to 10,000 rows and 500 columns, with a total request size not exceeding 2 MB.
tableIdOrName *stringThe table identifier or name where the CSV data will be synced.

upload_attachment Upload Attachment

Upload a file attachment (up to 5 MB) directly to an attachment field in a record. The file must be provided as base64-encoded bytes along with its content type and filename.

ParameterTypeDescription
attachmentFieldIdOrName *stringThe ID or name of the attachment field where the file will be uploaded.
baseId *stringThe unique identifier of the base containing the record.
contentType *stringThe MIME type of the file being uploaded (e.g., image/jpeg, application/pdf, text/plain).
file *stringThe file content encoded as a base64 string. The decoded file size must not exceed 5 MB.
filename *stringThe name of the file including its extension (e.g., document.pdf, photo.jpg).
recordId *stringThe unique identifier of the record where the attachment will be added.