Generated banner for Airtable Filters
Generated logo for Airtable Filters

Airtable Filters

OpenAIOfficialCreated by airtableDistributed by OpenAI

  • Skill
  • Tool integration
  • Automation and integrations
  • MIT
  • No issues found

From the author

Use this skill when the user wants to find, filter, or narrow down Airtable records by field values, even when they don't explicitly say "filter."
— the description by airtable

AutoGineer summary

Written by AutoGineer from the skill’s own files, not by the author

This skill provides the technical specifications and logic patterns required to filter Airtable records effectively. It details the schema for filter objects, including supported operators, field-type specific requirements, and how to compose nested AND/OR logic to narrow down data sets accurately.

What it does

  • Defines the schema for applying filters to Airtable record queries.
  • Maps field types to compatible comparison operators like equals, contains, and isWithin.
  • Explains how to handle specific data types such as select fields, collaborators, and attachments.
  • Provides patterns for nesting AND/OR logic to handle complex search requirements.
  • Offers guidance on using choice IDs and time zones for precise data retrieval.

When to use it

  • When you need to retrieve a specific subset of records from an Airtable table or interface page.
  • When building complex queries that require multiple conditions or mixed logical operators.
  • When you need to filter by specific field types like dates, collaborator groups, or attachment types.
  • When you want to optimize performance by combining all filtering criteria into a single API call.

Advantages

  • Enables precise data retrieval by leveraging field-specific operators.
  • Supports complex, nested logical structures for advanced filtering needs.
  • Reduces API overhead by allowing multi-condition filtering in a single request.
  • Provides clear rules for handling IDs and date objects to ensure query accuracy.

Usage examples

“Find all records where the Status field is either 'Writing' or 'Pre-Production' and the Category is 'Scripted'.”
Constructs a filter object using an AND operator containing a nested OR condition for the Status field and a direct equality check for the Category field.
“Show me all tasks assigned to Bailey that are currently in 'Cut 2 Ready' status.”
Generates a filter object using the AND operator to match both the collaborator ID for Bailey and the specific choice ID for the status field.

Install

  1. Download the skill as a ZIP:

    https://autogineer.com/agent-skills/openai/airtable-filters/download
  2. Unzip it into the cross-client skills folder of your project:

    mkdir -p .agents/skills && unzip airtable-filters.zip -d .agents/skills

Documentation by airtable

Airtable MCP Filters

MCP tools that list or display records from tables or interface pages accept an optional filters parameter, using the same schema.

When querying records from an interface page, these filters are combined with the page's built-in filters using AND.

Schema shape

When no top-level operator is specified, conditions are combined with AND. The first element in a condition's operands array is always a field ID — look up the table's schema to find field IDs before filtering.

Field type categories

  • Text-like: singleLineText, multilineText, email, url, phoneNumber, richText, barcode

  • Numeric: number, percent, currency, rating, duration, autoNumber, count

  • Date: date, dateTime, createdTime, lastModifiedTime

  • Single select: singleSelect

  • Multiple selects: multipleSelects

  • Single collaborator: singleCollaborator

  • Multiple collaborators: multipleCollaborators

  • Linked records: multipleRecordLinks

  • Attachment: multipleAttachments

  • Checkbox: checkbox

Computed fields (formula, rollup, lookup) support whichever operators match their result type.

Comparison operators

OperatorSecond operandField categories
=string, number, boolean, choice IDtext-like, numeric, date, checkbox, single select, multiple selects, single collaborator, multiple collaborators, linked records
!=string, number, choice IDtext-like, numeric, date, single select, single collaborator
<, >, <=, >=number or date value objectnumeric, date
containsstringtext-like, linked records
doesNotContainstringtext-like, linked records
doesNotContainarray of IDsmultiple selects, multiple collaborators
isEmpty, isNotEmpty(none)text-like, numeric, date, single select, multiple selects, single collaborator, multiple collaborators, linked records, attachment
hasAnyOf, hasAllOfarray of IDsmultiple selects, multiple collaborators, linked records
isAnyOfarray of IDssingle select, single collaborator
isNoneOfarray of IDssingle select, single collaborator, linked records
isWithindate range objectdate
filename, fileTypestring or "image"/"text"attachment

When matching a field against multiple values, prefer dedicated operators (isAnyOf, isNoneOf, hasAnyOf, hasAllOf) over combining multiple = conditions with or/and, when those operators are available for the field type.

Field-type rules

Select fields

For select fields, operand values must be choice IDs (e.g., "selABCDEFGHIJKLM"), not display names. Look up the table's schema to find choice IDs before filtering.

Collaborator fields

When filtering by a collaborator group ID, use operatorOptions to match individual members of the group instead of the literal group ID. See the tool's operatorOptions parameter for details.

Example operand: {"operator": "hasAnyOf", "operands": ["fldCRi9oz2vRLcIWr", "ugpDUVUnftA7H9bG8"], "operatorOptions": {"matchGroupsByMembership": true}}

Attachment fields

Use fileType to filter attachments by type (e.g., "image", "text") rather than isNotEmpty when the user specifies a file type.

Date fields

Date comparisons (=, !=, <, >, <=, >=) use a date value object instead of a raw date string, and isWithin uses a date range object. The tool schema defines the available modes for each. Always include timeZone.

Composing conditions

A filter's top-level operands array can contain two or more conditions, which are combined with the top-level operator (AND by default). For simple multi-condition filters, this flat structure is sufficient.

When the logic requires mixing AND and OR, nest a filter object as one of the operands. Each nested filter has its own operator and operands.

OR inside AND — useful when one condition is fixed and another allows multiple alternatives:

"Scripted videos that are either in Writing or Pre-Production" → Bucket = Scripted AND (Status = Writing OR Status = Pre-Production)

AND inside OR — useful when you want records matching either a simple condition or a combination:

"Approved videos, or videos assigned to Bailey that are in Cut 2" → Status = Approved OR (Editor = Bailey AND Status = Cut 2 Ready)

When combining many conditions on different fields, prefer a flat AND rather than unnecessary nesting. Only nest when the logic genuinely requires mixed AND/OR at different levels.

Prefer composing all conditions into a single filters object rather than splitting them across multiple calls. A single call with a composed filter is more efficient and returns the correct result set directly.

Examples

Filter where a text field equals "orange" OR a number field is greater than 5:

{
    "operator": "or",
    "operands": [
        {"operator": "=", "operands": ["fld8WsrpLHHevsnW8", "orange"]},
        {"operator": ">", "operands": ["fldulcCPDVz87Bmnw", 5]}
    ]
}

Filter for records where a date field is within the past week:

{
    "operands": [
        {
            "operator": "isWithin",
            "operands": ["fldABC12345678x", {"mode": "pastWeek", "timeZone": "America/New_York"}]
        }
    ]
}

Files

SKILL.md

Airtable MCP Filters

MCP tools that list or display records from tables or interface pages accept an optional filters parameter, using the same schema.

When querying records from an interface page, these filters are combined with the page's built-in filters using AND.

Schema shape

When no top-level operator is specified, conditions are combined with AND. The first element in a condition's operands array is always a field ID — look up the table's schema to find field IDs before filtering.

Field type categories

  • Text-like: singleLineText, multilineText, email, url, phoneNumber, richText, barcode

  • Numeric: number, percent, currency, rating, duration, autoNumber, count

  • Date: date, dateTime, createdTime, lastModifiedTime

  • Single select: singleSelect

  • Multiple selects: multipleSelects

  • Single collaborator: singleCollaborator

  • Multiple collaborators: multipleCollaborators

  • Linked records: multipleRecordLinks

  • Attachment: multipleAttachments

  • Checkbox: checkbox

Computed fields (formula, rollup, lookup) support whichever operators match their result type.

Comparison operators

OperatorSecond operandField categories
=string, number, boolean, choice IDtext-like, numeric, date, checkbox, single select, multiple selects, single collaborator, multiple collaborators, linked records
!=string, number, choice IDtext-like, numeric, date, single select, single collaborator
<, >, <=, >=number or date value objectnumeric, date
containsstringtext-like, linked records
doesNotContainstringtext-like, linked records
doesNotContainarray of IDsmultiple selects, multiple collaborators
isEmpty, isNotEmpty(none)text-like, numeric, date, single select, multiple selects, single collaborator, multiple collaborators, linked records, attachment
hasAnyOf, hasAllOfarray of IDsmultiple selects, multiple collaborators, linked records
isAnyOfarray of IDssingle select, single collaborator
isNoneOfarray of IDssingle select, single collaborator, linked records
isWithindate range objectdate
filename, fileTypestring or "image"/"text"attachment

When matching a field against multiple values, prefer dedicated operators (isAnyOf, isNoneOf, hasAnyOf, hasAllOf) over combining multiple = conditions with or/and, when those operators are available for the field type.

Field-type rules

Select fields

For select fields, operand values must be choice IDs (e.g., "selABCDEFGHIJKLM"), not display names. Look up the table's schema to find choice IDs before filtering.

Collaborator fields

When filtering by a collaborator group ID, use operatorOptions to match individual members of the group instead of the literal group ID. See the tool's operatorOptions parameter for details.

Example operand: {"operator": "hasAnyOf", "operands": ["fldCRi9oz2vRLcIWr", "ugpDUVUnftA7H9bG8"], "operatorOptions": {"matchGroupsByMembership": true}}

Attachment fields

Use fileType to filter attachments by type (e.g., "image", "text") rather than isNotEmpty when the user specifies a file type.

Date fields

Date comparisons (=, !=, <, >, <=, >=) use a date value object instead of a raw date string, and isWithin uses a date range object. The tool schema defines the available modes for each. Always include timeZone.

Composing conditions

A filter's top-level operands array can contain two or more conditions, which are combined with the top-level operator (AND by default). For simple multi-condition filters, this flat structure is sufficient.

When the logic requires mixing AND and OR, nest a filter object as one of the operands. Each nested filter has its own operator and operands.

OR inside AND — useful when one condition is fixed and another allows multiple alternatives:

"Scripted videos that are either in Writing or Pre-Production" → Bucket = Scripted AND (Status = Writing OR Status = Pre-Production)

AND inside OR — useful when you want records matching either a simple condition or a combination:

"Approved videos, or videos assigned to Bailey that are in Cut 2" → Status = Approved OR (Editor = Bailey AND Status = Cut 2 Ready)

When combining many conditions on different fields, prefer a flat AND rather than unnecessary nesting. Only nest when the logic genuinely requires mixed AND/OR at different levels.

Prefer composing all conditions into a single filters object rather than splitting them across multiple calls. A single call with a composed filter is more efficient and returns the correct result set directly.

Examples

Filter where a text field equals "orange" OR a number field is greater than 5:

{
    "operator": "or",
    "operands": [
        {"operator": "=", "operands": ["fld8WsrpLHHevsnW8", "orange"]},
        {"operator": ">", "operands": ["fldulcCPDVz87Bmnw", 5]}
    ]
}

Filter for records where a date field is within the past week:

{
    "operands": [
        {
            "operator": "isWithin",
            "operands": ["fldABC12345678x", {"mode": "pastWeek", "timeZone": "America/New_York"}]
        }
    ]
}

Requirements and compatibility

Written for: OpenAI Codex

Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta

“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.

Security

No issues found by our static scan· No issues found

A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.

Attribution and licence

Created by
airtable
Publisher
OpenAI (Official)
Distributed by
OpenAI
Source
openai/plugins · plugins/airtable/skills/airtable-filters · commit d420d13
Licence
MIT License (redistribution allowed)
  • ATTRIBUTION.md (written by AutoGineer)
Synced

AutoGineer is not affiliated with or endorsed by airtable or OpenAI.

Download ZIP

The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download airtable-filters.zip