TablesWriteRetry-safe

Set the field that names rows

set_table_primary_field

Designate which field NAMES a row: what a relation chip shows, what a relation picker searches, and what appears wherever a row is referred to. Must be a text-like field.

Parameters

ParameterTypeRequiredDescription
tableIdstringrequiredTable ID
fieldIdstringrequiredField ID to promote
expectedSchemaVersionintegeroptionalAssert the table schema version you last read. Omit to let the call read it — the write still fails if someone changes the schema in between.

Example call

The tool call an MCP client sends (required arguments shown with placeholder values).

{
"tool": "set_table_primary_field",
"arguments": {
"tableId": "tableId_123",
"fieldId": "fieldId_123"
}
}

Use this tool in

Related Tables tools