Skip to main content
Glama

Update form

update_form_schema
Destructive

Change a form's name or schema. Forms have no draft: when the form is on a published page, the change is live at once. Each top-level schema key you send (fields, groups, scoring, email and so on) replaces the stored one whole and keys you leave out are kept, so send complete values: the full fields array, the full scoring object. expectedUpdatedAt (updatedAt from get_form) is required, and the change is refused if the form changed since. The merged schema is checked like create_form's before anything is written: problems the change introduces are refused, ones already in the form come back as warnings, and fields the change removes are listed.

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": {
      "projectId": "<projectId>",
      "formId": "<formId>",
      "expectedUpdatedAt": "<expectedUpdatedAt>"
    },
    "name": "update_form_schema"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoNew form name
formIdYesThe form ID
projectIdYesThe project ID
formSchemaNoThe top-level keys to replace; keys left out are kept
expectedUpdatedAtYesupdatedAt as read from get_form; the change is refused if the form changed since

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / formSchema / properties / successMessage
      Added value: +{
      +  "description": "HTML the visitor sees after submitting, in place of the standard thank-you line, such as <p><strong>Thank you!</strong></p><p>We'll be in touch soon.</p>",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  2. First observed

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false and openWorldHint=true, so the risk profile is known; the description still earns credit by explaining the top-level key replacement rule (omitted keys kept, sent keys replaced whole), the optimistic-concurrency refusal, and the validation split between refused new problems, returned warnings for pre-existing ones, and listed removed fields. It does not cover whether a refused update leaves the form untouched beyond the implied atomicity, nor the shape of the success response.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the purpose, then proceeds in priority order: liveness, merge semantics, concurrency token, validation outcome. Every clause carries a distinct operational fact — nothing restates the title or the schema.

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, deeply nested mutation with no output schema, the description supplies the three things an agent most needs: merge-not-patch semantics, the required version token, and what happens on validation failure including how removed fields are surfaced. Return-value detail is unnecessary here since the warnings/refusals are described inline.

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, but the description adds real operational meaning the schema only gestures at: each top-level schema key replaces its stored counterpart whole, so partial objects corrupt data unless complete arrays/objects are sent, and expectedUpdatedAt is pinned to get_form's updatedAt. It does not explain the interaction between the separate name parameter and formSchema.title.

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?

States a specific verb and resource ("Change a form's name or schema") and immediately delimits it from the sibling set by contrasting with create_form's validation and get_form's read role. An agent can distinguish this from update_collection_schema or update_entry without opening a 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 a clear operational precondition — expectedUpdatedAt must come from get_form — which implicitly routes the agent to read before writing, and warns that there is no draft so edits are live on published pages. It does not name alternatives for partial edits or state when a different tool should be preferred, so it stops short of full when/when-not guidance.

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.