Skip to main content
Glama

Update Sheet Field

sheet.update_attribute
DestructiveIdempotent

Update an existing attribute (field) on a sheet. Pass only what changes. Call sheet.schema first for the field's id, its live option ids, its current default and its archived choices.

  • Basics: name, description, icon, dataType, multiline (Text only: several lines; a unique field stays one line), isUnique (Title, one-line Text, URL, Phone Number, Email; on a field that already holds duplicates it fails with UNIQUE_HAS_DUPLICATES and nothing changes, so ask the user to remove them first), and default, the value new rows start with (choices, members, teams, jobs, Date).

  • Format: number (format such as Euro or Dollar, decimals, showAs), date (dateFormat, timeFormat), checkboxStyle, selectStyle, language (Code), and relation on a Relation field: subtitle (a related field shown under each link), view and form (by name, of the related sheet), filter (which related rows can be picked, in sheet.read's filters shape). Under options: formula/returnType (Formula), relation/field/function (Mirror, Rollup), stars (Rate, 2–20), workflow (Button, by name), template (Summary), allowedFiles (any / images / documents / media / custom), allowedExtensions (with custom, e.g. ["pdf"]) and maxFiles (1–100, null for no limit) (File List). Every setting is merged into the field's live settings; a setting for another type is refused, naming the types it applies to, and an unknown name is refused listing the valid ones.

  • Choices of a Status/Select/Multi-Select field: option edits are a MERGE, so reuse a live option's id to rename or recolour it in place, omit the id to add a new choice, and list ids in removeOptionIds to delete choices. Leaving an option out never deletes it. Never invent an option id — rows reference options by id and a wrong id is rejected. archived: true hides a Select/Multi-Select choice from pickers while rows keep it (Status choices cannot be archived). isDefault: true makes a choice the default (a Multi-Select adds it to its defaults), false takes it out. order lists the choice ids in their new order, every live id exactly once. On a Status field each choice sits in a stage bucket; sheet.schema reports it as stage (Todo / InProgress / Complete). Pass stage on an item to put a new choice in that stage or move a live one (keep its id); a new choice defaults to Todo, and a Status order may also name just one stage's choices. stage is rejected on Select / Multi-Select and on an older Status field whose choices are not in stages.

  • Not here: a relation's two-way setting (turning it off deletes the reverse field for good), a relation's target sheet (fixed once created), Pipeline stages (their ids are stored in the rows) and the Duration format. Point the user to the field's settings in the panel.

  • A dataType change follows a fixed compatibility list: a type that is not offered is refused with DATA_TYPE_CHANGE_NOT_ALLOWED, listing the allowed types, and nothing is changed. A change that would empty or shorten values is refused with DATA_TYPE_CHANGE_BLOCKED, carrying the counts, before → after samples and the views and workflows that use the field, and nothing is changed; show that to the user and call again with confirmLoss: true only once they accept the loss. In a chat the user confirms the loss on a card instead: the call waits for it and applies the change once they accept.

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": {
      "sheetId": "<sheetId>",
      "attributeId": "<attributeId>"
    },
    "name": "sheet.update_attribute"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoDate only: how the date and the time are written.
iconNoA Bootstrap icon name, e.g. `bi-star`.
nameNo
orderNoChoice ids in their new order, each live id exactly once. On Status, either every choice or every choice of one stage; a choice keeps its stage.
numberNoNumber only: currency or number format (e.g. Euro), decimal places, and how it shows (NUMBER, BAR…).
defaultNoThe value new rows start with, as a human value: a choice title, a member, team or job name (a list for list fields), `creator` for whoever adds the row, or `today` for a Date's creation day. null clears it.
optionsNo
sheetIdYes
dataTypeNo
isUniqueNoTitle, one-line Text, URL, Phone Number and Email only: refuse duplicate values.
languageNoCode only.
relationNoRelation only: how linked rows are shown and picked.
multilineNoText only: allow several lines (forms show a paragraph box, AI fill writes paragraphs). Defaults to false. Use Document for a full page per row.
attributeIdYes
confirmLossNoApply a dataType change even though it empties or shortens values. Only after reading the preview.
descriptionNo
selectStyleNoSelect / Multi-Select only.
checkboxStyleNoCheckbox only.
removeOptionIdsNo

Output Schema

NameRequiredDescriptionDefault
okYesThe change was applied
nameYesIts name after the change
changedYesThe inputs that were applied, e.g. name, number, order, default
attributeIdYesThe field that changed

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / dataType / enum
      Previous value: -[
      -  "Short Text",
      -  "Long Text",
      -  "Number",
      -  "Date",
      -  "Email",
      -  "URL",
      -  "PhoneNumber",
      -  "CheckBox",
      -  "Status",
      -  "Select",
      -  "Multi-Select",
      -  "Employee",
      -  "Employee List",
      -  "Team",
      -  "Team List",
      -  "Job",
      -  "Job List",
      -  "Actor",
      -  "File List",
      -  "Document",
      -  "Location",
      -  "Address",
      -  "Duration",
      -  "Link",
      -  "Vote",
      -  "Goal"
      -]New value: +[
      +  "Text",
      +  "Number",
      +  "Date",
      +  "Email",
      +  "URL",
      +  "PhoneNumber",
      +  "CheckBox",
      +  "Status",
      +  "Select",
      +  "Multi-Select",
      +  "Employee",
      +  "Employee List",
      +  "Team",
      +  "Team List",
      +  "Job",
      +  "Job List",
      +  "Actor",
      +  "File List",
      +  "Document",
      +  "Location",
      +  "Address",
      +  "Duration",
      +  "Link",
      +  "Vote",
      +  "Goal",
      +  "Short Text",
      +  "Long Text"
      +]
    • changedInput schema / properties / isUnique / description
      Previous value: -"Title, Short Text, URL, Phone Number and Email only: refuse duplicate values."New value: +"Title, one-line Text, URL, Phone Number and Email only: refuse duplicate values."
    • addedInput schema / properties / multiline
      Added value: +{
      +  "description": "Text only: allow several lines (forms show a paragraph box, AI fill writes paragraphs). Defaults to false. Use Document for a full page per row.",
      +  "type": "boolean"
      +}
  2. Changed3 schema fields changed
    • addedInput schema / properties / options / properties / allowedExtensions
      Added value: +{
      +  "description": "File List only: the extensions a Custom rule takes, without the dot, e.g. [\"pdf\", \"docx\"].",
      +  "items": {
      +    "maxLength": 11,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "maxItems": 30,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • addedInput schema / properties / options / properties / allowedFiles
      Added value: +{
      +  "description": "File List only: which files it takes; `media` is audio and video, `custom` takes allowedExtensions.",
      +  "enum": [
      +    "any",
      +    "images",
      +    "documents",
      +    "media",
      +    "custom"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / options / properties / maxFiles
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maximum": 100,
      +      "minimum": 1,
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "File List only: at most this many files (1–100); null removes the limit."
      +}
  3. Changed1 schema field changed
    • changedInput schema / properties / relation / properties / form / description
      Previous value: -"The related sheet's form or peek a link opens"New value: +"The related sheet's record layout (a peek of kind record) a link opens a row in"
  4. Changed1 schema field changed
    • changedInput schema / properties / dataType / enum
      Previous value: -[
      -  "Short Text",
      -  "Long Text",
      -  "Number",
      -  "Date",
      -  "DateRange",
      -  "Email",
      -  "URL",
      -  "PhoneNumber",
      -  "CheckBox",
      -  "Status",
      -  "Select",
      -  "Multi-Select",
      -  "Employee",
      -  "Employee List",
      -  "Team",
      -  "Team List",
      -  "Job",
      -  "Job List",
      -  "Actor",
      -  "File List",
      -  "Document",
      -  "Location",
      -  "Address",
      -  "Duration",
      -  "Link",
      -  "Vote",
      -  "Goal"
      -]New value: +[
      +  "Short Text",
      +  "Long Text",
      +  "Number",
      +  "Date",
      +  "Email",
      +  "URL",
      +  "PhoneNumber",
      +  "CheckBox",
      +  "Status",
      +  "Select",
      +  "Multi-Select",
      +  "Employee",
      +  "Employee List",
      +  "Team",
      +  "Team List",
      +  "Job",
      +  "Job List",
      +  "Actor",
      +  "File List",
      +  "Document",
      +  "Location",
      +  "Address",
      +  "Duration",
      +  "Link",
      +  "Vote",
      +  "Goal"
      +]
  5. Changed28 schema fields changed
    • addedInput schema / properties / checkboxStyle
      Added value: +{
      +  "description": "Checkbox only.",
      +  "enum": [
      +    "checkbox",
      +    "toggle",
      +    "switch"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / date
      Added value: +{
      +  "description": "Date only: how the date and the time are written.",
      +  "properties": {
      +    "dateFormat": {
      +      "enum": [
      +        "Compact",
      +        "Full Date",
      +        "Relative",
      +        "Month/Day/Year",
      +        "Day/Month/Year",
      +        "Year/Month/Day"
      +      ],
      +      "type": "string"
      +    },
      +    "timeFormat": {
      +      "enum": [
      +        "12 hour",
      +        "24 hour"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedInput schema / properties / default
      Added value: +{
      +  "anyOf": [
      +    {
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    {
      +      "items": {
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "minItems": 1,
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "The value new rows start with, as a human value: a choice title, a member, team or job name (a list for list fields), `creator` for whoever adds the row, or `today` for a Date's creation day. null clears it."
      +}
    • addedInput schema / properties / icon
      Added value: +{
      +  "description": "A Bootstrap icon name, e.g. `bi-star`.",
      +  "maxLength": 80,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / isUnique
      Added value: +{
      +  "description": "Title, Short Text, URL, Phone Number and Email only: refuse duplicate values.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / language
      Added value: +{
      +  "description": "Code only.",
      +  "enum": [
      +    "plain",
      +    "html",
      +    "json",
      +    "typescript",
      +    "javascript",
      +    "sql",
      +    "css",
      +    "markdown"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / number
      Added value: +{
      +  "description": "Number only: currency or number format (e.g. Euro), decimal places, and how it shows (NUMBER, BAR…).",
      +  "properties": {
      +    "decimals": {
      +      "maximum": 10,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "format": {
      +      "enum": [
      +        "Number",
      +        "Number with commas",
      +        "Percent",
      +        "Dollar",
      +        "Euro",
      +        "Riyal",
      +        "Rand",
      +        "Real",
      +        "Pound",
      +        "Ruble",
      +        "Rupee",
      +        "Rupiah",
      +        "Yen",
      +        "Yuan",
      +        "Won",
      +        "Canadian dollar",
      +        "Franc"
      +      ],
      +      "type": "string"
      +    },
      +    "showAs": {
      +      "enum": [
      +        "NUMBER",
      +        "BAR",
      +        "RING",
      +        "GAUGE",
      +        "RATE"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedInput schema / properties / options / properties / field
      Added value: +{
      +  "description": "Mirror: the related sheet's field to show. Rollup: the Number field to aggregate (not for COUNT).",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / options / properties / formula
      Added value: +{
      +  "description": "Formula only: fields in braces, e.g. `{Price} * {Quantity}`; functions IF, round, days_between…",
      +  "maxLength": 2000,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / options / properties / function
      Added value: +{
      +  "description": "Rollup only: how the related rows are aggregated.",
      +  "enum": [
      +    "COUNT",
      +    "DISTINCT_COUNT",
      +    "SUM",
      +    "AVG",
      +    "MIN",
      +    "MAX"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / options / properties / items / items / properties / archived
      Added value: +{
      +  "description": "Select / Multi-Select only: true hides the choice from pickers; rows keep it. false brings it back.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / options / properties / items / items / properties / isDefault
      Added value: +{
      +  "description": "true makes this choice the field's default for new rows (on Multi-Select, adds it); false removes it.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / options / properties / items / items / properties / title / description
      Added value: +"Required for a new option; a live one keeps its title."
    • removedInput schema / properties / options / properties / items / items / required
      Removed value: -[
      -  "title"
      -]
    • addedInput schema / properties / options / properties / relation
      Added value: +{
      +  "description": "Mirror / Rollup only: the name of a Relation field on this sheet.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / options / properties / returnType
      Added value: +{
      +  "description": "Formula only: what it returns. Default number.",
      +  "enum": [
      +    "number",
      +    "text"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / options / properties / stages
      Added value: +{
      +  "description": "Pipeline only: the stages in order; won stages `succeed`, lost ones `failed`.",
      +  "items": {
      +    "properties": {
      +      "color": {
      +        "type": "string"
      +      },
      +      "outcome": {
      +        "description": "Default open",
      +        "enum": [
      +          "open",
      +          "succeed",
      +          "failed"
      +        ],
      +        "type": "string"
      +      },
      +      "title": {
      +        "maxLength": 80,
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "title"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 30,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • addedInput schema / properties / options / properties / stars
      Added value: +{
      +  "description": "Rate only: number of stars (2–20), default 5.",
      +  "maximum": 20,
      +  "minimum": 2,
      +  "type": "integer"
      +}
    • addedInput schema / properties / options / properties / template
      Added value: +{
      +  "description": "Summary only: text with fields in braces, e.g. `{Company} — {Stage}`.",
      +  "maxLength": 4000,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / options / properties / workflow
      Added value: +{
      +  "description": "Button only: the name of a workflow on this sheet with a manual trigger.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • removedInput schema / properties / options / required
      Removed value: -[
      -  "items"
      -]
    • addedInput schema / properties / order
      Added value: +{
      +  "description": "Choice ids in their new order, each live id exactly once. On Status, either every choice or every choice of one stage; a choice keeps its stage.",
      +  "items": {
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "minItems": 1,
      +  "type": "array"
      +}
    • addedInput schema / properties / relation
      Added value: +{
      +  "description": "Relation only: how linked rows are shown and picked.",
      +  "properties": {
      +    "filter": {
      +      "anyOf": [
      +        {
      +          "properties": {
      +            "conditionOperator": {
      +              "enum": [
      +                "AND",
      +                "OR"
      +              ],
      +              "type": "string"
      +            },
      +            "filters": {
      +              "items": {
      +                "properties": {
      +                  "attribute": {
      +                    "description": "A field name of the related sheet",
      +                    "minLength": 1,
      +                    "type": "string"
      +                  },
      +                  "conditionOperator": {
      +                    "enum": [
      +                      "AND",
      +                      "OR"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "filters": {
      +                    "items": {},
      +                    "type": "array"
      +                  },
      +                  "queryOperator": {
      +                    "minLength": 1,
      +                    "type": "string"
      +                  },
      +                  "value": {}
      +                },
      +                "type": "object"
      +              },
      +              "type": "array"
      +            }
      +          },
      +          "required": [
      +            "filters"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "Which related rows can be picked, in sheet.read's `filters` shape, fields and values by name"
      +    },
      +    "form": {
      +      "anyOf": [
      +        {
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "The related sheet's form or peek a link opens"
      +    },
      +    "subtitle": {
      +      "anyOf": [
      +        {
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "A related sheet's field shown under each link; null clears it"
      +    },
      +    "view": {
      +      "anyOf": [
      +        {
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "The related sheet's view the picker lists rows from"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedInput schema / properties / selectStyle
      Added value: +{
      +  "description": "Select / Multi-Select only.",
      +  "enum": [
      +    "dropdown",
      +    "toggle"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / attributeId
      Added value: +{
      +  "description": "The field that changed",
      +  "type": "number"
      +}
    • addedOutput schema / properties / changed
      Added value: +{
      +  "description": "The inputs that were applied, e.g. name, number, order, default",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / name
      Added value: +{
      +  "description": "Its name after the change",
      +  "type": "string"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "ok"
      -]New value: +[
      +  "ok",
      +  "attributeId",
      +  "name",
      +  "changed"
      +]
  6. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations declare destructiveHint=true and idempotentHint=true; the description earns that by disclosing merge semantics (option edits are a MERGE, omitted options are never deleted, settings merge into live settings), refusal behavior with named error codes, and the concrete data-loss consequences of a dataType change (counts, samples, affected views/workflows). It even explains chat-confirmation flow, which is behavior no annotation conveys.

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?

Front-loaded with the core rule and organized into Basics / Format / Choices / Not here buckets that make a 19-parameter tool navigable. It is dense and long, and some per-type details (number formats, allowedFiles vocabulary) largely restate schema descriptions, so a little duplication keeps it from a 5.

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

Completeness5/5

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

Given a destructive, highly polymorphic mutation tool with nested objects and an output schema, the description covers exactly the gaps: what changes, what gets refused and why, what is out of scope, and how to recover from blocked changes. Return-value explanation is correctly omitted because an output schema exists.

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?

With 19 parameters and only 63% schema coverage, the description carries real weight: it groups parameters by field type, explains the id-reuse rule for `options.items` and `removeOptionIds`, the `order` invariant (every live id exactly once), `stage` semantics and its rejection cases, and `default`'s human-value forms (creator/today). This adds meaning well beyond the schema's structural constraints.

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?

Opens with a specific verb and resource ('Update an existing attribute (field) on a sheet') and immediately states the partial-update contract ('Pass only what changes'), which separates it from sibling add_attribute/remove_attribute. The 'Not here' paragraph further bounds the scope against adjacent capabilities.

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

Usage Guidelines5/5

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

Explicitly routes the agent to `sheet.schema` first for ids, live option ids, defaults and archived choices, and tells it how to handle the two dataType failure modes, including the exact condition for escalating to `confirmLoss: true` (only after the user accepts). It also names what this tool cannot do and sends the user to the field panel instead.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources