Home / MCP server / Build and edit forms / create_form

create_form: Create form

Create a new draft form with a title, a description and, optionally, all its fields in one call.

create_form builds a form from scratch. The assistant can pass every field at once in fields, each shaped like an add_field call (type, question, required, options, settings). The form starts as a draft: nobody can open it until publish_form runs.

Fields are checked before anything is saved. If any field is invalid, no form is created and the error lists every field to fix, so the assistant can correct them all in one retry. New forms get your default brand theme, a short link and the same default settings as a form made in the dashboard.

Behaviour

  • Additive. It adds something new; nothing that exists is overwritten or removed.
  • Not idempotent. Each call has its own effect, so a repeated call can make a second copy or be refused.
  • Closed world. It only works inside your own Fantastic Forms account.

When to use it

  • You describe the questions you want.
  • No template is close enough (see search_templates).
  • You want an empty draft to build up field by field.

Use another tool instead:

Parameters

ParameterTypeRequiredDetails
titlestringNoForm title (default 'Untitled Form').
Default "Untitled Form". Longer titles are cut to 200 characters.
descriptionstringNoOptional description shown to respondents.
fieldsarray of objectNoOptional fields to add, each with a type, question and optional options and settings, as when adding a single field. The form is only created if every field is valid; otherwise the error lists every field to fix.
A list of field objects. Each takes the same keys as add_field except form_id, page_id and position. All fields go on page 1. Unknown types, retired types (checkboxes, ranking, statement, date_time) and invalid settings are refused.

What it returns

The result is sent as JSON text in the tool result's content. Its fields:

  • form: The new form, as get_form returns it: id, short_id, status: draft, pages with every field's new id, settings and branding.
  • url: https://fantasticforms.com/f/<short_id>: the link it will have once published.
  • note: Present when a field was given starter content (for example "Option 1" choices or "Row 1" in a grid) that should be replaced before publishing.

Step by step

  1. The assistant turns your description into a title and a list of fields.
  2. It calls create_form. If a field is invalid, it reads the error, fixes the listed fields and calls again.
  3. It reports the draft and any note about starter content.
  4. When you're happy, it calls publish_form and gives you the link.

Use cases

Contact form

Name, email and message, all required, as a draft to review first.

Survey

A 1 to 10 rating, an NPS question, a multiple-choice question and a comments box.

Order form

Product choices, quantity, address and a payment field.

Skeleton to fill in

An empty draft with just a title, then fields added one at a time with add_field.

Example prompts

  • "Create a contact form called Contact Us with name, email and message fields, all required. Keep it as a draft."
  • "Build a customer feedback survey with a 1 to 10 rating, an NPS question and a comments box."
  • "Make a workshop sign-up form with name, email, a dropdown of three dates and a dietary requirements question."

Example call

The request an assistant sends to https://fantasticforms.com/api/mcp:

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "create_form",
    "arguments": {
      "title": "Contact Us",
      "description": "We usually reply within a day.",
      "fields": [
        {
          "type": "full_name",
          "question": "Your name",
          "required": true
        },
        {
          "type": "email",
          "question": "Email address",
          "required": true
        },
        {
          "type": "long_text",
          "question": "How can we help?",
          "required": true
        }
      ]
    }
  }
}

The result (ids and values are examples):

{
  "form": {
    "id": "0c9b8a7d-6e5f-4a3b-9c2d-1e0f9a8b7c6d",
    "short_id": "Tx4N",
    "title": "Contact Us",
    "description": "We usually reply within a day.",
    "status": "draft",
    "pages": [
      {
        "id": "5a4b3c2d-1e0f-4a9b-8c7d-6e5f4a3b2c1d",
        "title": "Page 1",
        "order": 0,
        "elements": [
          {
            "id": "e1000000-0000-4000-8000-000000000001",
            "type": "full_name",
            "question": "Your name",
            "description": "",
            "required": true,
            "settings": {}
          },
          {
            "id": "e1000000-0000-4000-8000-000000000002",
            "type": "email",
            "question": "Email address",
            "description": "",
            "required": true,
            "settings": {}
          },
          {
            "id": "e1000000-0000-4000-8000-000000000003",
            "type": "long_text",
            "question": "How can we help?",
            "description": "",
            "required": true,
            "settings": {}
          }
        ]
      }
    ],
    "views": 0,
    "submissions_count": 0
  },
  "url": "https://fantasticforms.com/f/Tx4N"
}

Errors and how to fix them

Problems come back as a tool result with isError: true and a message the assistant can act on.

MessageWhat to do
The form wasn't created: 1 field(s) need fixing. field 2 ("Rate us"): ...Every invalid field is listed with its position and question. Fix those fields (the message after each says what's wrong) and call again.
Unknown field type 'checkbox'. Valid types: ...Use one of the listed types, for example multiple_choice for checkboxes.
The 'checkboxes' type isn't available. Use multiple_choice instead.Retired type names are refused with the replacement to use.

Notes and limits

  • Not idempotent: each call creates another form, so retrying a call that already succeeded makes a duplicate. Check with list_forms before retrying after a timeout.
  • Additive: nothing existing is changed.
  • On the Free plan, each call counts toward the 1,000 API and AI assistant calls a month; Pro is unlimited.

All MCP tools and connection guides