Skip to main content
Glama

Create a form

create_form

Builds a form page that collects question responses into a paired data table, creating a new table or using an existing one.

Instructions

Creates a form page: questions people answer, each answer a new row of a data table paired with the form. Without table a new table is created together with the form, as the form's child page, with one column per field (like "+ → Form" in the web app). With table (a table page id) the form is placed under that existing table (like "Create a form" on a table; parentPath is then ignored) and starts with one field per column — or with exactly fields when given (an existing column by columnId, a new column without it). Field types: text, longtext, number, date, checkbox, select, status, user, link. Folio adds "Submitted at" and "Submitter" to the table on the first answer. A form is private to space members until public: true plus a share link of the form. Returns the form, the paired table id, the columns added and the etag for update_form. 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": {
      "space": "<space>",
      "title": "<title>"
    },
    "name": "create_form"
  }
}

Input Schema

NameRequiredDescriptionDefault
spaceYesSpace slug
tableNoPage id of an existing data table to collect the answers in; omit to create a new table with the form
titleYesForm title
fieldsNoThe questions, in order. Without `table` each becomes a new column of the new table
publicNoAccept answers from anyone with a share link of the form (default false: space members only)
parentPathNoParent directory path relative to the space root; "" (default) for the space root. Ignored with `table`
descriptionNoText shown above the questions
submitButtonNoLabel of the submit button (default "Submit" in the reader's language)

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.4/5.0
Behavior5/5

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

Annotations only establish that this is a non-destructive, non-idempotent write. The description adds substantive behavior the annotations cannot: a newly created paired table gets one column per field, forms are private to space members until `public: true` plus a share link, and Folio appends 'Submitted at' and 'Submitter' columns to the table on the first answer. It also enumerates the returned payload (form, paired table id, added columns, etag) and the required role/token scope.

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 first sentence establishes the core object and the second branches on `table` before any secondary detail, so it is well front-loaded. It is dense but each clause carries real information; the web-app analogues ('+ → Form', 'Create a form') aid mapping but are the most expendable phrasing in an already long paragraph.

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 an 8-parameter, non-idempotent creation tool with an output schema, the description covers the decisions an agent must make (which mode, field typing, privacy default, permission requirements) and does not waste space re-explaining the return shape in detail. Nothing needed to call it correctly is missing.

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

Parameters3/5

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

Schema description coverage is 100%, so every parameter is already documented at the field level, and much of the description's parameter talk (columnId vs. new column, parentPath ignored with `table`, field types list) restates the schema. It adds framing value by explaining the *consequence* of each mode — one column per field, or one field per column when attaching to an existing table — but offers little syntax or format detail beyond what the schema provides. Baseline 3 is appropriate.

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 opens with a specific verb+resource ('Creates a form page') and immediately defines the dual nature of the object: a question page paired with a data table that collects each answer as a row. It cleanly distinguishes the two creation modes (with vs. without `table`), so an agent can tell it apart from sibling page-creation tools without opening the 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?

It gives explicit conditional guidance: omit `table` to create a new table as a child page (with the '+ → Form' web-app analogue), or pass a table page id to attach the form to an existing table, noting `parentPath` is then ignored. It also states the access prerequisites (editor role, write-scoped token) and points forward to update_form via the returned `etag`. The only gap is that it never says when to prefer a plain table tool (e.g. folio_table_create) over a form.

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