Skip to main content
Glama

Remove Sheet Field

sheet.remove_attribute
DestructiveIdempotent

Remove an attribute from a sheet. The server may reject removing the primary Title column (PRIMARY_TITLE_PROTECTED). Removed attributes go to a deleted-attributes pool and can be restored if needed; this is therefore mutating_reversible. The files of a File List field are the exception: they are deleted for good. Removing a File List field that holds files is refused with FILE_LIST_FILES_LOST, naming the field and how many rows hold files, and nothing is removed; tell the user and call again with confirmFileLoss: true only once they accept. In a chat the user accepts on a card instead: the call waits for it. When the agent this app signs in as has Ask first on for this, the call waits for its manager's approval and returns status: "pending_approval"; nothing changes until they approve. Pass reason (and targetNotes per target) so the approver sees why.

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.remove_attribute"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonNoWhy you are doing this, in one sentence the approver reads if Ask first holds the call
sheetIdYes
attributeIdYes
targetNotesNoA short note per target, keyed by the id or Index you pass
confirmFileLossNoRemove a File List field whose files are deleted for good. Only once the user accepts it.

Output Schema

NameRequiredDescriptionDefault
okNoThe change was applied
nameNoIts name
statusNoThe call waits for a person's approval; nothing has changed
messageNo
approverNoWho decides it
approvalIdNoThe approval the call waits on
attributeIdNoThe removed field

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / reason
      Added value: +{
      +  "description": "Why you are doing this, in one sentence the approver reads if Ask first holds the call",
      +  "type": "string"
      +}
    • addedInput schema / properties / targetNotes
      Added value: +{
      +  "additionalProperties": {
      +    "type": "string"
      +  },
      +  "description": "A short note per target, keyed by the id or Index you pass",
      +  "propertyNames": {
      +    "type": "string"
      +  },
      +  "type": "object"
      +}
  2. Changed5 schema fields changed
    • addedOutput schema / properties / approvalId
      Added value: +{
      +  "description": "The approval the call waits on",
      +  "type": "string"
      +}
    • addedOutput schema / properties / approver
      Added value: +{
      +  "description": "Who decides it",
      +  "type": "string"
      +}
    • addedOutput schema / properties / message
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / status
      Added value: +{
      +  "const": "pending_approval",
      +  "description": "The call waits for a person's approval; nothing has changed",
      +  "type": "string"
      +}
    • removedOutput schema / required
      Removed value: -[
      -  "ok",
      -  "attributeId",
      -  "name"
      -]
  3. Changed4 schema fields changed
    • addedInput schema / properties / confirmFileLoss
      Added value: +{
      +  "description": "Remove a File List field whose files are deleted for good. Only once the user accepts it.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / attributeId
      Added value: +{
      +  "description": "The removed field",
      +  "type": "number"
      +}
    • addedOutput schema / properties / name
      Added value: +{
      +  "description": "Its name",
      +  "type": "string"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "ok"
      -]New value: +[
      +  "ok",
      +  "attributeId",
      +  "name"
      +]
  4. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses the deleted-attributes recovery pool, the permanent file-loss exception for File List fields, the FILE_LIST_FILES_LOST / PRIMARY_TITLE_PROTECTED refusal codes with their contents, and the pending_approval wait behavior. The destructiveHint=true annotation is consistent with the stated file-loss exception, so there is no contradiction.

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 core action is front-loaded, then the refusal/confirmation/approval branches follow in a logical order. It is dense but nearly every sentence carries distinct operational information; only the 'mutating_reversible' label feels like internal jargon.

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?

For a destructive, approval-gated mutation with five parameters and nested `targetNotes`, the description covers refusals, recovery, confirmation, and the pending_approval status. An output schema exists, so return-value detail is appropriately left to it.

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

Parameters4/5

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

With 60% schema coverage, the prose compensates by explaining when `confirmFileLoss` may be set (only after user acceptance), that `reason` is read by the approver, and that `targetNotes` is keyed per target. The two ID parameters are self-evident and need no elaboration.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence gives a specific verb and resource ('Remove an attribute from a sheet'), and the mention of a deleted-attributes pool that 'can be restored' implicitly separates it from the restore sibling. It stops short of explicitly naming sheet.update_attribute or sheet.restore_attribute as alternatives for non-removal cases.

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?

Guidance is explicit and conditional: the primary Title column may be refused, a File List field with files requires `confirmFileLoss: true` only after the user accepts, and Ask-first flows wait for manager approval. It covers error and confirmation branches well but never contrasts this tool with update_attribute for cases where a field should be modified rather than removed.

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