Skip to main content
Glama

set_record_template_cell

Idempotent

Pre-fill a specific field on an Airtable record template with a static value or linked record.

Instructions

Pre-fill a field value on a record template.

CELL OBJECT TYPES (verified via API capture 2026-05-01):

Static value (text, number, boolean, single-select choice ID): { "type": "static", "value": "some text" } { "type": "static", "value": 42 } { "type": "static", "value": true } { "type": "static", "value": "selXXXXXXXXXXXXXX" } ← single-select: pass choice ID

Linked record(s): { "type": "linkedRows", "value": [{ "foreignRowId": "recXXX", "foreignRowDisplayName": "Record Name" }] }

To clear a field, omit the cellObject or pass null value.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
appIdYesThe Airtable base/application ID
templateIdYesThe template ID (rtpXXX)
columnIdYesField ID (fldXXX)
cellObjectYesCell value object. Must have "type" ("static" or "linkedRows") and "value".
debugNoWhen true, include raw Airtable response in output for diagnostics

Implementation Reference

  • The tool handler function that receives the request and delegates to the AirtableClient's setRowTemplateCell method.
    async set_record_template_cell({ appId, templateId, columnId, cellObject, debug }) {
      const result = await client.setRowTemplateCell(appId, templateId, columnId, cellObject);
      return ok({ updated: true, templateId, columnId }, result, debug);
    },
  • The tool definition including description, annotations, and input schema (defines appId, templateId, columnId, and cellObject with type/value).
        name: 'set_record_template_cell',
        description: `Pre-fill a field value on a record template.
    
    CELL OBJECT TYPES (verified via API capture 2026-05-01):
    
    Static value (text, number, boolean, single-select choice ID):
      { "type": "static", "value": "some text" }
      { "type": "static", "value": 42 }
      { "type": "static", "value": true }
      { "type": "static", "value": "selXXXXXXXXXXXXXX" }   ← single-select: pass choice ID
    
    Linked record(s):
      { "type": "linkedRows", "value": [{ "foreignRowId": "recXXX", "foreignRowDisplayName": "Record Name" }] }
    
    To clear a field, omit the cellObject or pass null value.`,
        annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: true, openWorldHint: false },
        inputSchema: {
          type: 'object',
          properties: {
            appId:      { type: 'string', description: 'The Airtable base/application ID' },
            templateId: { type: 'string', description: 'The template ID (rtpXXX)' },
            columnId:   { type: 'string', description: 'Field ID (fldXXX)' },
            cellObject: {
              type: 'object',
              description: 'Cell value object. Must have "type" ("static" or "linkedRows") and "value".',
              properties: {
                type:  { type: 'string', enum: ['static', 'linkedRows'], description: '"static" for text/number/bool/select, "linkedRows" for linked record fields' },
                value: { description: 'The field value. String/number/boolean for static. Array of {foreignRowId, foreignRowDisplayName} for linkedRows.' },
              },
              required: ['type', 'value'],
            },
            debug: debugProp,
          },
          required: ['appId', 'templateId', 'columnId', 'cellObject'],
        },
  • The AirtableClient helper method that makes the actual HTTP POST to /v0.3/rowTemplate/{templateId}/updateCell with columnId and cellObject.
    async setRowTemplateCell(appId, templateId, columnId, cellObject) {
      assertAirtableId(appId, 'appId');
      assertAirtableId(columnId, 'columnId');
      const url = `https://airtable.com/v0.3/rowTemplate/${templateId}/updateCell`;
      const res = await this.auth.postForm(url, this._mutationParams({ columnId, cellObject }, appId), appId);
      if (!res.ok) {
        const errBody = await res.text().catch(() => '');
        throw new Error(`setRowTemplateCell failed (${res.status}): ${errBody}`);
      }
      return res.json();
    }
  • Registration in TOOL_CATEGORIES mapping: 'set_record_template_cell' is categorized as 'table-write' (non-destructive write).
    set_record_template_cell:            'table-write',
  • Duplicate registration in extension's TOOL_CATEGORIES mirror (must stay in sync with mcp-server).
    set_record_template_cell:            'table-write',
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations indicate idempotentHint=true, and the description adds valuable behavioral details: how to construct cell objects for different types (static, linkedRows) and how to clear a field. This goes beyond the minimal annotation data and helps the agent understand safe retry behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise and front-loaded with the main purpose. It uses examples and a clear structure to explain cell objects and clearing behavior, with no superfluous sentences.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with nested objects and 5 parameters (4 required), the description adequately covers the core behavior and data structures. There is no output schema, but the description does not need to explain return values. It could mention any side effects or response format, but it remains complete enough for most use cases.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% coverage, but the description enriches it with concrete examples of cell object structures, including specific formats for static values and linked records. This adds meaning beyond the schema's property definitions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'Pre-fill a field value on a record template.' It uses a specific verb ('pre-fill') and a clear resource ('field value on record template'), which distinguishes it from sibling tools like 'set_record_template_visible_columns' or 'apply_record_template'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description does not explicitly mention when to use this tool over alternatives or provide any exclusion criteria. It implicitly conveys usage through the cell object examples but lacks comparative guidance or context about prerequisites.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/Automations-Project/VSCode-Airtable-Formula'

If you have feedback or need assistance with the MCP directory API, please join our Discord server