Skip to main content
Glama

Change a form

update_form
DestructiveIdempotent

Update a Folio Wiki form's title, description, submit label, visibility, or fields while preserving table columns and collected answers; send the etag to prevent overwriting concurrent changes.

Instructions

Changes a form like the form editor of the web app: its title, description, submit button label, public flag, and/or its whole list of fields in order. Each field with columnId keeps filling that column of the paired table (label, help and required change only when given, e.g. { "columnId": "rating", "required": true }); a field without columnId adds a new column; a field you leave out is removed from the form only — its column and the answers already collected stay in the table. Read the form with read_page first and send its etag: if the form changed meanwhile the write is refused and the error carries the current etag. Returns the form after the write, the columns added and the new etag. Requires an editor role and a write-scoped token.

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": {
      "id": "<id>"
    },
    "name": "update_form"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesForm page id
etagNoThe etag read_page (or a previous create_form/update_form) returned; a mismatch refuses the write
titleNoNew title
fieldsNoThe WHOLE new list of questions, in order; omit to keep the fields as they are
publicNoAccept answers from anyone with a share link of the form
descriptionNoText above the questions; null removes it
submitButtonNoLabel of the submit button; null restores the default

Output Schema

NameRequiredDescriptionDefault
idYesPage id
etagYesEtag of the form now — pass it to the next update_form
formYesThe form definition
iconNoEmoji icon, if the page has one
kindYesPage kind: doc, board, table, form, base, canvas, artifact, pdf or office
pathYesPath relative to the space root
coverNoCover image URL, if the page has one
orderYesPosition among its siblings
spaceYesSpace slug the page belongs to
titleYesPage title
statusYesPage status
tableIdYesPage id of the paired table (its rows are the answers)
updatedAtYesLast change, ISO timestamp
columnsAddedYesIds of the columns this call added to the paired table

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations declare destructiveHint=true but the description sharply bounds the damage: an omitted field is removed from the form only, while its column and collected answers survive in the table. It also discloses optimistic-concurrency behavior (mismatched etag refuses the write and the error carries the current etag), the return payload, and the editor-role/write-scoped-token requirement — all beyond what annotations provide.

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 purpose, then moves to field semantics, concurrency, returns, and auth in a sensible order with no filler sentences. It is one dense paragraph with stacked parentheticals, which makes it slightly harder to scan than it could be, but nothing is redundant.

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 multi-parameter mutation, the description covers the risky part (field removal vs. column retention), the concurrency contract, the response contents, and permissions. With an output schema present it is not obligated to enumerate return values, yet it summarizes them briefly at no cost.

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?

Schema coverage is 100%, so the baseline is 3; the description earns above that by explaining the replacement semantics of the whole `fields` list and illustrating columnId usage with a concrete example ({ "columnId": "rating", "required": true }). The etag parameter's conflict behavior is restated and reinforced rather than merely repeated.

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 precise verb+resource ("Changes a form") and enumerates exactly which attributes are mutable (title, description, submit button label, public flag, fields list in order). The scope is tight enough to separate it from create_form and update_page without opening either schema.

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?

Gives explicit sequencing guidance ("Read the form with read_page first and send its `etag`") and spells out the three cases for fields: with columnId, without columnId, and omitted. It does not name create_form as the tool for making a new form, so the alternative-routing half is implied rather than stated.

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