Skip to main content
Glama

Manage tables

manage_tables
Destructive

Create and modify named spreadsheet tables with typed columns: add a table over a grid range, update its name/range, or delete the table definition while preserving cell data.

Instructions

Manages structured tables (the "Convert to table" feature: named ranges with per-column types, filters and formatting). action=add creates a table over a grid range whose FIRST ROW becomes the header: name (must be unique in the spreadsheet) + range required; column_properties optionally types the columns — a list of raw TableColumnProperties objects, e.g. [{"columnIndex":0,"columnName":"Task","columnType":"TEXT"},{"columnIndex":1,"columnName":"Done","columnType":"BOOLEAN"}] (columnType TEXT/PERCENT/DROPDOWN/DOUBLE/CURRENCY/DATE/TIME/DATE_TIME/BOOLEAN; DROPDOWN adds dataValidationRule). The reply carries the new table with its tableId. action=update renames and/or re-ranges an existing table (table_id + name and/or range; expanding the range grows the table). action=delete removes the TABLE DEFINITION only — the cell data stays; clear the cells separately if needed. Find tableIds via get_spreadsheet (sheets[].tables).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoadd (required) / update: the table's unique name.
rangeNoadd (required) / update: the table's cells incl. the header row.
actionYesWhat to do with the tables.
table_idNoupdate/delete: the tableId from get_spreadsheet or the add reply.
spreadsheet_idYesThe spreadsheet id — the long id from the URL (docs.google.com/spreadsheets/d/<spreadsheetId>/edit) or from create_spreadsheet / search_spreadsheets output.
column_propertiesNoadd: raw TableColumnProperties list, e.g. [{"columnIndex":0,"columnName":"Task","columnType":"TEXT"}].
Behavior5/5

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

Beyond the destructiveHint annotation, the description specifies exactly what delete destroys — the table definition only, not cell data — and discloses that expanding the range grows the table and that DROPDOWN adds a dataValidationRule. These are important side effects an agent needs to predict before invoking the tool.

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

Conciseness4/5

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

The description is dense but organized by action and front-loads the feature identity. The inline JSON example is somewhat long but earns its place by showing the exact expected shape of column_properties, so nothing feels wasted.

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?

The description covers all three actions, required parameters, side effects, and how to discover tableIds. Since there is no output schema, the mention of the add reply carrying the new table is helpful, though update/delete response shapes and failure conditions such as duplicate names are not described.

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

Parameters5/5

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

The description adds significant meaning beyond the schema: it explains action-dependent parameter requirements, gives an explicit JSON example for column_properties, lists the allowed columnType values, and clarifies how the first row becomes the header. This goes well beyond the schema's generic 'raw TableColumnProperties list' description.

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 names the concrete resource — structured tables via the Convert to table feature — and enumerates the distinct actions: add, update, and delete. It clearly distinguishes itself from sibling tools like format_cells or manage_sheets by describing the named-range table feature rather than generic formatting or sheet operations.

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

Usage Guidelines4/5

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

Each action has clear preconditions: add requires a unique name and range, update requires table_id, and delete removes only the table definition. It also directs users to get_spreadsheet for tableIds and notes that cell data must be cleared separately, implying the complement of clear_values, though it never explicitly names an alternative tool.

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/A1-x-Tech/mcp-google-sheets'

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