airtable
v1.0.3Create, 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.
| Parameter | Type | Description |
|---|---|---|
baseId * | string | The unique identifier for the base containing the table. |
tableIdOrName * | string | The table identifier or name to query records from. |
cellFormat | string | Format for cell values: 'json' returns type-specific JSON representations, 'string' returns user-facing formatted strings. When using 'string', timeZone and userLocale are required. |
filterByFormula | string | A 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!). |
maxRecords | integer | The maximum total number of records to return across all paginated requests. Must be at least 1. |
offset | string | Pagination token from a previous response. Include this to fetch the next page of records. |
pageSize | integer | Number of records to return per page. Must be between 1 and 100 (defaults to 100). |
recordMetadata | array | Optional metadata to include with each record. When specified, adds commentCount to the record metadata. |
sort_directions | array | List 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_fields | array | List of field names to sort by, in order of precedence |
timeZone | string | The time zone for formatting dates when using string cell format (required if cellFormat is 'string'). Use standard time zone identifiers. |
userLocale | string | The user locale for formatting dates when using string cell format (required if cellFormat is 'string'). Use standard locale codes. |
view | string | Filter 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.
| Parameter | Type | Description |
|---|---|---|
baseId * | string | The unique identifier for the base containing the target table. |
tableIdOrName * | string | The table identifier or name. Table IDs are recommended to avoid needing request updates when table names change. |
records | array | Array 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. |
typecast | boolean | Enable 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).
| Parameter | Type | Description |
|---|---|---|
baseId * | string | The unique identifier of the base containing the table. |
fieldsToMergeOn * | array | One to three field names or IDs used to match and identify records for replacement. Field IDs must uniquely identify a single record. |
records * | array | Array of up to 10 records to replace or upsert, with each record containing field values to apply. |
tableIdOrName * | string | The unique identifier or name of the table to update. |
typecast | boolean | When 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.
| Parameter | Type | Description |
|---|---|---|
baseId * | string | The unique identifier of the base containing the table. |
fieldsToMergeOn * | array | One 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 * | array | Array 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 * | string | The unique identifier or name of the table to update records in. |
typecast | boolean | When 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.
| Parameter | Type | Description |
|---|---|---|
baseId * | string | The unique identifier for the base containing the table. |
tableIdOrName * | string | The table identifier or name where records will be deleted. |
records | array | Array 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.
| Parameter | Type | Description |
|---|---|---|
baseId * | string | The unique identifier of the base containing the record. |
recordId * | string | The unique identifier of the record to retrieve. |
tableIdOrName * | string | The table identifier or name where the record is located. |
cellFormat | string | The 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.
| Parameter | Type | Description |
|---|---|---|
baseId * | string | The unique identifier for the base containing the table and record to update. |
fields * | object | An 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 * | string | The unique identifier of the record to update. |
tableIdOrName * | string | The table identifier or name. Both formats are accepted interchangeably. |
typecast | boolean | Enable 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.
| Parameter | Type | Description |
|---|---|---|
baseId * | string | The unique identifier for the base containing the record. |
fields * | object | An 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 * | string | The unique identifier of the record to update. |
tableIdOrName * | string | The table identifier or name where the record is located. Both table IDs and table names are accepted. |
typecast | boolean | Enable 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.
| Parameter | Type | Description |
|---|---|---|
baseId * | string | The unique identifier of the base containing the table and record to delete. |
recordId * | string | The unique identifier of the record to delete. |
tableIdOrName * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
apiEndpointSyncId * | string | The API endpoint sync identifier, obtained from the Sync API table setup flow or the synced table settings. |
baseId * | string | The unique identifier for the base containing the table to sync. |
body * | string | Raw 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 * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
attachmentFieldIdOrName * | string | The ID or name of the attachment field where the file will be uploaded. |
baseId * | string | The unique identifier of the base containing the record. |
contentType * | string | The MIME type of the file being uploaded (e.g., image/jpeg, application/pdf, text/plain). |
file * | string | The file content encoded as a base64 string. The decoded file size must not exceed 5 MB. |
filename * | string | The name of the file including its extension (e.g., document.pdf, photo.jpg). |
recordId * | string | The unique identifier of the record where the attachment will be added. |