Skip to main content
Glama

Create custom column

well_create_custom_column
Destructive

Create a new custom column on the current view in the workspace.

Use this tool when the user asks to add, create, or set up a new column on the active grid (e.g. "add an Industry column", "create an AI column that scores risk").

REQUIRED: name, type

  • type: one of text, number, amount, single_select, multi_select, ai OPTIONAL: icon, rules_config, formula_config, format_config

On a grid, the column is always created on the user's currently mounted view: you do not (and cannot) choose a different one, and you do not ask which view. With no grid (an assistant app, or a creation off-grid), pass root: the view the user named, one of companies, people, invoices, transactions, account_balances. If the user named no view, ask which one before calling.

Naming: name must be unique within the current view. If a name conflict is likely, ask the user to disambiguate before calling rather than retrying after a failure response.

Position: the new column is auto-placed at the end of the view. You cannot set position via this tool.

Side effect: creating a column on a populated view automatically schedules an asynchronous recompute of all rows. You will not receive a tracking handle — values appear in the grid as workers finish.

Returns { success: true, custom_column_id, name } on success, or { success: false, error } on failure.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
iconNoOptional Lucide icon name
nameYesColumn header label, unique within the same root (required)
rootNoTarget view root the column lands on: one of companies, people, invoices, transactions, account_balances. OMIT when the user is on a grid — the mounted view is used and this is ignored. REQUIRED whenever no grid is mounted: a chart- or card-driven creation off-grid, and every call from an assistant app.
typeYesColumn data type — one of: text, number, amount, single_select, multi_select, ai
rules_configNoAI rules config (only for type=ai)
workspace_idNoTarget workspace. Omit when the token authorizes one workspace. Required when it authorizes several — a write lands in exactly one workspace and this call would not say which.
format_configNoFormat config (currency, decimals, ...)
formula_configNoFormula config (only for computed columns)
conversation_idNoThe conversation id returned by the previous Well result, in its meta under well/conversation_id, in its structuredContent, or in its JSON text block. Pass it back on every call in the same conversation, including a call a card makes, so the chosen workspace and the earlier answers still apply. It decides the conversation on its own: nothing the host states about the session replaces it. Omit it only on the first call of a conversation.
idempotency_keyNoOptional client-supplied key. A retried write with the same key returns the original result instead of re-applying the operation.
workspace_scopeNoRestrict this call to the family: the token's primary workspace plus the company workspaces under it that you are a member of. Unrelated authorized workspaces drop out of the read; row reads merge across the family, while a per-workspace figure still reports exactly one workspace.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo
errorNo
successYes
conversation_idNoThe conversation this result belongs to. Pass it back as the conversation_id argument on every later Well call in the same conversation.
newly_connectedNoTools that connected to this workspace since the last result and that no session was told about yet, oldest first. Present only when at least one tool is new. The connected-line rule says when to tell an entry; when it does, one line per entry, in the person's language: "<name> is connected.". Never fold several entries into one sentence. Each entry comes back once, on one result only: never repeat its line later.
custom_column_idNo
conversation_id_noteNoPresent only when the server opened a fresh lane, stating that no choice recorded earlier was read.
conversation_id_sourceNoWhere the conversation id came from: the host's own request meta, the caller's argument, or a fresh lane the server opened.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources