Skip to content

Draft GitHub Issue — Empty formulaText bug (re-formatted to bug-report.yml form structure) #15

@doug-hue

Description

@doug-hue

Product

npm package (airtable-user-mcp)

Version

airtable-user-mcp 2.4.10

MCP Client (if applicable)

Claude Desktop

OS

Windows 11

What happened?

download_formula_field and download_base_formulas return empty formulaText for every formula in v2.4.10, even though the formulas exist and are functional in the live Airtable UI. Field metadata (name, IDs, description, resultType) does come back correctly. Sister tool validate_formula works fine.

REPRODUCER

  1. Install and authenticate via npx airtable-user-mcp login.
  2. Pick any base with at least one formula field.
  3. Call download_formula_field against any formula field ID with outputPath omitted:
    { "appId": "appXXXX", "fieldId": "fldYYYY" }

OBSERVED
{
"written": false,
"formulaText": "",
"fieldName": "Performance %",
"tableId": "tbl...",
"description": "",
"resultType": "number"
}

formulaText is empty. Same with download_base_formulas — every .formula file it writes contains only the # AT: header lines, no formula body.

EXPECTED
formulaText should contain the actual formula expression as visible in the Airtable UI's "Customize field type" panel for that formula field.

SAMPLE SIZE
Tested 5 different formulas across 3 tables on a real production base:

  • Performance % on Work Orders
  • Performance % on Projects
  • Performance % on Build Items
  • Capacity Bucket on Work Orders
  • Can-Start on Work Orders

All five returned formulaText: "". All five formulas are confirmed present and functional in the Airtable UI.

RELATED WORKING TOOL
validate_formula works correctly against the same base and resolves field references against the live schema. The same Patchright session reaches Airtable's internal API for at least some operations.

WORKAROUND
Read the formula via the Airtable UI's "Customize field type" panel directly. No programmatic path currently.

LIKELY CAUSE
Speculation: Airtable's internal API may have renamed or restructured the field in its response payload that holds the formula expression since v2.4.10 was published. The MCP looks for a key that no longer maps, returns empty string.

Relevant logs or errors

# Sample tool invocation and response (formulaText empty as shown):

> Tool: mcp__airtable-user-mcp__download_formula_field
> Args: { "appId": "appKKB4SwDK9cDcSc", "fieldId": "fldkWJhsYODXQuJ81" }
> Response:
{
  "written": false,
  "formulaText": "",
  "fieldName": "Performance %",
  "tableId": "tblFOMNRbxMxetw8T",
  "description": "",
  "resultType": "number"
}

# Same field shows a working formula in the Airtable UI.
# Same behavior with download_base_formulas — 34 .formula files written, all contain only the # AT: header, zero formula body.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions