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:
create_form_from_templatefor common forms the library already has.duplicate_formto copy one of your existing forms.
Parameters
| Parameter | Type | Required | Details |
|---|---|---|---|
title | string | No | Form title (default 'Untitled Form'). Default "Untitled Form". Longer titles are cut to 200 characters. |
description | string | No | Optional description shown to respondents. |
fields | array of object | No | Optional 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, asget_formreturns it:id,short_id,status: draft,pageswith every field's newid, 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
- The assistant turns your description into a title and a list of fields.
- It calls
create_form. If a field is invalid, it reads the error, fixes the listed fields and calls again. - It reports the draft and any
noteabout starter content. - When you're happy, it calls
publish_formand 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.
| Message | What 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_formsbefore 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.
Related tools
add_fieldAdd a field to a form: any of the field types, with its question, options and type-specific settings.
publish_formPublish a form so anyone with its link can open it and submit responses.
create_form_from_templateCreate a new draft form from a template in the library, optionally with your own title.