Update table metadata
update_tableAdd or update metadata about an entity — a table of rows, or a document. Use this to document what the entity is for, mark it ephemeral/transient, or point at a preferred alternative. The entity is the upsert key - if meaning is already attached to it, it is updated; otherwise it is created. WHAT THIS CALL CHANGES: only the fields you pass. Every field you omit keeps its current value - omitting a field never clears it, and the entity's extracted characteristics (relationship counts, temporal and size features) are left untouched by any edit here. Each field you do pass overwrites that field outright. SOME FACETS BELONG TO ONE SHAPE. table_type classifies a set of rows and is refused on an entity that answers with one document; grain says what one answer of a document represents and is refused on an entity that answers in rows. A facet that does not apply is absent rather than empty, because an empty facet would claim something that is not true. TO REMOVE metadata, call delete_table_metadata - passing an empty string or omitting a parameter will not erase anything. Example: update_table(entity='sessions', description='Transient session tracking', usage_notes='Do not use for analytics', is_ephemeral=true, preferred_alternative='billing_engagements'), or update_table(entity='google_ads.campaign_status', grain='one answer is one campaign, as of the moment it was read').
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"entity": "<entity>"
},
"name": "update_table"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grain | No | Optional, document only - what one answer represents, in words: 'one campaign as of the moment it was read', 'one page of results'. A set of rows carries its grain in its own name, so this is refused there. | |
| entity | Yes | Entity to address: a table of rows or a document, named `schema.entity` (for example 'google_ads.campaign_status') or by its bare name when that is unambiguous in the datasource. | |
| datasource | No | Optional datasource ID to target. Omit to use the project's configured default; required when the project has multiple datasources and no default is configured. Each datasource has its own SQL dialect: get_schema lists every datasource with its type, dialect and identifier quote, and every result carries datasource_type and dialect. A datasource that has not finished setup is refused with datasource_not_ready. | |
| table_type | No | Optional, rows only - how this set of rows is used: 'transactional' (event/action), 'reference' (lookup), 'logging' (audit/history), 'ephemeral' (temporary), 'junction' (many-to-many). Refused on an entity that answers with one document, which says what it is through its grain. | |
| description | No | Optional - What this entity represents and contains | |
| usage_notes | No | Optional - When to use or not use this entity in a request | |
| is_ephemeral | No | Optional - Mark as transient/temporary data not suitable for analytics | |
| preferred_alternative | No | Optional - Entity to use instead if this one is ephemeral or deprecated |